// Map deprotected by X-deprotect (version 2006-10-02)
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
booleans01 | boolean | Yes | |
button01 | button | No | |
buttons01 | button | Yes | |
buttons02 | button | Yes | |
buttons03 | button | Yes | |
camerasetup01 | camerasetup | No | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
dialog03 | dialog | No | |
dialogs01 | dialog | Yes | |
effect01 | effect | No | |
effect02 | effect | No | |
effect03 | effect | No | |
effect04 | effect | No | |
effect05 | effect | No | |
effect06 | effect | No | |
effect07 | effect | No | |
effect08 | effect | No | |
effect09 | effect | No | |
effect10 | effect | No | |
effect11 | effect | No | |
effect12 | effect | No | |
effects01 | effect | Yes | |
effects02 | effect | Yes | |
effects03 | effect | Yes | |
effects04 | effect | Yes | |
effects05 | effect | Yes | |
effects06 | effect | Yes | |
effects07 | effect | Yes | |
effects08 | effect | Yes | |
effects09 | effect | Yes | |
effects10 | effect | Yes | |
effects11 | effect | Yes | |
effects12 | effect | Yes | |
effects13 | effect | Yes | |
effects14 | effect | Yes | |
effects15 | effect | Yes | |
effects16 | effect | Yes | |
Energy | unit | Yes | |
Fly_kick_effect | effect | Yes | |
Fly_Kick_Position | location | Yes | |
Fly_kick_Target | unit | Yes | |
Fly_kick_text | texttag | Yes | |
Fly_Kick_Unit | unit | Yes | |
force01 | force | No | |
force02 | force | No | |
force03 | force | No | |
Frost_Joker | unit | Yes | |
FrostJoker | unit | Yes | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
High_Jump_text | texttag | Yes | |
high_jump_unit | unit | 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 | 'n004' |
integer19 | integer | No | 'N00S' |
integer20 | integer | No | |
integer21 | integer | No | |
integer22 | integer | No | |
integer23 | integer | No | |
integer24 | integer | No | |
integer25 | integer | No | |
integer26 | integer | No | |
integer27 | integer | No | |
integer28 | integer | No | |
integer29 | integer | No | |
integer30 | integer | No | |
integer31 | integer | No | |
integer32 | integer | No | |
integer33 | integer | No | |
integer34 | integer | No | |
integer35 | integer | No | |
integer36 | integer | No | |
integer37 | integer | No | |
integer38 | integer | No | |
integer39 | integer | No | |
integer40 | integer | No | |
integer41 | integer | No | |
integer42 | integer | No | |
integer43 | integer | No | |
integer44 | integer | No | |
integer45 | integer | No | |
integer46 | integer | No | |
integer47 | integer | No | |
integer48 | integer | No | |
integer49 | integer | No | |
integer50 | integer | No | |
integer51 | integer | No | |
integer52 | integer | No | |
integer53 | integer | No | |
integer54 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
integers07 | integer | Yes | |
integers08 | integer | Yes | |
integers09 | integer | Yes | |
integers10 | integer | Yes | |
integers11 | integer | Yes | |
integers12 | integer | Yes | |
integers13 | integer | Yes | |
integers14 | integer | Yes | |
integers15 | integer | Yes | |
integers16 | integer | Yes | |
integers17 | integer | Yes | |
integers18 | integer | Yes | |
integers19 | integer | Yes | |
integers20 | integer | Yes | |
integers21 | integer | Yes | |
integers22 | integer | Yes | |
integers23 | integer | Yes | |
integers24 | integer | Yes | |
integers25 | integer | Yes | |
integers26 | integer | Yes | |
integers27 | integer | Yes | |
integers28 | integer | Yes | |
integers29 | integer | Yes | |
integers30 | integer | Yes | |
integers31 | integer | Yes | |
integers32 | integer | Yes | |
integers33 | integer | Yes | |
integers34 | integer | Yes | |
integers35 | integer | Yes | |
integers36 | integer | Yes | |
integers37 | integer | Yes | |
integers38 | integer | Yes | |
integers39 | integer | Yes | |
integers40 | integer | Yes | |
integers41 | integer | Yes | |
integers42 | integer | Yes | |
integers43 | integer | Yes | |
integers44 | integer | Yes | |
KMHM_Angle | real | No | |
KMHM_Caster | unit | No | |
KMHM_CasterPos | location | No | |
KMHM_DUG | group | No | |
KMHM_Dummies | unit | Yes | |
KMHM_DummyA | location | No | |
KMHM_TravelPoint | location | No | |
leaderboard01 | leaderboard | No | |
location01 | location | No | |
location02 | location | No | |
location03 | location | No | |
location04 | location | No | |
location05 | location | No | |
location06 | location | No | |
location07 | location | No | |
location08 | location | No | |
location09 | location | No | |
location10 | location | No | |
location11 | location | No | |
location12 | location | No | |
location13 | location | No | |
location14 | location | No | |
location15 | location | No | |
location16 | location | No | |
location17 | location | No | |
location18 | location | No | |
location19 | location | No | |
location20 | location | No | |
location21 | location | No | |
location22 | location | No | |
location23 | location | No | |
location24 | location | No | |
location25 | location | No | |
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 | |
MusicalStrike | unit | Yes | |
NuclearReakto | unit | Yes | |
real01 | real | No | |
reals01 | real | Yes | |
reals02 | real | Yes | |
reals03 | real | Yes | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect11 | rect | No | |
rect12 | rect | No | |
rect13 | rect | No | |
rect14 | rect | No | |
rect15 | rect | No | |
rect16 | rect | No | |
rect17 | rect | No | |
rect18 | rect | No | |
rect19 | rect | No | |
rect20 | rect | No | |
rect21 | rect | No | |
rect22 | rect | No | |
rect23 | rect | No | |
rect24 | rect | No | |
rect25 | rect | No | |
rect26 | rect | No | |
rect27 | rect | No | |
rect28 | rect | No | |
rect29 | rect | No | |
rect30 | rect | No | |
rect31 | rect | No | |
rect32 | rect | No | |
rect33 | rect | No | |
rect34 | rect | No | |
rect35 | rect | No | |
rect36 | rect | No | |
rect37 | rect | No | |
rect38 | rect | No | |
rect39 | rect | No | |
rect40 | rect | No | |
rect41 | rect | No | |
rect42 | rect | No | |
rect43 | rect | No | |
rect44 | rect | No | |
rect45 | rect | No | |
rect46 | rect | No | |
rect47 | rect | No | |
rect48 | rect | No | |
rect49 | rect | No | |
rect50 | rect | No | |
rect51 | rect | No | |
rect52 | rect | No | |
rect53 | rect | No | |
rect54 | rect | No | |
rect55 | rect | No | |
rect56 | rect | No | |
rect57 | rect | No | |
rect58 | rect | No | |
rect59 | rect | No | |
rect60 | rect | No | |
rect61 | rect | No | |
rect62 | rect | No | |
rect63 | rect | No | |
rect64 | rect | No | |
rect65 | rect | No | |
rect66 | rect | No | |
rect67 | rect | No | |
rect68 | rect | No | |
rect69 | rect | No | |
rect70 | rect | No | |
rect71 | rect | No | |
rect72 | rect | No | |
rect73 | rect | No | |
rect74 | rect | No | |
rect75 | rect | No | |
rect76 | rect | No | |
rect77 | rect | No | |
rect78 | rect | No | |
rect79 | rect | No | |
rect80 | rect | No | |
rect81 | rect | No | |
rect82 | rect | No | |
rect83 | rect | No | |
rect84 | rect | No | |
rect85 | rect | No | |
rect86 | rect | No | |
rect87 | rect | No | |
Running_text | texttag | Yes | |
Running_unit | 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 | |
StarBreath | unit | Yes | |
string01 | string | No | Sound\\Music\\mp3Music\\Doom.mp3 |
texttag01 | texttag | No | |
timer01 | timer | No | |
timer02 | timer | 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 | |
trigger24 | trigger | No | |
trigger25 | trigger | No | |
trigger26 | trigger | No | |
trigger27 | trigger | No | |
trigger28 | trigger | No | |
trigger29 | trigger | No | |
trigger30 | trigger | No | |
trigger31 | trigger | No | |
trigger32 | trigger | No | |
trigger33 | trigger | No | |
trigger34 | trigger | No | |
trigger35 | trigger | No | |
trigger36 | trigger | No | |
trigger37 | trigger | No | |
trigger38 | trigger | No | |
trigger39 | trigger | No | |
trigger40 | trigger | No | |
trigger41 | trigger | No | |
trigger42 | trigger | No | |
trigger43 | trigger | No | |
trigger44 | trigger | No | |
trigger45 | trigger | No | |
trigger46 | trigger | No | |
trigger47 | trigger | No | |
trigger48 | trigger | No | |
trigger49 | trigger | No | |
trigger50 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
trigger55 | trigger | No | |
trigger56 | trigger | No | |
trigger57 | trigger | No | |
trigger58 | trigger | No | |
trigger59 | trigger | No | |
trigger60 | trigger | No | |
trigger61 | trigger | No | |
trigger62 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
UG | group | 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 | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes | |
units08 | unit | Yes | |
units09 | unit | Yes | |
units10 | unit | Yes | |
units11 | unit | Yes | |
units12 | unit | Yes | |
units13 | unit | Yes | |
units14 | unit | Yes | |
units15 | unit | Yes | |
units16 | unit | Yes | |
units17 | unit | Yes | |
units18 | unit | Yes | |
units19 | unit | Yes | |
units20 | unit | Yes | |
units21 | unit | Yes | |
units22 | unit | Yes | |
units23 | unit | Yes | |
units24 | unit | Yes | |
units25 | unit | Yes | |
units26 | unit | Yes | |
units27 | unit | Yes | |
units28 | unit | Yes | |
units29 | unit | Yes | |
units30 | unit | Yes | |
units31 | unit | Yes | |
units32 | unit | Yes | |
units33 | unit | Yes | |
units34 | unit | Yes | |
units35 | unit | Yes | |
units36 | unit | Yes | |
units37 | unit | Yes | |
units38 | unit | Yes | |
units39 | unit | Yes | |
units40 | unit | Yes | |
units41 | unit | Yes | |
units42 | unit | Yes | |
units43 | unit | Yes | |
units44 | unit | Yes | |
units45 | unit | Yes | |
units46 | unit | Yes | |
units47 | unit | Yes | |
units48 | unit | Yes | |
units49 | unit | Yes | |
units50 | unit | Yes | |
units51 | unit | Yes | |
units52 | unit | Yes | |
units53 | unit | Yes | |
units54 | unit | Yes | |
units55 | unit | Yes | |
units56 | unit | Yes | |
units57 | unit | Yes | |
units58 | unit | Yes |
// Recreated by Lorenzo
function Trig_slot_playing_Func001C takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func002C takes nothing returns boolean
return(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func003C takes nothing returns boolean
return(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func004C takes nothing returns boolean
return(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func005C takes nothing returns boolean
return(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func006C takes nothing returns boolean
return(GetPlayerSlotState(Player(6))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func007C takes nothing returns boolean
return(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func008C takes nothing returns boolean
return(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func009C takes nothing returns boolean
return(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Func010C takes nothing returns boolean
return(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_slot_playing_Actions takes nothing returns nothing
if(Trig_slot_playing_Func001C())then
call EnableTrigger(udg_trigger168)
endif
if(Trig_slot_playing_Func002C())then
call EnableTrigger(udg_trigger169)
endif
if(Trig_slot_playing_Func003C())then
call EnableTrigger(udg_trigger170)
endif
if(Trig_slot_playing_Func004C())then
call EnableTrigger(udg_trigger171)
endif
if(Trig_slot_playing_Func005C())then
call EnableTrigger(udg_trigger172)
endif
if(Trig_slot_playing_Func006C())then
call EnableTrigger(udg_trigger174)
endif
if(Trig_slot_playing_Func007C())then
call EnableTrigger(udg_trigger175)
endif
if(Trig_slot_playing_Func008C())then
call EnableTrigger(udg_trigger176)
endif
if(Trig_slot_playing_Func009C())then
call EnableTrigger(udg_trigger177)
endif
if(Trig_slot_playing_Func010C())then
call EnableTrigger(udg_trigger178)
endif
endfunction
function Trig_Vending_Func004Func001Func001C takes nothing returns boolean
return(udg_integers08[1]==3)
endfunction
function Trig_Vending_Func004Func001C takes nothing returns boolean
return(udg_integers08[1]==2)
endfunction
function Trig_Vending_Func004C takes nothing returns boolean
return(udg_integers08[1]==1)
endfunction
function Trig_Vending_Actions takes nothing returns nothing
call IssuePointOrderByIdLoc(udg_unit37,851986,GetRandomLocInRect(udg_rect39))
call TriggerSleepAction(5.)
set udg_integers08[1]=GetRandomInt(1,3)
if(Trig_Vending_Func004C())then
call CreateTextTagUnitBJ("vRO players buy here !!",udg_unit37,.0,10.,'d',100.,100.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
else
if(Trig_Vending_Func004Func001C())then
call CreateTextTagUnitBJ("i Need Moneey!!!",udg_unit37,.0,10.,'d',100.,100.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
else
if(Trig_Vending_Func004Func001Func001C())then
call CreateTextTagUnitBJ("S> Buckler+7 cheap No Nego !!",udg_unit37,.0,10.,'d',100.,100.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
endif
endif
endif
endfunction
function Trig_Vending_2_Func004Func001Func001C takes nothing returns boolean
return(udg_integers08[2]==3)
endfunction
function Trig_Vending_2_Func004Func001C takes nothing returns boolean
return(udg_integers08[2]==2)
endfunction
function Trig_Vending_2_Func004C takes nothing returns boolean
return(udg_integers08[2]==1)
endfunction
function Trig_Vending_2_Actions takes nothing returns nothing
call IssuePointOrderByIdLoc(udg_unit36,851986,GetRandomLocInRect(udg_rect39))
call TriggerSleepAction(5.)
set udg_integers08[2]=GetRandomInt(1,3)
if(Trig_Vending_2_Func004C())then
call CreateTextTagUnitBJ("Sell various Wings!!!!!!!!!!!!!!!!!!!!!!!!",udg_unit36,.0,10.,'d',100.,100.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
else
if(Trig_Vending_2_Func004Func001C())then
call CreateTextTagUnitBJ("S>Panda Hat cheap!!!!",udg_unit36,.0,10.,'d',100.,100.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
else
if(Trig_Vending_2_Func004Func001Func001C())then
call CreateTextTagUnitBJ("S> Demon Wings !!! PM me!!",udg_unit36,.0,10.,'d',100.,100.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
endif
endif
endif
endfunction
function Trig_grobakvendinger_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_units17[2],GetUnitFacing(udg_units17[1]),0)
call SetUnitPositionLoc(udg_units17[2],PolarProjectionBJ(GetUnitLoc(udg_units17[1]),-60.,GetUnitFacing(udg_units17[1])))
endfunction
function Trig_waktu_10_menit_Func003001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_waktu_10_menit_Func003001002002 takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_waktu_10_menit_Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_waktu_10_menit_Func003001002001(),Trig_waktu_10_menit_Func003001002002())
endfunction
function Trig_waktu_10_menit_Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_waktu_10_menit_Func019001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(15))
endfunction
function Trig_waktu_10_menit_Func019A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_waktu_10_menit_Func023002 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect27)
endfunction
function Trig_waktu_10_menit_Func171001 takes nothing returns boolean
return(R2I(TimerGetRemaining(udg_timer01))<=0)
endfunction
function Trig_waktu_10_menit_Actions takes nothing returns nothing
call ClearMapMusic()
call StopMusic(false)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_waktu_10_menit_Func003001002)),function Trig_waktu_10_menit_Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call SetPlayerName(Player(5),"|c00ff0303Genocider Alliance|r")
call SetPlayerName(Player(11),"|c000042ffPentavia's Alliance|r")
set udg_units17[1]=udg_unit37
call CreateNUnitsAtLoc(1,'h02J',Player(15),PolarProjectionBJ(GetUnitLoc(udg_unit37),-50.,GetUnitFacing(udg_unit37)),bj_UNIT_FACING)
set udg_units17[2]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger04)
call AddSpecialEffectTargetUnitBJ("head",udg_unit37,"war3mapImported\\GolemStatueHelm.mdx")
call AddSpecialEffectTargetUnitBJ("left, hand",udg_unit37,"war3mapImported\\brigand_shield.mdx")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit37,"war3mapImported\\cape.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit37,"war3mapImported\\CrystalSwordNew.mdx")
call AddSpecialEffectTargetUnitBJ("head",udg_unit36,"war3mapImported\\WizardsHat.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit36,"textures\\chuji\\captains_shield.mdx")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit36,"war3mapImported\\doomguardWings.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit36,"war3mapImported\\LightningBlade.mdx")
call ForGroupBJ(GetUnitsInRectMatching(udg_rect81,Condition(function Trig_waktu_10_menit_Func019001002)),function Trig_waktu_10_menit_Func019A)
call DestroyGroup(bj_lastCreatedGroup)
call EnableTrigger(udg_trigger02)
call EnableTrigger(udg_trigger03)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_waktu_10_menit_Func023002)
call SetPlayerColorBJ(Player(5),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(0),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(1),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(2),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(3),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(4),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(11),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(10),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(9),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(8),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(7),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(6),PLAYER_COLOR_LIGHT_BLUE,true)
call SetTimeOfDay(12)
call SetTimeOfDayScalePercentBJ(.0)
call ClearMapMusic()
call PlaySoundBJ(udg_sound17)
set udg_integers03[1]=0
set udg_integers03[2]=0
set udg_integers03[3]=0
set udg_integers03[4]=0
set udg_integers03[5]=0
set udg_integers03[6]=0
set udg_integers03[7]=0
set udg_integers03[8]=0
set udg_integers03[9]=0
set udg_integers03[10]=0
set udg_integers03[11]=0
set udg_integers03[12]=0
set udg_integers03[13]=0
call SetPlayerAllianceStateBJ(Player(0),Player(1),3)
call SetPlayerAllianceStateBJ(Player(0),Player(2),3)
call SetPlayerAllianceStateBJ(Player(0),Player(3),3)
call SetPlayerAllianceStateBJ(Player(0),Player(4),3)
call SetPlayerAllianceStateBJ(Player(0),Player(5),3)
call SetPlayerAllianceStateBJ(Player(1),Player(0),3)
call SetPlayerAllianceStateBJ(Player(2),Player(0),3)
call SetPlayerAllianceStateBJ(Player(3),Player(0),3)
call SetPlayerAllianceStateBJ(Player(4),Player(0),3)
call SetPlayerAllianceStateBJ(Player(5),Player(0),3)
call SetPlayerAllianceStateBJ(Player(6),Player(7),3)
call SetPlayerAllianceStateBJ(Player(6),Player(8),3)
call SetPlayerAllianceStateBJ(Player(6),Player(9),3)
call SetPlayerAllianceStateBJ(Player(6),Player(10),3)
call SetPlayerAllianceStateBJ(Player(6),Player(11),3)
call SetPlayerAllianceStateBJ(Player(7),Player(6),3)
call SetPlayerAllianceStateBJ(Player(8),Player(6),3)
call SetPlayerAllianceStateBJ(Player(9),Player(6),3)
call SetPlayerAllianceStateBJ(Player(10),Player(6),3)
call SetPlayerAllianceStateBJ(Player(11),Player(6),3)
call AdjustPlayerStateBJ(300,Player(0),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(1),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(2),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(3),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(4),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(5),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(6),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(7),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(8),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(9),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(10),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(11),PLAYER_STATE_RESOURCE_LUMBER)
call CreateTextTagLocBJ("Leader Guild Room",GetRectCenter(udg_rect35),0,10,'d','d','d',0)
call CreateTextTagLocBJ("Boss Guild Secret Place",GetRectCenter(udg_rect75),0,10.,'d',100.,100.,0)
call CreateTextTagLocBJ("Portal for Owner of Castle.",GetRectCenter(udg_rect79),0,10.,'d',100.,100.,0)
call CreateTextTagLocBJ("Welcome to VillainRO",GetRectCenter(udg_rect80),0,10.,'d',100.,100.,0)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,'d')
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,'d')
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,300000)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_GOLD,300000)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(9))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(8))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(7))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(6))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(5))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(4))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(3))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(2))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(1))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(0))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(12))
call TriggerSleepAction(15.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00War Of Emperium will start in 4 minutes|r")
call TriggerSleepAction(20.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,15.,"|cffffcc00If you find any bugs PM me at Facebook:eriasarte|r")
call TriggerSleepAction(160.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00Prepare Yourself|r")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00WOE start in 60 seconds|r")
call TriggerSleepAction(60.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffcc00War Of Emperium start in !!|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc005 !!|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc004|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc003|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc002|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc001|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound15)
call StopSoundBJ(udg_sound17,false)
call PlaySoundAtPointBJ(udg_sound14,'d',GetRectCenter(udg_rect03),0)
call EnableTrigger(udg_trigger181)
call EnableTrigger(udg_trigger202)
call EnableTrigger(udg_trigger200)
call EnableTrigger(udg_trigger197)
call EnableTrigger(udg_trigger203)
call EnableTrigger(udg_trigger201)
call EnableTrigger(udg_trigger199)
call EnableTrigger(udg_trigger191)
call StartTimerBJ(udg_timer01,false,600.)
call CreateTimerDialogBJ(udg_timer01,"|cffffcc00WOE Time:|r")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
loop
exitwhen(Trig_waktu_10_menit_Func171001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,.1))
endloop
call ConditionalTriggerExecute(udg_trigger08)
endfunction
function Trig_waktu_20_menit_Func003001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_waktu_20_menit_Func003001002002 takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_waktu_20_menit_Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_waktu_20_menit_Func003001002001(),Trig_waktu_20_menit_Func003001002002())
endfunction
function Trig_waktu_20_menit_Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_waktu_20_menit_Func019001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(15))
endfunction
function Trig_waktu_20_menit_Func019A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_waktu_20_menit_Func023002 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect27)
endfunction
function Trig_waktu_20_menit_Func172001 takes nothing returns boolean
return(R2I(TimerGetRemaining(udg_timer01))<=0)
endfunction
function Trig_waktu_20_menit_Actions takes nothing returns nothing
call ClearMapMusic()
call StopMusic(false)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_waktu_20_menit_Func003001002)),function Trig_waktu_20_menit_Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call SetPlayerName(Player(5),"|c00ff0303Genocider Alliance|r")
call SetPlayerName(Player(11),"|c000042ffPentavia's Alliance|r")
set udg_units17[1]=udg_unit37
call CreateNUnitsAtLoc(1,'h02J',Player(15),PolarProjectionBJ(GetUnitLoc(udg_unit37),-50.,GetUnitFacing(udg_unit37)),bj_UNIT_FACING)
set udg_units17[2]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger04)
call AddSpecialEffectTargetUnitBJ("head",udg_unit37,"war3mapImported\\GolemStatueHelm.mdx")
call AddSpecialEffectTargetUnitBJ("left, hand",udg_unit37,"war3mapImported\\brigand_shield.mdx")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit37,"war3mapImported\\cape.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit37,"war3mapImported\\CrystalSwordNew.mdx")
call AddSpecialEffectTargetUnitBJ("head",udg_unit36,"war3mapImported\\WizardsHat.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit36,"textures\\chuji\\captains_shield.mdx")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit36,"war3mapImported\\doomguardWings.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit36,"war3mapImported\\LightningBlade.mdx")
call ForGroupBJ(GetUnitsInRectMatching(udg_rect81,Condition(function Trig_waktu_20_menit_Func019001002)),function Trig_waktu_20_menit_Func019A)
call DestroyGroup(bj_lastCreatedGroup)
call EnableTrigger(udg_trigger02)
call EnableTrigger(udg_trigger03)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_waktu_20_menit_Func023002)
call SetPlayerColorBJ(Player(5),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(0),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(1),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(2),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(3),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(4),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(11),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(10),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(9),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(8),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(7),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(6),PLAYER_COLOR_LIGHT_BLUE,true)
call SetTimeOfDay(12)
call SetTimeOfDayScalePercentBJ(.0)
call ClearMapMusic()
call PlaySoundBJ(udg_sound17)
set udg_integers03[1]=0
set udg_integers03[2]=0
set udg_integers03[3]=0
set udg_integers03[4]=0
set udg_integers03[5]=0
set udg_integers03[6]=0
set udg_integers03[7]=0
set udg_integers03[8]=0
set udg_integers03[9]=0
set udg_integers03[10]=0
set udg_integers03[11]=0
set udg_integers03[12]=0
set udg_integers03[13]=0
call SetPlayerAllianceStateBJ(Player(0),Player(1),3)
call SetPlayerAllianceStateBJ(Player(0),Player(2),3)
call SetPlayerAllianceStateBJ(Player(0),Player(3),3)
call SetPlayerAllianceStateBJ(Player(0),Player(4),3)
call SetPlayerAllianceStateBJ(Player(0),Player(5),3)
call SetPlayerAllianceStateBJ(Player(1),Player(0),3)
call SetPlayerAllianceStateBJ(Player(2),Player(0),3)
call SetPlayerAllianceStateBJ(Player(3),Player(0),3)
call SetPlayerAllianceStateBJ(Player(4),Player(0),3)
call SetPlayerAllianceStateBJ(Player(5),Player(0),3)
call SetPlayerAllianceStateBJ(Player(6),Player(7),3)
call SetPlayerAllianceStateBJ(Player(6),Player(8),3)
call SetPlayerAllianceStateBJ(Player(6),Player(9),3)
call SetPlayerAllianceStateBJ(Player(6),Player(10),3)
call SetPlayerAllianceStateBJ(Player(6),Player(11),3)
call SetPlayerAllianceStateBJ(Player(7),Player(6),3)
call SetPlayerAllianceStateBJ(Player(8),Player(6),3)
call SetPlayerAllianceStateBJ(Player(9),Player(6),3)
call SetPlayerAllianceStateBJ(Player(10),Player(6),3)
call SetPlayerAllianceStateBJ(Player(11),Player(6),3)
call AdjustPlayerStateBJ(300,Player(0),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(1),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(2),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(3),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(4),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(5),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(6),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(7),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(8),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(9),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(10),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(11),PLAYER_STATE_RESOURCE_LUMBER)
call CreateTextTagLocBJ("Leader Guild Room",GetRectCenter(udg_rect35),0,10,'d','d','d',0)
call CreateTextTagLocBJ("Boss Guild Secret Place",GetRectCenter(udg_rect75),0,10.,'d',100.,100.,0)
call CreateTextTagLocBJ("Portal for Owner of Castle.",GetRectCenter(udg_rect79),0,10.,'d',100.,100.,0)
call CreateTextTagLocBJ("Welcome to VillainRO",GetRectCenter(udg_rect80),0,10.,'d',100.,100.,0)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,'d')
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,'d')
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,300000)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_GOLD,300000)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(9))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(8))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(7))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(6))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(5))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(4))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(3))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(2))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(1))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(0))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(12))
set udg_units17[2]=bj_lastCreatedUnit
call TriggerSleepAction(15.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00War Of Emperium will start in 4 minutes|r")
call TriggerSleepAction(20.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,15.,"|cffffcc00If you find any bugs Add me at Facebook:eriasarte|r")
call TriggerSleepAction(160.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00Prepare Yourself|r")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00WOE start in 60 seconds|r")
call TriggerSleepAction(60.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffcc00War Of Emperium start in !!|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc005 !!|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc004|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc003|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc002|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc001|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound15)
call StopSoundBJ(udg_sound17,false)
call PlaySoundAtPointBJ(udg_sound14,'d',GetRectCenter(udg_rect03),0)
call EnableTrigger(udg_trigger181)
call EnableTrigger(udg_trigger202)
call EnableTrigger(udg_trigger200)
call EnableTrigger(udg_trigger197)
call EnableTrigger(udg_trigger203)
call EnableTrigger(udg_trigger201)
call EnableTrigger(udg_trigger199)
call EnableTrigger(udg_trigger191)
call StartTimerBJ(udg_timer01,false,1200.)
call CreateTimerDialogBJ(udg_timer01,"|cffffcc00WOE Time:|r")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
loop
exitwhen(Trig_waktu_20_menit_Func172001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,.1))
endloop
call ConditionalTriggerExecute(udg_trigger08)
endfunction
function Trig_waktu_30_menit_Func003001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_waktu_30_menit_Func003001002002 takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(GetFilterUnit()))!=PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_waktu_30_menit_Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_waktu_30_menit_Func003001002001(),Trig_waktu_30_menit_Func003001002002())
endfunction
function Trig_waktu_30_menit_Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_waktu_30_menit_Func019001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(15))
endfunction
function Trig_waktu_30_menit_Func019A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_waktu_30_menit_Func023002 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect27)
endfunction
function Trig_waktu_30_menit_Func171001 takes nothing returns boolean
return(R2I(TimerGetRemaining(udg_timer01))<=0)
endfunction
function Trig_waktu_30_menit_Actions takes nothing returns nothing
call ClearMapMusic()
call StopMusic(false)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_waktu_30_menit_Func003001002)),function Trig_waktu_30_menit_Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call SetPlayerName(Player(5),"|c00ff0303Genocider Alliance|r")
call SetPlayerName(Player(11),"|c000042ffPentavia's Alliance|r")
set udg_units17[1]=udg_unit37
call CreateNUnitsAtLoc(1,'h02J',Player(15),PolarProjectionBJ(GetUnitLoc(udg_unit37),-50.,GetUnitFacing(udg_unit37)),bj_UNIT_FACING)
set udg_units17[2]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger04)
call AddSpecialEffectTargetUnitBJ("head",udg_unit37,"war3mapImported\\GolemStatueHelm.mdx")
call AddSpecialEffectTargetUnitBJ("left, hand",udg_unit37,"war3mapImported\\brigand_shield.mdx")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit37,"war3mapImported\\cape.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit37,"war3mapImported\\CrystalSwordNew.mdx")
call AddSpecialEffectTargetUnitBJ("head",udg_unit36,"war3mapImported\\WizardsHat.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit36,"textures\\chuji\\captains_shield.mdx")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit36,"war3mapImported\\doomguardWings.mdx")
call AddSpecialEffectTargetUnitBJ("right, hand",udg_unit36,"war3mapImported\\LightningBlade.mdx")
call ForGroupBJ(GetUnitsInRectMatching(udg_rect81,Condition(function Trig_waktu_30_menit_Func019001002)),function Trig_waktu_30_menit_Func019A)
call DestroyGroup(bj_lastCreatedGroup)
call EnableTrigger(udg_trigger02)
call EnableTrigger(udg_trigger03)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_waktu_30_menit_Func023002)
call SetPlayerColorBJ(Player(5),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(0),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(1),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(2),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(3),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(4),PLAYER_COLOR_RED,true)
call SetPlayerColorBJ(Player(11),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(10),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(9),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(8),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(7),PLAYER_COLOR_LIGHT_BLUE,true)
call SetPlayerColorBJ(Player(6),PLAYER_COLOR_LIGHT_BLUE,true)
call SetTimeOfDay(12)
call SetTimeOfDayScalePercentBJ(.0)
call ClearMapMusic()
call PlaySoundBJ(udg_sound17)
set udg_integers03[1]=0
set udg_integers03[2]=0
set udg_integers03[3]=0
set udg_integers03[4]=0
set udg_integers03[5]=0
set udg_integers03[6]=0
set udg_integers03[7]=0
set udg_integers03[8]=0
set udg_integers03[9]=0
set udg_integers03[10]=0
set udg_integers03[11]=0
set udg_integers03[12]=0
set udg_integers03[13]=0
call SetPlayerAllianceStateBJ(Player(0),Player(1),3)
call SetPlayerAllianceStateBJ(Player(0),Player(2),3)
call SetPlayerAllianceStateBJ(Player(0),Player(3),3)
call SetPlayerAllianceStateBJ(Player(0),Player(4),3)
call SetPlayerAllianceStateBJ(Player(0),Player(5),3)
call SetPlayerAllianceStateBJ(Player(1),Player(0),3)
call SetPlayerAllianceStateBJ(Player(2),Player(0),3)
call SetPlayerAllianceStateBJ(Player(3),Player(0),3)
call SetPlayerAllianceStateBJ(Player(4),Player(0),3)
call SetPlayerAllianceStateBJ(Player(5),Player(0),3)
call SetPlayerAllianceStateBJ(Player(6),Player(7),3)
call SetPlayerAllianceStateBJ(Player(6),Player(8),3)
call SetPlayerAllianceStateBJ(Player(6),Player(9),3)
call SetPlayerAllianceStateBJ(Player(6),Player(10),3)
call SetPlayerAllianceStateBJ(Player(6),Player(11),3)
call SetPlayerAllianceStateBJ(Player(7),Player(6),3)
call SetPlayerAllianceStateBJ(Player(8),Player(6),3)
call SetPlayerAllianceStateBJ(Player(9),Player(6),3)
call SetPlayerAllianceStateBJ(Player(10),Player(6),3)
call SetPlayerAllianceStateBJ(Player(11),Player(6),3)
call AdjustPlayerStateBJ(300,Player(0),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(1),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(2),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(3),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(4),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(5),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(6),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(7),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(8),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(9),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(10),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(300,Player(11),PLAYER_STATE_RESOURCE_LUMBER)
call CreateTextTagLocBJ("Leader Guild Room",GetRectCenter(udg_rect35),0,10,'d','d','d',0)
call CreateTextTagLocBJ("Boss Guild Secret Place",GetRectCenter(udg_rect75),0,10.,'d',100.,100.,0)
call CreateTextTagLocBJ("Portal for Owner of Castle.",GetRectCenter(udg_rect79),0,10.,'d',100.,100.,0)
call CreateTextTagLocBJ("Welcome to VillainRO",GetRectCenter(udg_rect80),0,10.,'d',100.,100.,0)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,'d')
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_CAP,'d')
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,300000)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_GOLD,300000)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,75000)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(10))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(9))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(8))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(7))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(6))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(5))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(4))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(3))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(2))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(1))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(0))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(12))
call TriggerSleepAction(15.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00War Of Emperium will start in 4 minutes|r")
call TriggerSleepAction(20.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,15.,"|cffffcc00If you find any bugs email me at eriasarte|r")
call TriggerSleepAction(160.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00Prepare Yourself|r")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00WOE start in 60 seconds|r")
call TriggerSleepAction(60.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffcc00War Of Emperium start in !!|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc005 !!|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc004|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc003|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc002|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound16)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.,"|cffffcc001|r")
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect15),5.,2,'d',.0,.0)
call TriggerSleepAction(1.)
call PlaySoundBJ(udg_sound15)
call StopSoundBJ(udg_sound17,false)
call PlaySoundAtPointBJ(udg_sound14,'d',GetRectCenter(udg_rect03),0)
call EnableTrigger(udg_trigger181)
call EnableTrigger(udg_trigger202)
call EnableTrigger(udg_trigger200)
call EnableTrigger(udg_trigger197)
call EnableTrigger(udg_trigger203)
call EnableTrigger(udg_trigger201)
call EnableTrigger(udg_trigger199)
call EnableTrigger(udg_trigger191)
call StartTimerBJ(udg_timer01,false,1800.)
call CreateTimerDialogBJ(udg_timer01,"|cffffcc00WOE Time:|r")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
loop
exitwhen(Trig_waktu_30_menit_Func171001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,.1))
endloop
call ConditionalTriggerExecute(udg_trigger08)
endfunction
function Trig_Team1_Win_Conditions takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit33))
endfunction
function Trig_Team1_Win_Func002Func006C takes nothing returns boolean
return(GetOwningPlayer(udg_unit33)==Player(6))
endfunction
function Trig_Team1_Win_Func002C takes nothing returns boolean
return(GetOwningPlayer(udg_unit33)==Player(0))
endfunction
function Trig_Team1_Win_Actions takes nothing returns nothing
if(Trig_Team1_Win_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00WOE time is over|r")
call RemoveUnit(udg_unit33)
call TriggerSleepAction(5.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00Genocider Guild WON this wars!!|r")
call StopSoundBJ(udg_sound14,false)
call PlaySoundBJ(udg_sound18)
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomDefeatBJ(Player(6),"Defeat!")
call CustomDefeatBJ(Player(7),"Defeat!")
call CustomDefeatBJ(Player(8),"Defeat!")
call CustomDefeatBJ(Player(9),"Defeat!")
call CustomDefeatBJ(Player(10),"Defeat!")
call CustomDefeatBJ(Player(11),"Defeat!")
else
if(Trig_Team1_Win_Func002Func006C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00WOE time is over|r")
call RemoveUnit(udg_unit33)
call TriggerSleepAction(5.)
call StopSoundBJ(udg_sound14,false)
call PlaySoundBJ(udg_sound18)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,"|cffffcc00Pentavia's Guild WON this wars!!|r")
call CustomVictoryBJ(Player(11),true,true)
call CustomVictoryBJ(Player(6),true,true)
call CustomVictoryBJ(Player(7),true,true)
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
call CustomDefeatBJ(Player(0),"Defeat!")
call CustomDefeatBJ(Player(1),"Defeat!")
call CustomDefeatBJ(Player(2),"Defeat!")
call CustomDefeatBJ(Player(3),"Defeat!")
call CustomDefeatBJ(Player(4),"Defeat!")
call CustomDefeatBJ(Player(5),"Defeat!")
endif
endif
endfunction
function Trig_pick_Func002Func001Func001Func001Func001C takes nothing returns boolean
return(udg_integer50==5)
endfunction
function Trig_pick_Func002Func001Func001Func001C takes nothing returns boolean
return(udg_integer50==4)
endfunction
function Trig_pick_Func002Func001Func001C takes nothing returns boolean
return(udg_integer50==3)
endfunction
function Trig_pick_Func002Func001C takes nothing returns boolean
return(udg_integer50==2)
endfunction
function Trig_pick_Func002C takes nothing returns boolean
return(udg_integer50==1)
endfunction
function Trig_pick_Actions takes nothing returns nothing
set udg_integer50=GetRandomInt(1,5)
if(Trig_pick_Func002C())then
call CreateTextTagUnitBJ("Hey dude, need help?",udg_unit32,0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
else
if(Trig_pick_Func002Func001C())then
call CreateTextTagUnitBJ("you can't break the emp? hahaha",udg_unit32,0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
else
if(Trig_pick_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Yeaa... if you need my help, nothing free in this world.",udg_unit32,0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
else
if(Trig_pick_Func002Func001Func001Func001C())then
call CreateTextTagUnitBJ("hahahaha.. okay2 i will help you, the money first, hehe",udg_unit32,0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
else
if(Trig_pick_Func002Func001Func001Func001Func001C())then
call CreateTextTagUnitBJ("My Job just breaking Emperium.",udg_unit32,0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
endif
endif
endif
endif
endif
endfunction
function Trig_pick_Copy_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[1]==3)
endfunction
function Trig_pick_Copy_Func002Func001C takes nothing returns boolean
return(udg_integers11[1]==2)
endfunction
function Trig_pick_Copy_Func002C takes nothing returns boolean
return(udg_integers11[1]==1)
endfunction
function Trig_pick_Copy_Actions takes nothing returns nothing
set udg_integers11[1]=GetRandomInt(1,4)
if(Trig_pick_Copy_Func002C())then
call CreateTextTagUnitBJ("Remember! You can't take same type equipment",udg_unit31,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
else
if(Trig_pick_Copy_Func002Func001C())then
call CreateTextTagUnitBJ("You must read the information before buy item.",udg_unit31,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
else
if(Trig_pick_Copy_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Welcome to VillainRO",udg_unit31,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
endif
endif
endif
endfunction
function Trig_Falcon_Move_Func003Func001Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Falcon_Move_Func003Func001Func003001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Falcon_Move_Func003Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Falcon_Move_Func003Func001Func003001002001(),Trig_Falcon_Move_Func003Func001Func003001002002())
endfunction
function Trig_Falcon_Move_Func003Func001Func003A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,udg_location22)
endfunction
function Trig_Falcon_Move_Func003Func001Func007001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Falcon_Move_Func003Func001Func007001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Falcon_Move_Func003Func001Func007001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Falcon_Move_Func003Func001Func007001002001(),Trig_Falcon_Move_Func003Func001Func007001002002())
endfunction
function Trig_Falcon_Move_Func003Func001Func007A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,udg_location22)
endfunction
function Trig_Falcon_Move_Func003Func001Func010001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Falcon_Move_Func003Func001Func010001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Falcon_Move_Func003Func001Func010001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Falcon_Move_Func003Func001Func010001002001(),Trig_Falcon_Move_Func003Func001Func010001002002())
endfunction
function Trig_Falcon_Move_Func003Func001Func010A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,udg_location22)
endfunction
function Trig_Falcon_Move_Func003Func001C takes nothing returns boolean
return(GetOwningPlayer(udg_unit33)==Player(6))
endfunction
function Trig_Falcon_Move_Func003Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Falcon_Move_Func003Func003001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Falcon_Move_Func003Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Falcon_Move_Func003Func003001002001(),Trig_Falcon_Move_Func003Func003001002002())
endfunction
function Trig_Falcon_Move_Func003Func003A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,udg_location22)
endfunction
function Trig_Falcon_Move_Func003Func007001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Falcon_Move_Func003Func007001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Falcon_Move_Func003Func007001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Falcon_Move_Func003Func007001002001(),Trig_Falcon_Move_Func003Func007001002002())
endfunction
function Trig_Falcon_Move_Func003Func007A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,udg_location22)
endfunction
function Trig_Falcon_Move_Func003Func010001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Falcon_Move_Func003Func010001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Falcon_Move_Func003Func010001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Falcon_Move_Func003Func010001002001(),Trig_Falcon_Move_Func003Func010001002002())
endfunction
function Trig_Falcon_Move_Func003Func010A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,udg_location22)
endfunction
function Trig_Falcon_Move_Func003C takes nothing returns boolean
return(GetOwningPlayer(udg_unit33)==Player(0))
endfunction
function Trig_Falcon_Move_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(udg_units40[bj_forLoopAIndex],851971,udg_units41[bj_forLoopAIndex])
call SetUnitFacingTimed(udg_units40[bj_forLoopAIndex],GetUnitFacing(udg_units41[bj_forLoopAIndex]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
if(Trig_Falcon_Move_Func003C())then
set udg_location22=GetRectCenter(udg_rect19)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect82,Condition(function Trig_Falcon_Move_Func003Func003001002)),function Trig_Falcon_Move_Func003Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
set udg_location22=GetRectCenter(udg_rect23)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect84,Condition(function Trig_Falcon_Move_Func003Func007001002)),function Trig_Falcon_Move_Func003Func007A)
call DestroyGroup(bj_lastCreatedGroup)
set udg_location22=GetRectCenter(udg_rect19)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect86,Condition(function Trig_Falcon_Move_Func003Func010001002)),function Trig_Falcon_Move_Func003Func010A)
call DestroyGroup(bj_lastCreatedGroup)
call RemoveLocation(udg_location22)
else
if(Trig_Falcon_Move_Func003Func001C())then
set udg_location22=GetRectCenter(udg_rect19)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect82,Condition(function Trig_Falcon_Move_Func003Func001Func003001002)),function Trig_Falcon_Move_Func003Func001Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
set udg_location22=GetRectCenter(udg_rect23)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect84,Condition(function Trig_Falcon_Move_Func003Func001Func007001002)),function Trig_Falcon_Move_Func003Func001Func007A)
call DestroyGroup(bj_lastCreatedGroup)
set udg_location22=GetRectCenter(udg_rect19)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect86,Condition(function Trig_Falcon_Move_Func003Func001Func010001002)),function Trig_Falcon_Move_Func003Func001Func010A)
call DestroyGroup(bj_lastCreatedGroup)
call RemoveLocation(udg_location22)
endif
endif
endfunction
function Trig_seller_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[2]==3)
endfunction
function Trig_seller_Func002Func001C takes nothing returns boolean
return(udg_integers11[2]==2)
endfunction
function Trig_seller_Func002C takes nothing returns boolean
return(udg_integers11[2]==1)
endfunction
function Trig_seller_Actions takes nothing returns nothing
set udg_integers11[2]=GetRandomInt(1,4)
if(Trig_seller_Func002C())then
call CreateTextTagUnitBJ("If you can't break the castle , you can hire some peoples attack.",udg_unit37,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
else
if(Trig_seller_Func002Func001C())then
call CreateTextTagUnitBJ("The Payment is high, but the result is satisfied",udg_unit37,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,4.)
else
if(Trig_seller_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Thanks for buying ^^",udg_unit37,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
endif
endif
endif
endfunction
function Trig_ass_shop_Func002Func001Func001Func001C takes nothing returns boolean
return(udg_integers11[4]==4)
endfunction
function Trig_ass_shop_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[4]==3)
endfunction
function Trig_ass_shop_Func002Func001C takes nothing returns boolean
return(udg_integers11[4]==2)
endfunction
function Trig_ass_shop_Func002C takes nothing returns boolean
return(udg_integers11[4]==1)
endfunction
function Trig_ass_shop_Actions takes nothing returns nothing
set udg_integers11[4]=GetRandomInt(1,4)
if(Trig_ass_shop_Func002C())then
call CreateTextTagUnitBJ("|cffffcc00ASS N ROGUE ONLY!!|r",udg_unit38,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_ass_shop_Func002Func001C())then
call CreateTextTagUnitBJ("This equipment for |cffffcc00Thief Job|r Only!!",udg_unit38,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_ass_shop_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Welcome to Thief Equipment Shop!",udg_unit38,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_ass_shop_Func002Func001Func001Func001C())then
call CreateTextTagUnitBJ("|cffffcc00ASS N ROGUE ONLY!!|r",udg_unit38,10.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endif
endif
endif
endif
endfunction
function Trig_wiz_shop_Func002Func001Func001Func001C takes nothing returns boolean
return(udg_integers11[5]==4)
endfunction
function Trig_wiz_shop_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[5]==3)
endfunction
function Trig_wiz_shop_Func002Func001C takes nothing returns boolean
return(udg_integers11[5]==2)
endfunction
function Trig_wiz_shop_Func002C takes nothing returns boolean
return(udg_integers11[5]==1)
endfunction
function Trig_wiz_shop_Actions takes nothing returns nothing
set udg_integers11[5]=GetRandomInt(1,4)
if(Trig_wiz_shop_Func002C())then
call CreateTextTagUnitBJ("|cffffcc00WIZARD AND SAGE ONLY!!|r",udg_unit40,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_wiz_shop_Func002Func001C())then
call CreateTextTagUnitBJ("This equipment for |cffffcc00Mage Job|r Only!!",udg_unit40,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_wiz_shop_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Welcome to Wizard & Sage Equipment Shop!",udg_unit40,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_wiz_shop_Func002Func001Func001Func001C())then
call CreateTextTagUnitBJ("|cffffcc00WIZARD & SAGE ONLY!!|r",udg_unit40,10.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endif
endif
endif
endif
endfunction
function Trig_bs_shop_Func002Func001Func001Func001C takes nothing returns boolean
return(udg_integers11[6]==4)
endfunction
function Trig_bs_shop_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[6]==3)
endfunction
function Trig_bs_shop_Func002Func001C takes nothing returns boolean
return(udg_integers11[6]==2)
endfunction
function Trig_bs_shop_Func002C takes nothing returns boolean
return(udg_integers11[6]==1)
endfunction
function Trig_bs_shop_Actions takes nothing returns nothing
set udg_integers11[6]=GetRandomInt(1,4)
if(Trig_bs_shop_Func002C())then
call CreateTextTagUnitBJ("|cffffcc00BS N ALCHEMIST ONLY!!|r",udg_unit39,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_bs_shop_Func002Func001C())then
call CreateTextTagUnitBJ("This equipment for |cffffcc00Merchant Job|r Only!!",udg_unit39,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_bs_shop_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Welcome to Merchant Equipment Shop!",udg_unit39,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_bs_shop_Func002Func001Func001Func001C())then
call CreateTextTagUnitBJ("|cffffcc00BS N ALCHEMIST ONLY!!|r",udg_unit39,10.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endif
endif
endif
endif
endfunction
function Trig_priest_shop_Func002Func001Func001Func001C takes nothing returns boolean
return(udg_integers11[7]==4)
endfunction
function Trig_priest_shop_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[7]==3)
endfunction
function Trig_priest_shop_Func002Func001C takes nothing returns boolean
return(udg_integers11[7]==2)
endfunction
function Trig_priest_shop_Func002C takes nothing returns boolean
return(udg_integers11[7]==1)
endfunction
function Trig_priest_shop_Actions takes nothing returns nothing
set udg_integers11[7]=GetRandomInt(1,4)
if(Trig_priest_shop_Func002C())then
call CreateTextTagUnitBJ("|cffffcc00PRIEST N MONK ONLY!!|r",udg_unit41,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_priest_shop_Func002Func001C())then
call CreateTextTagUnitBJ("This equipment for |cffffcc00Acolyte Job|r Only!!",udg_unit41,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_priest_shop_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Welcome to Acolyte Equipment Shop!",udg_unit41,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_priest_shop_Func002Func001Func001Func001C())then
call CreateTextTagUnitBJ("|cffffcc00PRIEST N MONK ONLY!!|r",udg_unit41,10.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endif
endif
endif
endif
endfunction
function Trig_hunter_shop_Func002Func001Func001Func001C takes nothing returns boolean
return(udg_integers11[8]==4)
endfunction
function Trig_hunter_shop_Func002Func001Func001C takes nothing returns boolean
return(udg_integers11[8]==3)
endfunction
function Trig_hunter_shop_Func002Func001C takes nothing returns boolean
return(udg_integers11[8]==2)
endfunction
function Trig_hunter_shop_Func002C takes nothing returns boolean
return(udg_integers11[8]==1)
endfunction
function Trig_hunter_shop_Actions takes nothing returns nothing
set udg_integers11[8]=GetRandomInt(1,4)
if(Trig_hunter_shop_Func002C())then
call CreateTextTagUnitBJ("|cffffcc00HUNTER ONLY!!|r",udg_unit42,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_hunter_shop_Func002Func001C())then
call CreateTextTagUnitBJ("This equipment for |cffffcc00Archer Job|r Only!!",udg_unit42,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_hunter_shop_Func002Func001Func001C())then
call CreateTextTagUnitBJ("Welcome to Archer Equipment Shop!",udg_unit42,.0,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
else
if(Trig_hunter_shop_Func002Func001Func001Func001C())then
call CreateTextTagUnitBJ("|cffffcc00HUNTER ONLY!!|r",udg_unit42,10.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endif
endif
endif
endif
endfunction
function Trig_pick_Copy_Copy_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Black Market Is now Open!!! ^^",udg_unit35,25.,8.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,3.)
endfunction
function Trig_quest_Actions takes nothing returns nothing
call CreateQuestBJ(2,"Version Changelog","TRIGSTR_4592","abilities\\spells\\other\\silence\\silence.blp")
call QuestSetEnabled(bj_lastCreatedQuest,true)
call CreateQuestBJ(2,"Credits","Thanks you for playing vRO , always vote vRO every 12 hours","ReplaceableTextures\\CommandButtons\\BTNOrb.blp")
call QuestSetEnabled(bj_lastCreatedQuest,true)
call CreateQuestBJ(0,"Features","|cffffcc00Zedfailon Presents : The vRO Woe Style|r Based on Artificial Entertainment Ragnarok Online game, you must take and defend the emperium until WOE time is over. You can hire some people to defend your emperium, or attack. You can invest zenny with merchant, or ilegal Bot program to gain money. Enjoy it","ReplaceableTextures\\CommandButtons\\BTNRegeneration.blp")
call QuestSetEnabled(bj_lastCreatedQuest,true)
call CreateQuestBJ(0,"As Boss Guild","In game start you will get 300k zenny, you must manage your guild, by share your money to your member, hire some people, invest some zenny, think carefully when you want use some money. If you can't break the emperium because the enemy defense too strong, You can hire deadly breaker, in |cffffcc00Boss Secret Area|r. The Payment of these people is too high, but the result is satisfie.","ReplaceableTextures\\CommandButtons\\BTNAdvancedStrengthOfTheWild.blp")
call QuestSetEnabled(bj_lastCreatedQuest,true)
call CreateQuestBJ(0,"As Guild Member","You will start with 50k zenny, your Boss start with 300k zenny, so if you want money? ask the boss. with money you can buy some stuff to increase your status, and invest money to gain your zenny.","ReplaceableTextures\\CommandButtons\\BTNImprovedStrengthOfTheWild.blp")
call QuestSetEnabled(bj_lastCreatedQuest,true)
call CreateQuestBJ(2,"Status Hint ^^","TRIGSTR_4266","ReplaceableTextures\\CommandButtons\\BTNStun.blp")
call QuestSetEnabled(bj_lastCreatedQuest,true)
endfunction
function Trig_visibility_Func002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_visibility_Func002A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetEnumUnit()),FOG_OF_WAR_VISIBLE,udg_rect39)
call CreateFogModifierRadiusLocBJ(true,GetOwningPlayer(GetEnumUnit()),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect38),1500.)
call TriggerSleepAction(60.)
call FogModifierStop(bj_lastCreatedFogModifier)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_visibility_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_visibility_Func002001002)),function Trig_visibility_Func002A)
endfunction
function Trig_Ai_Stun_Func002001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o002')
endfunction
function Trig_Ai_Stun_Func002001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o001')
endfunction
function Trig_Ai_Stun_Func002001002 takes nothing returns boolean
return GetBooleanOr(Trig_Ai_Stun_Func002001002001(),Trig_Ai_Stun_Func002001002002())
endfunction
function Trig_Ai_Stun_Func002002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851990,PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),1000.,GetUnitFacing(GetEnumUnit())))
endfunction
function Trig_Ai_Stun_Func003001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h038')
endfunction
function Trig_Ai_Stun_Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h039')
endfunction
function Trig_Ai_Stun_Func003001002 takes nothing returns boolean
return GetBooleanOr(Trig_Ai_Stun_Func003001002001(),Trig_Ai_Stun_Func003001002002())
endfunction
function Trig_Ai_Stun_Func003002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRandomLocInRect(udg_rect51))
endfunction
function Trig_Ai_Stun_Func004001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h038')
endfunction
function Trig_Ai_Stun_Func004001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h039')
endfunction
function Trig_Ai_Stun_Func004001002 takes nothing returns boolean
return GetBooleanOr(Trig_Ai_Stun_Func004001002001(),Trig_Ai_Stun_Func004001002002())
endfunction
function Trig_Ai_Stun_Func004002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRandomLocInRect(udg_rect31))
endfunction
function Trig_Ai_Stun_Func005001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e000')
endfunction
function Trig_Ai_Stun_Func005001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h039')
endfunction
function Trig_Ai_Stun_Func005001002 takes nothing returns boolean
return GetBooleanOr(Trig_Ai_Stun_Func005001002001(),Trig_Ai_Stun_Func005001002002())
endfunction
function Trig_Ai_Stun_Func005002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRandomLocInRect(udg_rect28))
endfunction
function Trig_Ai_Stun_Func006001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h03B')
endfunction
function Trig_Ai_Stun_Func006001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h03A')
endfunction
function Trig_Ai_Stun_Func006001002 takes nothing returns boolean
return GetBooleanOr(Trig_Ai_Stun_Func006001002001(),Trig_Ai_Stun_Func006001002002())
endfunction
function Trig_Ai_Stun_Func006002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetUnitLoc(GetEnumUnit()))
endfunction
function Trig_Ai_Stun_Func007001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h004')
endfunction
function Trig_Ai_Stun_Func007001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h009')
endfunction
function Trig_Ai_Stun_Func007001002 takes nothing returns boolean
return GetBooleanOr(Trig_Ai_Stun_Func007001002001(),Trig_Ai_Stun_Func007001002002())
endfunction
function Trig_Ai_Stun_Func007002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetUnitLoc(GetEnumUnit()))
endfunction
function Trig_Ai_Stun_Func008001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00E')
endfunction
function Trig_Ai_Stun_Func008002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851990,PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),100.,GetUnitFacing(GetEnumUnit())))
endfunction
function Trig_Ai_Stun_Func009001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00B')
endfunction
function Trig_Ai_Stun_Func009002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851990,PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),100.,GetUnitFacing(GetEnumUnit())))
endfunction
function Trig_Ai_Stun_Func010001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00F')
endfunction
function Trig_Ai_Stun_Func010002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),852114,GetRandomLocInRect(udg_rect72))
endfunction
function Trig_Ai_Stun_Func011001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00G')
endfunction
function Trig_Ai_Stun_Func011002 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851990,PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),256,GetUnitFacing(GetEnumUnit())))
endfunction
function Trig_Ai_Stun_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Ai_Stun_Func002001002)),function Trig_Ai_Stun_Func002002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Ai_Stun_Func003001002)),function Trig_Ai_Stun_Func003002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect31,Condition(function Trig_Ai_Stun_Func004001002)),function Trig_Ai_Stun_Func004002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Ai_Stun_Func005001002)),function Trig_Ai_Stun_Func005002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Ai_Stun_Func006001002)),function Trig_Ai_Stun_Func006002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Ai_Stun_Func007001002)),function Trig_Ai_Stun_Func007002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Ai_Stun_Func008001002)),function Trig_Ai_Stun_Func008002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Ai_Stun_Func009001002)),function Trig_Ai_Stun_Func009002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Ai_Stun_Func010001002)),function Trig_Ai_Stun_Func010002)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Ai_Stun_Func011001002)),function Trig_Ai_Stun_Func011002)
endfunction
function Trig_botusepot_Func001Func001Func001C takes nothing returns boolean
return(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<=3000)
endfunction
function Trig_botusepot_Func001Func001C takes nothing returns boolean
return(R2I(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit()))<=500)
endfunction
function Trig_botusepot_Func001Func002Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o001')
endfunction
function Trig_botusepot_Func001Func002Func001002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o002')
endfunction
function Trig_botusepot_Func001Func002C takes nothing returns boolean
return(GetBooleanOr(Trig_botusepot_Func001Func002Func001001(),Trig_botusepot_Func001Func002Func001002()))or(GetUnitTypeId(GetTriggerUnit())=='h038')or(GetUnitTypeId(GetTriggerUnit())=='h039')
endfunction
function Trig_botusepot_Func001C takes nothing returns boolean
return(Trig_botusepot_Func001Func002C())
endfunction
function Trig_botusepot_Func002Func002C takes nothing returns boolean
return(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<=2000)
endfunction
function Trig_botusepot_Func002Func003C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h033')or(GetUnitTypeId(GetTriggerUnit())=='h032')or(GetUnitTypeId(GetTriggerUnit())=='h036')or(GetUnitTypeId(GetTriggerUnit())=='h035')or(GetUnitTypeId(GetTriggerUnit())=='h034')or(GetUnitTypeId(GetTriggerUnit())=='h037')or(GetUnitTypeId(GetTriggerUnit())=='h00H')or(GetUnitTypeId(GetTriggerUnit())=='h03B')or(GetUnitTypeId(GetTriggerUnit())=='h03A')
endfunction
function Trig_botusepot_Func002C takes nothing returns boolean
return(Trig_botusepot_Func002Func003C())
endfunction
function Trig_botusepot_Actions takes nothing returns nothing
if(Trig_botusepot_Func001C())then
if(Trig_botusepot_Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.03)
call UnitUseItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00A'))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_botusepot_Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.03)
call UnitUseItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
endif
if(Trig_botusepot_Func002C())then
if(Trig_botusepot_Func002Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.03)
call UnitUseItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func004C takes nothing returns boolean
return(udg_integer54<=20)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00P')
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002Func001C takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(5))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='e000')
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00X')
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func003A takes nothing returns nothing
set udg_units37[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetEnumUnit()
set udg_locations09[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetUnitLoc(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetUnitFacing(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
call SetUnitFacingToFaceUnitTimed(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],udg_units36[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],0)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func014001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(0))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func015001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(1))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func016001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(2))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func017001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(3))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func018001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(4))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func019001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(5))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func020001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(6))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func021001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(7))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func022001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(8))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func023001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(9))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func024001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(10))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func025001 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(11))
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006C takes nothing returns boolean
return(udg_integers35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]<=udg_integers34[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B012'))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func001C takes nothing returns boolean
return(udg_integer49==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
return(udg_integer49==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00G')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func004C takes nothing returns boolean
return(udg_integer48==5)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00E')
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func002Func002Func001C takes nothing returns boolean
return(udg_integer33==4)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func002Func002C takes nothing returns boolean
return(udg_integer47==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func002C takes nothing returns boolean
return(udg_integer47==5)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
return(udg_integer47==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00E')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C takes nothing returns boolean
return(udg_integers10[2]==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C takes nothing returns boolean
return(udg_integers10[2]==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h009')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C takes nothing returns boolean
return(udg_integers10[1]==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C takes nothing returns boolean
return(udg_integers10[1]==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h004')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C takes nothing returns boolean
return(udg_integers09[2]==2)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C takes nothing returns boolean
return(udg_integers09[2]==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h032')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C takes nothing returns boolean
return(udg_integers09[1]==2)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C takes nothing returns boolean
return(udg_integers09[1]==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h036')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func001C takes nothing returns boolean
return(udg_integer46==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
return(udg_integer46==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03B')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func005Func001C takes nothing returns boolean
return(udg_integer45==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
return(udg_integer45==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03A')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func004C takes nothing returns boolean
return(udg_integer44==5)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h039')
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001Func004C takes nothing returns boolean
return(udg_integer34==5)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h038')
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func005Func002Func002Func001C takes nothing returns boolean
return(udg_integer33==4)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func005Func002Func002C takes nothing returns boolean
return(udg_integer33==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func005Func002C takes nothing returns boolean
return(udg_integer33==5)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001Func005C takes nothing returns boolean
return(udg_integer33==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h038')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func005Func002Func002Func001C takes nothing returns boolean
return(udg_integer35==4)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func005Func002Func002C takes nothing returns boolean
return(udg_integer35==3)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func005Func002C takes nothing returns boolean
return(udg_integer35==5)
endfunction
function Trig_attacked_Func001Func001Func001Func001Func005C takes nothing returns boolean
return(udg_integer35==1)
endfunction
function Trig_attacked_Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h039')and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001Func001Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o001')
endfunction
function Trig_attacked_Func001Func001Func001Func003002 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o002')
endfunction
function Trig_attacked_Func001Func001Func001C takes nothing returns boolean
return(GetBooleanOr(Trig_attacked_Func001Func001Func001Func003001(),Trig_attacked_Func001Func001Func001Func003002()))and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h033')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)!=true)and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h035')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)!=true)and(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_attacked_Actions takes nothing returns nothing
if(Trig_attacked_Func001C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001C())then
call IssueTargetOrderById(GetAttacker(),852587,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001C())then
set udg_integer35=GetRandomInt(1,5)
if(Trig_attacked_Func001Func001Func001Func001Func005C())then
call IssueTargetOrderById(GetAttacker(),852111,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func005Func002C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func005Func002Func002C())then
call IssuePointOrderByIdLoc(GetAttacker(),852089,GetUnitLoc(GetTriggerUnit()))
else
if(Trig_attacked_Func001Func001Func001Func001Func005Func002Func002Func001C())then
call IssuePointOrderByIdLoc(GetAttacker(),852488,GetUnitLoc(GetTriggerUnit()))
endif
endif
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001C())then
set udg_integer33=GetRandomInt(1,5)
if(Trig_attacked_Func001Func001Func001Func001Func001Func005C())then
call IssueTargetOrderById(GetAttacker(),852111,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func005Func002C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func005Func002Func002C())then
call IssuePointOrderByIdLoc(GetAttacker(),852089,GetUnitLoc(GetTriggerUnit()))
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func005Func002Func002Func001C())then
call IssuePointOrderByIdLoc(GetAttacker(),852488,GetUnitLoc(GetTriggerUnit()))
endif
endif
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001C())then
set udg_integer34=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func004C())then
call IssueTargetOrderById(GetTriggerUnit(),852111,GetAttacker())
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integer44=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func004C())then
call IssueTargetOrderById(GetTriggerUnit(),852111,GetAttacker())
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integer45=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func005C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssuePointOrderByIdLoc(GetAttacker(),851983,PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetAttacker()),50.,GetUnitFacing(GetAttacker())),256,0))
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func005Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
call TriggerSleepAction(.4)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssuePointOrderByIdLoc(GetAttacker(),851983,PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetAttacker()),50.,GetUnitFacing(GetAttacker())),256,0))
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integer46=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssuePointOrderByIdLoc(GetAttacker(),851983,PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetAttacker()),50.,GetUnitFacing(GetAttacker())),256,0))
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
call TriggerSleepAction(.4)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssuePointOrderByIdLoc(GetAttacker(),851983,PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetAttacker()),50.,GetUnitFacing(GetAttacker())),256,0))
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers09[1]=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers09[2]=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers10[1]=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers10[2]=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003Func001C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integer47=GetRandomInt(1,5)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005C())then
call IssueTargetOrderById(GetAttacker(),852111,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func002C())then
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func002Func002C())then
call IssuePointOrderByIdLoc(GetAttacker(),852089,GetUnitLoc(GetTriggerUnit()))
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func002Func002Func001C())then
call IssuePointOrderByIdLoc(GetAttacker(),852488,GetUnitLoc(GetTriggerUnit()))
endif
endif
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integer48=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func004C())then
call IssueTargetOrderById(GetTriggerUnit(),852111,GetAttacker())
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integer49=GetRandomInt(1,3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssuePointOrderByIdLoc(GetAttacker(),851983,PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetAttacker()),50.,GetUnitFacing(GetAttacker())),256,0))
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrderById(GetAttacker(),852095,GetTriggerUnit())
call TriggerSleepAction(.4)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call IssuePointOrderByIdLoc(GetAttacker(),851983,PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetAttacker()),50.,GetUnitFacing(GetAttacker())),256,0))
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_units35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetAttacker()
set udg_units36[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetTriggerUnit()
set udg_integers34[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=18
set udg_integers35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetRandomInt(1,'d')
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006C())then
call PlaySoundOnUnitBJ(udg_sound30,'d',udg_units35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
call ForGroupBJ(GetUnitsOfPlayerMatching(GetOwningPlayer(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]),Condition(function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func003001002)),function Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func003A)
set udg_locations10[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=PolarProjectionBJ(GetUnitLoc(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]),25.,GetUnitFacing(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]))
call SetUnitPositionLoc(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],udg_locations10[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
call SetUnitFacingToFaceUnitTimed(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],udg_units36[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_units37[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
set udg_effects14[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects14[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
set udg_integers32[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=0
set udg_integers33[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=250
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.3)
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func014001())then
call EnableTrigger(udg_trigger141)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func015001())then
call EnableTrigger(udg_trigger142)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func016001())then
call EnableTrigger(udg_trigger143)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func017001())then
call EnableTrigger(udg_trigger144)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func018001())then
call EnableTrigger(udg_trigger145)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func019001())then
call EnableTrigger(udg_trigger146)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func020001())then
call EnableTrigger(udg_trigger147)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func021001())then
call EnableTrigger(udg_trigger148)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func022001())then
call EnableTrigger(udg_trigger149)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func023001())then
call EnableTrigger(udg_trigger150)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func024001())then
call EnableTrigger(udg_trigger151)
endif
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func006Func025001())then
call EnableTrigger(udg_trigger152)
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002C())then
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(udg_rect19))
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002Func001C())then
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRectCenter(udg_rect19))
endif
endif
else
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_units46[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetAttacker()
set udg_units47[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetTriggerUnit()
set udg_integer54=GetRandomInt(1,'d')
if(Trig_attacked_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func004C())then
call IssueTargetOrderById(udg_units46[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))],852171,udg_units47[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endif
set udg_units46[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=null
set udg_units47[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
set udg_integer54=0
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_Pilih_Hero_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Pilih_Hero_Func002Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='H01J')
endfunction
function Trig_Pilih_Hero_Func002Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='H01I')
endfunction
function Trig_Pilih_Hero_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='H00W')
endfunction
function Trig_Pilih_Hero_Func003Func002Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(1))
endfunction
function Trig_Pilih_Hero_Func003Func002Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func003001002001(),Trig_Pilih_Hero_Func003Func002Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(2))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(3))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(4))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(7))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(9))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(10))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003001002001(),Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003001002002())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(10))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(9))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(8))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(7))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(6))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(4))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(3))
endfunction
function Trig_Pilih_Hero_Func003Func002Func005C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(2))
endfunction
function Trig_Pilih_Hero_Func003Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(1))
endfunction
function Trig_Pilih_Hero_Func003Func005001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(0))
endfunction
function Trig_Pilih_Hero_Func003Func005001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n004')
endfunction
function Trig_Pilih_Hero_Func003Func005001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pilih_Hero_Func003Func005001002001(),Trig_Pilih_Hero_Func003Func005001002002())
endfunction
function Trig_Pilih_Hero_Func003Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Pilih_Hero_Func003C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(0))
endfunction
function Trig_Pilih_Hero_Actions takes nothing returns nothing
call SetHeroLevelBJ(GetEnteringUnit(),99,false)
if(Trig_Pilih_Hero_Func002C())then
set udg_units41[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=GetEnteringUnit()
set udg_locations12[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=GetUnitLoc(GetEnteringUnit())
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(GetEnteringUnit()),udg_locations12[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))],bj_UNIT_FACING)
set udg_units40[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=bj_lastCreatedUnit
else
if(Trig_Pilih_Hero_Func002Func001C())then
set udg_units41[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=GetEnteringUnit()
set udg_locations12[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=GetUnitLoc(GetEnteringUnit())
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(GetEnteringUnit()),udg_locations12[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))],bj_UNIT_FACING)
set udg_units40[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=bj_lastCreatedUnit
else
if(Trig_Pilih_Hero_Func002Func001Func001C())then
set udg_units41[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=GetEnteringUnit()
set udg_locations12[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=GetUnitLoc(GetEnteringUnit())
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(GetEnteringUnit()),udg_locations12[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))],bj_UNIT_FACING)
set udg_units40[(1+GetPlayerId(GetOwningPlayer(GetEnteringUnit())))]=bj_lastCreatedUnit
endif
endif
endif
if(Trig_Pilih_Hero_Func003C())then
call UnitAddAbility(GetEnteringUnit(),'A04T')
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func005001002)),function Trig_Pilih_Hero_Func003Func005002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"war3mapImported\\SpiralAura.mdx")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func003001002)),function Trig_Pilih_Hero_Func003Func002Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"war3mapImported\\SpiralAura.mdx")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"war3mapImported\\SpiralAura.mdx")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"war3mapImported\\SpiralAura.mdx")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"war3mapImported\\SpiralAura.mdx")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005C())then
call UnitAddAbility(GetEnteringUnit(),'A04T')
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Undead\\UnholyAura\\UnholyAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func004002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Orc\\CommandAura\\CommandAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Orc\\CommandAura\\CommandAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Orc\\CommandAura\\CommandAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Orc\\CommandAura\\CommandAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005C())then
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Orc\\CommandAura\\CommandAura.mdl")
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003001002)),function Trig_Pilih_Hero_Func003Func002Func005Func005Func005Func005Func005Func006Func005Func005Func005Func005Func003002)
call DestroyGroup(bj_lastCreatedGroup)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_hero_die_Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h019')
endfunction
function Trig_hero_die_Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h00M')
endfunction
function Trig_hero_die_Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h00L')
endfunction
function Trig_hero_die_Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h00J')
endfunction
function Trig_hero_die_Func001Func015Func001Func001Func006Func006C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='H01S')
endfunction
function Trig_hero_die_Func001Func015Func001Func001Func006C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='H01V')
endfunction
function Trig_hero_die_Func001Func015Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='H02A')
endfunction
function Trig_hero_die_Func001Func015Func001C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='H029')
endfunction
function Trig_hero_die_Func001Func015C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='H00N')
endfunction
function Trig_hero_die_Func001C takes nothing returns boolean
return(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetDyingUnit())!=Player(12))
endfunction
function Trig_hero_die_Actions takes nothing returns nothing
if(Trig_hero_die_Func001C())then
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(5.)
call ReviveHeroLoc(GetDyingUnit(),GetRandomLocInRect(udg_rect03),false)
call AddSpecialEffectTargetUnitBJ("origin",GetDyingUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitManaPercentBJ(GetDyingUnit(),50.)
call SetUnitLifePercentBJ(GetDyingUnit(),5.)
call UnitRemoveAbility(GetDyingUnit(),'A02H')
call SetUnitMoveSpeed(GetDyingUnit(),GetUnitDefaultMoveSpeed(GetDyingUnit()))
call SetUnitTimeScalePercent(GetDyingUnit(),'d')
call SetUnitPathing(GetDyingUnit(),true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetUnitLoc(GetDyingUnit()),0)
if(Trig_hero_die_Func001Func015C())then
call UnitRemoveAbility(GetDyingUnit(),'A00Q')
else
if(Trig_hero_die_Func001Func015Func001C())then
call UnitRemoveAbility(GetDyingUnit(),'A04X')
call UnitRemoveAbility(GetDyingUnit(),'A04Y')
call UnitRemoveAbility(GetDyingUnit(),'A02B')
call UnitAddAbility(GetDyingUnit(),'A029')
call UnitAddAbility(GetDyingUnit(),'A02K')
else
if(Trig_hero_die_Func001Func015Func001Func001C())then
call UnitRemoveAbility(GetDyingUnit(),'A04X')
call UnitRemoveAbility(GetDyingUnit(),'A04Y')
call UnitRemoveAbility(GetDyingUnit(),'A02B')
call UnitAddAbility(GetDyingUnit(),'A029')
call UnitAddAbility(GetDyingUnit(),'A02K')
else
if(Trig_hero_die_Func001Func015Func001Func001Func006C())then
call UnitRemoveAbility(GetDyingUnit(),'A04X')
call UnitRemoveAbility(GetDyingUnit(),'A04Y')
call UnitRemoveAbility(GetDyingUnit(),'A02B')
call UnitAddAbility(GetDyingUnit(),'A029')
call UnitAddAbility(GetDyingUnit(),'A02K')
else
if(Trig_hero_die_Func001Func015Func001Func001Func006Func006C())then
call UnitRemoveAbility(GetDyingUnit(),'A01L')
endif
endif
endif
endif
endif
else
if(Trig_hero_die_Func001Func001C())then
call RemoveUnit(GetDyingUnit())
else
if(Trig_hero_die_Func001Func001Func001C())then
call RemoveUnit(GetDyingUnit())
else
if(Trig_hero_die_Func001Func001Func001Func001C())then
call RemoveUnit(GetDyingUnit())
else
if(Trig_hero_die_Func001Func001Func001Func001Func001C())then
call RemoveUnit(GetDyingUnit())
endif
endif
endif
endif
endif
endfunction
function Trig_Unit_Die_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='h033')or(GetUnitTypeId(GetDyingUnit())=='h032')or(GetUnitTypeId(GetDyingUnit())=='h036')or(GetUnitTypeId(GetDyingUnit())=='h035')or(GetUnitTypeId(GetDyingUnit())=='h034')or(GetUnitTypeId(GetDyingUnit())=='h037')or(GetUnitTypeId(GetDyingUnit())=='o001')or(GetUnitTypeId(GetDyingUnit())=='o002')or(GetUnitTypeId(GetDyingUnit())=='h038')or(GetUnitTypeId(GetDyingUnit())=='h039')or(GetUnitTypeId(GetDyingUnit())=='h03A')or(GetUnitTypeId(GetDyingUnit())=='h03B')or(GetUnitTypeId(GetDyingUnit())=='h03D')or(GetUnitTypeId(GetDyingUnit())=='h03C')or(GetUnitTypeId(GetDyingUnit())=='h009')or(GetUnitTypeId(GetDyingUnit())=='h004')or(GetUnitTypeId(GetDyingUnit())=='h00H')
endfunction
function Trig_Unit_Die_Conditions takes nothing returns boolean
return(Trig_Unit_Die_Func002C())
endfunction
function Trig_Unit_Die_Func001Func003C takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetDyingUnit(),'I00A'))=='I00A')or(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetDyingUnit(),'I009'))=='I009')
endfunction
function Trig_Unit_Die_Func001C takes nothing returns boolean
return(Trig_Unit_Die_Func001Func003C())
endfunction
function Trig_Unit_Die_Actions takes nothing returns nothing
if(Trig_Unit_Die_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),'I00A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetDyingUnit(),'I009'))
endif
endfunction
function Trig_playerset_Actions takes nothing returns nothing
call AdjustPlayerStateBJ('d',Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ('d',Player(6),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(7),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(8),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(9),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(10),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50,Player(11),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_No_ally_attack_1_Conditions takes nothing returns boolean
return(IsUnitAlly(GetTriggerUnit(),Player(5)))and(IsUnitAlly(GetAttacker(),Player(5)))
endfunction
function Trig_No_ally_attack_1_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
call TriggerSleepAction(1.)
endfunction
function Trig_No_ally_attack_2_Conditions takes nothing returns boolean
return(IsUnitAlly(GetTriggerUnit(),Player(11)))and(IsUnitAlly(GetAttacker(),Player(11)))
endfunction
function Trig_No_ally_attack_2_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),851972)
call TriggerSleepAction(1.)
endfunction
function Trig_repick_mode_on_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,15.,"TRIGSTR_1985")
call EnableTrigger(udg_trigger31)
call EnableTrigger(udg_trigger32)
call EnableTrigger(udg_trigger33)
call EnableTrigger(udg_trigger34)
call EnableTrigger(udg_trigger35)
call EnableTrigger(udg_trigger36)
call EnableTrigger(udg_trigger37)
call EnableTrigger(udg_trigger38)
call EnableTrigger(udg_trigger39)
call EnableTrigger(udg_trigger40)
call EnableTrigger(udg_trigger41)
call EnableTrigger(udg_trigger42)
call TriggerSleepAction(20.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,15.,"|cffffcc00Remember If you buy same item, the effect still one item|r")
endfunction
function Trig_repick_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(0))
endfunction
function Trig_repick_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_Func002001002001(),Trig_repick_Func002001002002())
endfunction
function Trig_repick_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_Func002001002)),function Trig_repick_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(0),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_2_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(1))
endfunction
function Trig_repick_2_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_2_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_2_Func002001002001(),Trig_repick_2_Func002001002002())
endfunction
function Trig_repick_2_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_2_Func002001002)),function Trig_repick_2_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(1),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(1),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_3_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(2))
endfunction
function Trig_repick_3_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_3_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_3_Func002001002001(),Trig_repick_3_Func002001002002())
endfunction
function Trig_repick_3_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_3_Func002001002)),function Trig_repick_3_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(2),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_4_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(3))
endfunction
function Trig_repick_4_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_4_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_4_Func002001002001(),Trig_repick_4_Func002001002002())
endfunction
function Trig_repick_4_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_4_Func002001002)),function Trig_repick_4_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(3),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(3),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_5_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(4))
endfunction
function Trig_repick_5_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_5_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_5_Func002001002001(),Trig_repick_5_Func002001002002())
endfunction
function Trig_repick_5_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_5_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_5_Func002001002)),function Trig_repick_5_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(4),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(4),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_6_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_repick_6_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_6_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_6_Func002001002001(),Trig_repick_6_Func002001002002())
endfunction
function Trig_repick_6_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_6_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_6_Func002001002)),function Trig_repick_6_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(5),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(5),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_7_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function Trig_repick_7_Func002001002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_7_Func002001002002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_repick_7_Func002001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_7_Func002001002002001(),Trig_repick_7_Func002001002002002())
endfunction
function Trig_repick_7_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_7_Func002001002001(),Trig_repick_7_Func002001002002())
endfunction
function Trig_repick_7_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_7_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_7_Func002001002)),function Trig_repick_7_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(6),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(6),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_8_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(7))
endfunction
function Trig_repick_8_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_8_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_8_Func002001002001(),Trig_repick_8_Func002001002002())
endfunction
function Trig_repick_8_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_8_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_8_Func002001002)),function Trig_repick_8_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(7),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(7),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_9_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function Trig_repick_9_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_9_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_9_Func002001002001(),Trig_repick_9_Func002001002002())
endfunction
function Trig_repick_9_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_9_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_9_Func002001002)),function Trig_repick_9_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(8),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(8),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_10_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(9))
endfunction
function Trig_repick_10_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_10_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_10_Func002001002001(),Trig_repick_10_Func002001002002())
endfunction
function Trig_repick_10_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_10_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_10_Func002001002)),function Trig_repick_10_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(9),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(9),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_11_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(10))
endfunction
function Trig_repick_11_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_11_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_11_Func002001002001(),Trig_repick_11_Func002001002002())
endfunction
function Trig_repick_11_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_11_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_11_Func002001002)),function Trig_repick_11_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(10),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(10),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_repick_12_Func002001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_repick_12_Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_repick_12_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_repick_12_Func002001002001(),Trig_repick_12_Func002001002002())
endfunction
function Trig_repick_12_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_repick_12_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_repick_12_Func002001002)),function Trig_repick_12_Func002A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'n004',Player(11),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call PanCameraToTimedLocForPlayer(Player(11),GetRectCenter(udg_rect05),0)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_LUMBER,300)
endfunction
function Trig_Welcome_Func002C takes nothing returns boolean
return(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Welcome_Actions takes nothing returns nothing
call SetTimeOfDay(12)
if(Trig_Welcome_Func002C())then
call DialogAddButtonBJ(udg_dialogs01[1],"10 minutes")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialogs01[1],"20 minutes")
set udg_buttons02[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialogs01[1],"30 minutes")
set udg_buttons03[1]=bj_lastCreatedButton
call DialogSetMessage(udg_dialogs01[1],"Choose WOE Time length")
call DialogDisplayBJ(true,udg_dialogs01[1],Player(0))
endif
endfunction
function Trig_Save_Vote_Func001Func003Func003Func003C takes nothing returns boolean
return(GetClickedButton()==udg_buttons03[1])
endfunction
function Trig_Save_Vote_Func001Func003Func003C takes nothing returns boolean
return(Trig_Save_Vote_Func001Func003Func003Func003C())
endfunction
function Trig_Save_Vote_Func001Func003Func004C takes nothing returns boolean
return(GetClickedButton()==udg_buttons02[1])
endfunction
function Trig_Save_Vote_Func001Func003C takes nothing returns boolean
return(Trig_Save_Vote_Func001Func003Func004C())
endfunction
function Trig_Save_Vote_Func001Func004C takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function Trig_Save_Vote_Func001C takes nothing returns boolean
return(Trig_Save_Vote_Func001Func004C())
endfunction
function Trig_Save_Vote_Actions takes nothing returns nothing
if(Trig_Save_Vote_Func001C())then
call TriggerExecute(udg_trigger05)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(Player(0))+" Has choose |cffffcc0010|r minutes for WOE Time"))
else
if(Trig_Save_Vote_Func001Func003C())then
call TriggerExecute(udg_trigger06)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(Player(0))+" Has choose |cffffcc0020|r minutes for WOE Time"))
else
if(Trig_Save_Vote_Func001Func003Func003C())then
call TriggerExecute(udg_trigger07)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(Player(0))+" Has choose |cffffcc0030|r minutes for WOE Time"))
endif
endif
endif
endfunction
function Trig_Act_Dead_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03L')
endfunction
function Trig_Act_Dead_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetSpellAbilityUnit())=='H02K')
endfunction
function Trig_Act_Dead_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetSpellAbilityUnit())=='H02H')
endfunction
function Trig_Act_Dead_Actions takes nothing returns nothing
if(Trig_Act_Dead_Func001C())then
call CreateNUnitsAtLoc(1,'h02L',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitFacing(GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.01,'BTLF',bj_lastCreatedUnit)
call IssueImmediateOrderById(GetSpellAbilityUnit(),851972)
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
set udg_effects07[1]=bj_lastCreatedEffect
call TriggerSleepAction(10.)
call DestroyEffect(udg_effects07[1])
endif
if(Trig_Act_Dead_Func002C())then
call CreateNUnitsAtLoc(1,'h02M',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitFacing(GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.01,'BTLF',bj_lastCreatedUnit)
call IssueImmediateOrderById(GetSpellAbilityUnit(),851972)
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
set udg_effects07[2]=bj_lastCreatedEffect
call TriggerSleepAction(10.)
call DestroyEffect(udg_effects07[2])
endif
endfunction
function Trig_Act_Dead_End_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetOrderedUnit())=='H02H')
endfunction
function Trig_Act_Dead_End_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetOrderedUnit())=='H02K')
endfunction
function Trig_Act_Dead_End_Actions takes nothing returns nothing
if(Trig_Act_Dead_End_Func001C())then
call UnitRemoveAbility(GetOrderedUnit(),'B00Y')
call ResetUnitAnimation(GetOrderedUnit())
endif
if(Trig_Act_Dead_End_Func002C())then
call UnitRemoveAbility(GetOrderedUnit(),'B00Y')
call ResetUnitAnimation(GetOrderedUnit())
endif
endfunction
function Trig_ruwach_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01O')
endfunction
function Trig_ruwach_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Ruwach !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
set udg_units04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
call UnitAddAbility(udg_units04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A01Q')
call TriggerSleepAction(20.)
call UnitRemoveAbility(udg_units04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A01Q')
endfunction
function Trig_Steel_Body_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02F')
endfunction
function Trig_Steel_Body_Actions takes nothing returns nothing
set udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_locations13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Steel Body !!",udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call CreateNUnitsAtLocFacingLocBJ(1,'h01Y',Player(15),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.5,'BTLF',bj_lastCreatedUnit)
call SetUnitMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],(GetUnitMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])-(GetUnitMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])*.5)))
call UnitAddAbility(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A02H')
call UnitRemoveAbility(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A02F')
set udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call TriggerExecute(udg_trigger49)
endfunction
function Trig_Steelbody_Time_Func007Func001C takes nothing returns boolean
return(udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=24)
endfunction
function Trig_Steelbody_Time_Func007C takes nothing returns boolean
return(udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=24)
endfunction
function Trig_Steelbody_Time_Func008C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endfunction
function Trig_Steelbody_Time_Actions takes nothing returns nothing
set udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
call AddSpecialEffectTargetUnitBJ(("right, hand"+"left, hand"),udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],"Abilities\\Spells\\Human\\ManaFlare\\ManaFlareBoltImpact.mdl")
set udg_effects15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetUnitManaBJ(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],(I2R(R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))-25.))
call TriggerSleepAction(1.)
if(Trig_Steelbody_Time_Func007C())then
call TriggerExecute(GetTriggeringTrigger())
else
if(Trig_Steelbody_Time_Func007Func001C())then
call SetUnitMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitDefaultMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
call UnitRemoveAbility(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A02H')
call UnitAddAbility(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A02F')
set udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call RemoveLocation(udg_locations13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
endif
if(Trig_Steelbody_Time_Func008C())then
set udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=24
call SetUnitMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitDefaultMoveSpeed(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
call UnitRemoveAbility(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A02H')
call UnitAddAbility(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A02F')
set udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call RemoveLocation(udg_locations13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_integers36[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
endfunction
function Trig_spirit_explosion_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A029')
endfunction
function Trig_spirit_explosion_Actions takes nothing returns nothing
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_integers41[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call PlaySoundOnUnitBJ(udg_sound31,'d',udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Spirit Explosion !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A04Y')
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A02B')
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A04X')
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A02K')
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A029')
call TriggerExecute(udg_trigger51)
endfunction
function Trig_Spirit_Explosion_time_Func003Func001C takes nothing returns boolean
return(udg_integers41[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=14)
endfunction
function Trig_Spirit_Explosion_time_Func003C takes nothing returns boolean
return(udg_integers41[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=14)
endfunction
function Trig_Spirit_Explosion_time_Actions takes nothing returns nothing
call TriggerSleepAction(1.)
set udg_integers41[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers41[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
if(Trig_Spirit_Explosion_time_Func003C())then
call TriggerExecute(GetTriggeringTrigger())
else
if(Trig_Spirit_Explosion_time_Func003Func001C())then
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A04X')
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A04Y')
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A02K')
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A02B')
set udg_integers41[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
call TriggerSleepAction(2.)
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A029')
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
endif
endif
endfunction
function Trig__Magnificat_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01M')
endfunction
function Trig__Magnificat_Actions takes nothing returns nothing
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
call PlaySoundAtPointBJ(udg_sound33,'d',GetUnitLoc(GetSpellAbilityUnit()),0)
call CreateTextTagUnitBJ("Magnificat!!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A01L')
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A01M')
set udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call TriggerExecute(udg_trigger53)
endfunction
function Trig_Magnificat_Time_Func003C takes nothing returns boolean
return(udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=20)
endfunction
function Trig_Magnificat_Time_Func004C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endfunction
function Trig_Magnificat_Time_Actions takes nothing returns nothing
set udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
call TriggerSleepAction(1.)
if(Trig_Magnificat_Time_Func003C())then
call TriggerExecute(GetTriggeringTrigger())
else
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A01L')
call TriggerSleepAction(7.)
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A01M')
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
set udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
if(Trig_Magnificat_Time_Func004C())then
set udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=20
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A01L')
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'A01M')
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
set udg_integers43[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
endfunction
function Trig_Kyre_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A050')
endfunction
function Trig_Kyre_Actions takes nothing returns nothing
set udg_units52[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units50[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
call PlaySoundOnUnitBJ(udg_sound35,'d',udg_units50[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Kyre Elecsion!!",udg_units52[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call TriggerSleepAction(.1)
set udg_units52[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units50[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_Agi_Func009001 takes nothing returns boolean
return(GetSpellAbilityId()=='A01I')
endfunction
function Trig_Agi_Func009002 takes nothing returns boolean
return(GetSpellAbilityId()=='A04N')
endfunction
function Trig_Agi_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Agi_Func009001(),Trig_Agi_Func009002()))
endfunction
function Trig_Agi_Actions takes nothing returns nothing
set udg_units53[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units54[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
call CreateTextTagUnitBJ("AGI up!!",udg_units54[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call TriggerSleepAction(.1)
set udg_units53[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units54[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_Blessing_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01G')
endfunction
function Trig_Blessing_Actions takes nothing returns nothing
set udg_units55[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units56[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
call PlaySoundOnUnitBJ(udg_sound34,'d',udg_units56[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Blessing!",udg_units55[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call TriggerSleepAction(.1)
set udg_units55[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units56[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_blitz_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A051')
endfunction
function Trig_blitz_Func009001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h00X')
endfunction
function Trig_blitz_Func009A takes nothing returns nothing
set udg_units37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetEnumUnit()
set udg_locations09[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitFacing(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitFacingToFaceUnitTimed(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units36[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0)
endfunction
function Trig_blitz_Func020001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(0))
endfunction
function Trig_blitz_Func021001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(1))
endfunction
function Trig_blitz_Func022001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(2))
endfunction
function Trig_blitz_Func023001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(3))
endfunction
function Trig_blitz_Func024001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(4))
endfunction
function Trig_blitz_Func025001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(5))
endfunction
function Trig_blitz_Func026001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(6))
endfunction
function Trig_blitz_Func027001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(7))
endfunction
function Trig_blitz_Func028001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(8))
endfunction
function Trig_blitz_Func029001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(9))
endfunction
function Trig_blitz_Func030001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(10))
endfunction
function Trig_blitz_Func031001 takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(11))
endfunction
function Trig_blitz_Actions takes nothing returns nothing
set udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units36[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
call PlaySoundOnUnitBJ(udg_sound30,'d',udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Blitz Beat !!",udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call ForGroupBJ(GetUnitsOfPlayerMatching(GetOwningPlayer(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),Condition(function Trig_blitz_Func009001002)),function Trig_blitz_Func009A)
set udg_locations10[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=PolarProjectionBJ(GetUnitLoc(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),25.,GetUnitFacing(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
call SetUnitPositionLoc(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_locations10[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitFacingToFaceUnitTimed(udg_units37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units36[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0)
call AddSpecialEffectTargetUnitBJ("origin",udg_units37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
set udg_effects14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_integers32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
set udg_integers33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=250
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.3)
if(Trig_blitz_Func020001())then
call EnableTrigger(udg_trigger141)
endif
if(Trig_blitz_Func021001())then
call EnableTrigger(udg_trigger142)
endif
if(Trig_blitz_Func022001())then
call EnableTrigger(udg_trigger143)
endif
if(Trig_blitz_Func023001())then
call EnableTrigger(udg_trigger144)
endif
if(Trig_blitz_Func024001())then
call EnableTrigger(udg_trigger145)
endif
if(Trig_blitz_Func025001())then
call EnableTrigger(udg_trigger146)
endif
if(Trig_blitz_Func026001())then
call EnableTrigger(udg_trigger147)
endif
if(Trig_blitz_Func027001())then
call EnableTrigger(udg_trigger148)
endif
if(Trig_blitz_Func028001())then
call EnableTrigger(udg_trigger149)
endif
if(Trig_blitz_Func029001())then
call EnableTrigger(udg_trigger150)
endif
if(Trig_blitz_Func030001())then
call EnableTrigger(udg_trigger151)
endif
if(Trig_blitz_Func031001())then
call EnableTrigger(udg_trigger152)
endif
endfunction
function Trig__bash_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A04J')
endfunction
function Trig__bash_unit_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound23,'d',GetSpellAbilityUnit())
set udg_location17=GetUnitLoc(GetSpellTargetUnit())
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),300.)
call CreateNUnitsAtLocFacingLocBJ(1,'h002',GetOwningPlayer(GetSpellAbilityUnit()),udg_location17,GetUnitLoc(GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(.01)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call RemoveLocation(udg_location17)
endfunction
function Trig_lightnening_bolt_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03I')
endfunction
function Trig_lightnening_bolt_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Lightening Bolt !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h02I',GetOwningPlayer(GetSpellAbilityUnit()),OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),400.,0),bj_UNIT_FACING)
set udg_units10[1]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call UnitAddAbility(udg_units10[1],'ACfl')
call IssueTargetOrderById(udg_units10[1],852587,GetSpellTargetUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units10[1])
call CreateNUnitsAtLoc(1,'h02I',GetOwningPlayer(GetSpellAbilityUnit()),OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),.0,400.),bj_UNIT_FACING)
set udg_units10[2]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call UnitAddAbility(udg_units10[2],'ACfl')
call IssueTargetOrderById(udg_units10[2],852587,GetSpellTargetUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units10[2])
call CreateNUnitsAtLoc(1,'h02I',GetOwningPlayer(GetSpellAbilityUnit()),OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),-400.,0),bj_UNIT_FACING)
set udg_units10[3]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call UnitAddAbility(udg_units10[3],'ACfl')
call IssueTargetOrderById(udg_units10[3],852587,GetSpellTargetUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units10[3])
call CreateNUnitsAtLoc(1,'h02I',GetOwningPlayer(GetSpellAbilityUnit()),OffsetLocation(GetUnitLoc(GetSpellTargetUnit()),.0,-400.),bj_UNIT_FACING)
set udg_units10[4]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call UnitAddAbility(udg_units10[4],'ACfl')
call IssueTargetOrderById(udg_units10[4],852587,GetSpellTargetUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units10[4])
endfunction
function Trig_double_strafe_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A044')
endfunction
function Trig_double_strafe_unit_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound29,65.,GetSpellAbilityUnit())
set udg_location16=GetUnitLoc(GetSpellAbilityUnit())
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),200.)
call TriggerSleepAction(.27)
call CreateNUnitsAtLocFacingLocBJ(1,'h00Y',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(udg_location16,50.,GetUnitFacing(GetSpellAbilityUnit())),GetUnitLoc(GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call IssueTargetOrderById(bj_lastCreatedUnit,852095,GetSpellTargetUnit())
call IssuePointOrderByIdLoc(GetSpellAbilityUnit(),851986,PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()),10.,GetUnitFacing(GetSpellTargetUnit())))
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call RemoveLocation(udg_location16)
endfunction
function Trig_backstab_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A011')
endfunction
function Trig_backstab_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Back Stab !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),300.)
call CreateNUnitsAtLocFacingLocBJ(1,'h00V',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()),-20.,GetUnitFacing(GetSpellAbilityUnit())),GetUnitLoc(GetSpellTargetUnit()))
set udg_units01[70]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,300.)
call TriggerSleepAction(.03)
call AddSpecialEffectTargetUnitBJ("chest",GetSpellTargetUnit(),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call PlaySoundOnUnitBJ(udg_sound04,'d',GetSpellAbilityUnit())
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units01[70])
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
endfunction
function Trig_backstab_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A04K')
endfunction
function Trig_backstab_unit_Actions takes nothing returns nothing
set udg_location15=GetUnitLoc(GetSpellTargetUnit())
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLocFacingLocBJ(1,'h00V',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(udg_location15,-20.,GetUnitFacing(GetSpellAbilityUnit())),GetUnitLoc(GetSpellTargetUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,300.)
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(.03)
call AddSpecialEffectTargetUnitBJ("chest",GetSpellTargetUnit(),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call PlaySoundOnUnitBJ(udg_sound04,'d',GetSpellAbilityUnit())
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call RemoveLocation(udg_location15)
endfunction
function Trig_Magnum_Break_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03J')
endfunction
function Trig_Magnum_Break_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Magnum Break !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
endfunction
function Trig_sacrifie_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A00B')
endfunction
function Trig_sacrifie_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Sacrifie !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
endfunction
function Trig_auto_guard_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H004')
endfunction
function Trig_auto_guard_Func003C takes nothing returns boolean
return(udg_integer01==1)
endfunction
function Trig_auto_guard_Actions takes nothing returns nothing
set udg_integer01=GetRandomInt(1,5)
if(Trig_auto_guard_Func003C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h011',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),30.,GetUnitFacing(GetAttacker())),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.)
endif
endfunction
function Trig_auto_guard_2_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H00J')
endfunction
function Trig_auto_guard_2_Func003C takes nothing returns boolean
return(udg_integer01==1)
endfunction
function Trig_auto_guard_2_Actions takes nothing returns nothing
set udg_integer01=GetRandomInt(1,5)
if(Trig_auto_guard_2_Func003C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h011',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),30.,GetUnitFacing(GetAttacker())),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.)
endif
endfunction
function Trig_auto_guard_3_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H00M')
endfunction
function Trig_auto_guard_3_Func003C takes nothing returns boolean
return(udg_integer01==1)
endfunction
function Trig_auto_guard_3_Actions takes nothing returns nothing
set udg_integer01=GetRandomInt(1,5)
if(Trig_auto_guard_3_Func003C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h011',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),30.,GetUnitFacing(GetAttacker())),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.)
endif
endfunction
function Trig_auto_guard_4_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H00L')
endfunction
function Trig_auto_guard_4_Func003C takes nothing returns boolean
return(udg_integer01==1)
endfunction
function Trig_auto_guard_4_Actions takes nothing returns nothing
set udg_integer01=GetRandomInt(1,5)
if(Trig_auto_guard_4_Func003C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h011',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),30.,GetUnitFacing(GetAttacker())),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.)
endif
endfunction
function Trig_auto_guard_5_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H00K')
endfunction
function Trig_auto_guard_5_Func003C takes nothing returns boolean
return(udg_integer01==1)
endfunction
function Trig_auto_guard_5_Actions takes nothing returns nothing
set udg_integer01=GetRandomInt(1,5)
if(Trig_auto_guard_5_Func003C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h011',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),30.,GetUnitFacing(GetAttacker())),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.)
endif
endfunction
function Trig_auto_guard_6_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H00I')
endfunction
function Trig_auto_guard_6_Func003C takes nothing returns boolean
return(udg_integer01==1)
endfunction
function Trig_auto_guard_6_Actions takes nothing returns nothing
set udg_integer01=GetRandomInt(1,5)
if(Trig_auto_guard_6_Func003C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h011',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),30.,GetUnitFacing(GetAttacker())),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.)
endif
endfunction
function Trig_sonic_blow_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A043')
endfunction
function Trig_sonic_blow_unit_Actions takes nothing returns nothing
set udg_location14=GetUnitLoc(GetSpellAbilityUnit())
call CreateNUnitsAtLoc(1,'h00O',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(udg_location14,-250.,GetUnitFacing(GetSpellAbilityUnit())),GetUnitFacing(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(.03)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),400.)
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call TriggerSleepAction(.01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call RemoveLocation(udg_location14)
endfunction
function Trig_gerobak_Conditions takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetLearningUnit())==1)
endfunction
function Trig_gerobak_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetLearningUnit())=='H02H')
endfunction
function Trig_gerobak_Actions takes nothing returns nothing
if(Trig_gerobak_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLocFacingLocBJ(1,'h02J',Player(14),PolarProjectionBJ(GetUnitLoc(GetLearningUnit()),-100.,0),GetUnitLoc(GetLearningUnit()))
set udg_units12[1]=bj_lastCreatedUnit
set udg_units11[1]=GetLearningUnit()
call EnableTrigger(udg_trigger74)
endif
endfunction
function Trig_gerobak_2_Conditions takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03I',GetLearningUnit())==1)
endfunction
function Trig_gerobak_2_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetLearningUnit())=='H02K')
endfunction
function Trig_gerobak_2_Actions takes nothing returns nothing
if(Trig_gerobak_2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLocFacingLocBJ(1,'h02J',Player(14),PolarProjectionBJ(GetUnitLoc(GetLearningUnit()),-100.,0),GetUnitLoc(GetLearningUnit()))
set udg_units12[2]=bj_lastCreatedUnit
set udg_units11[2]=GetLearningUnit()
call EnableTrigger(udg_trigger75)
endif
endfunction
function Trig_gerobak_move_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_units12[1],GetUnitFacing(udg_units11[1]),0)
call SetUnitPositionLoc(udg_units12[1],PolarProjectionBJ(GetUnitLoc(udg_units11[1]),-80.,GetUnitFacing(udg_units11[1])))
endfunction
function Trig_gerobak_move_Copy_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_units12[2],GetUnitFacing(udg_units11[1]),0)
call SetUnitPositionLoc(udg_units12[2],PolarProjectionBJ(GetUnitLoc(udg_units11[2]),-80.,GetUnitFacing(udg_units11[2])))
endfunction
function Trig_crep_otomatis_bash_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01F')
endfunction
function Trig_crep_otomatis_bash_Actions takes nothing returns nothing
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),300.)
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call CreateNUnitsAtLocFacingLocBJ(1,'h002',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units01[35]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units01[35])
call TriggerSleepAction(.01)
call CreateNUnitsAtLocFacingLocBJ(1,'h002',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units01[36]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units01[36])
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
endfunction
function Trig_arrow_shower_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01T')
endfunction
function Trig_arrow_shower_Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit())==5)
endfunction
function Trig_arrow_shower_Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit())==4)
endfunction
function Trig_arrow_shower_Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit())==3)
endfunction
function Trig_arrow_shower_Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit())==2)
endfunction
function Trig_arrow_shower_Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit())==1)
endfunction
function Trig_arrow_shower_Actions takes nothing returns nothing
if(Trig_arrow_shower_Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h015',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units04[10]=bj_lastCreatedUnit
call UnitAddAbility(udg_units04[10],'A01P')
call SetUnitAbilityLevelSwapped('A01P',udg_units04[10],GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units04[10])
else
if(Trig_arrow_shower_Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h015',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units04[10]=bj_lastCreatedUnit
call UnitAddAbility(udg_units04[10],'A01P')
call SetUnitAbilityLevelSwapped('A01P',udg_units04[10],GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units04[10])
else
if(Trig_arrow_shower_Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h015',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units04[10]=bj_lastCreatedUnit
call UnitAddAbility(udg_units04[10],'A01P')
call SetUnitAbilityLevelSwapped('A01P',udg_units04[10],GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units04[10])
else
if(Trig_arrow_shower_Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h015',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units04[10]=bj_lastCreatedUnit
call UnitAddAbility(udg_units04[10],'A01P')
call SetUnitAbilityLevelSwapped('A01P',udg_units04[10],GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units04[10])
else
if(Trig_arrow_shower_Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h015',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units04[10]=bj_lastCreatedUnit
call UnitAddAbility(udg_units04[10],'A01P')
call SetUnitAbilityLevelSwapped('A01P',udg_units04[10],GetUnitAbilityLevelSwapped('A01T',GetSpellAbilityUnit()))
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units04[10])
endif
endif
endif
endif
endif
endfunction
function Trig_trap_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A04Q')
endfunction
function Trig_trap_unit_Actions takes nothing returns nothing
set udg_location13=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'h016',GetOwningPlayer(GetSpellAbilityUnit()),udg_location13,GetUnitLoc(GetSpellAbilityUnit()))
call RemoveLocation(udg_location13)
endfunction
function Trig_trap_hero_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A018')
endfunction
function Trig_trap_hero_Actions takes nothing returns nothing
set udg_location12=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'h016',GetOwningPlayer(GetSpellAbilityUnit()),udg_location12,GetUnitLoc(GetSpellAbilityUnit()))
call RemoveLocation(udg_location12)
endfunction
function Trig_trap2_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h016')
endfunction
function Trig_trap2_Func002C takes nothing returns boolean
return(udg_integer04==1)
endfunction
function Trig_trap2_Actions takes nothing returns nothing
set udg_integer04=GetRandomInt(1,1)
if(Trig_trap2_Func002C())then
call UnitAddAbility(GetAttacker(),'A01U')
call IssueTargetOrderById(GetAttacker(),852171,GetTriggerUnit())
call UnitApplyTimedLifeBJ(2.,'BTLF',GetAttacker())
call TriggerSleepAction(1.)
call RemoveUnit(GetAttacker())
endif
endfunction
function Trig_quaqmire_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A020')
endfunction
function Trig_quaqmire_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,'h01A',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
set udg_unit09=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(6.,'BTLF',udg_unit09)
call SetUnitTimeScalePercent(udg_unit09,300.)
call TriggerSleepAction(5.)
call RemoveUnit(udg_unit09)
endfunction
function Trig_SG_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03Z')
endfunction
function Trig_SG_unit_Func003002 takes nothing returns nothing
call UnitApplyTimedLifeBJ(5.,'BTLF',GetEnumUnit())
endfunction
function Trig_SG_unit_Func008C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AHbz',GetSpellAbilityUnit())==1)
endfunction
function Trig_SG_unit_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rect01,GetSpellTargetLoc())
call CreateNUnitsAtLocFacingLocBJ(5,'h00P',GetOwningPlayer(GetSpellAbilityUnit()),GetRandomLocInRect(udg_rect01),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_SG_unit_Func003002)
call CreateNUnitsAtLocFacingLocBJ(1,'h01C',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,10.)
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
call DestroyGroup(bj_lastCreatedGroup)
if(Trig_SG_unit_Func008C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01D',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.)
call UnitAddAbility(bj_lastCreatedUnit,'A01Y')
call SetUnitAbilityLevelSwapped('A01Y',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('AHbz',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
endif
endfunction
function Trig_LOV_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01Z')
endfunction
function Trig_LOV_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==10)
endfunction
function Trig_LOV_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==9)
endfunction
function Trig_LOV_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==8)
endfunction
function Trig_LOV_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==7)
endfunction
function Trig_LOV_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==6)
endfunction
function Trig_LOV_Func002Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==5)
endfunction
function Trig_LOV_Func002Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==4)
endfunction
function Trig_LOV_Func002Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==3)
endfunction
function Trig_LOV_Func002Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==2)
endfunction
function Trig_LOV_Func002C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit())==1)
endfunction
function Trig_LOV_Actions takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetSpellAbilityUnit()),5.)
if(Trig_LOV_Func002C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
else
if(Trig_LOV_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call SetUnitAbilityLevelSwapped('A022',bj_lastCreatedUnit,GetUnitAbilityLevelSwapped('A01Z',GetSpellAbilityUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call CameraClearNoiseForPlayer(GetOwningPlayer(GetSpellAbilityUnit()))
endfunction
function Trig_ent_buff_Func001001 takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00M'))
endfunction
function Trig_ent_buff_Actions takes nothing returns nothing
loop
exitwhen(Trig_ent_buff_Func001001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,.1))
endloop
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Doodads\\Icecrown\\Rocks\\Icecrown_Crystal\\Icecrown_Crystal8.mdl")
call TriggerSleepAction(3.)
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_keracunan_Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h026')
endfunction
function Trig_keracunan_Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h025')
endfunction
function Trig_keracunan_Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h024')
endfunction
function Trig_keracunan_Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h023')
endfunction
function Trig_keracunan_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h001')
endfunction
function Trig_keracunan_Actions takes nothing returns nothing
if(Trig_keracunan_Func001C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),25.,'d',25.,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(1.)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),15.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(20.)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,'d',100.,0)
else
if(Trig_keracunan_Func001Func001C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),25.,'d',25.,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(1.)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),20.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(20.)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,'d',100.,0)
else
if(Trig_keracunan_Func001Func001Func001C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),25.,'d',25.,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(1.)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),35.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(20.)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,'d',100.,0)
else
if(Trig_keracunan_Func001Func001Func001Func001C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),25.,'d',25.,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(1.)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),45.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(20.)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,'d',100.,0)
else
if(Trig_keracunan_Func001Func001Func001Func001Func001C())then
call SetUnitVertexColorBJ(GetTriggerUnit(),25.,'d',25.,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(1.)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),60.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(20.)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,'d',100.,0)
endif
endif
endif
endif
endif
endfunction
function Trig_Venom_Dust_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A00A')
endfunction
function Trig_Venom_Dust_Func004Func001Func001Func001Func001Func002002 takes nothing returns nothing
call UnitApplyTimedLifeBJ(30.,'BTLF',GetEnumUnit())
endfunction
function Trig_Venom_Dust_Func004Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A00A',GetSpellAbilityUnit())==5)
endfunction
function Trig_Venom_Dust_Func004Func001Func001Func001Func003002 takes nothing returns nothing
call UnitApplyTimedLifeBJ(30.,'BTLF',GetEnumUnit())
endfunction
function Trig_Venom_Dust_Func004Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A00A',GetSpellAbilityUnit())==4)
endfunction
function Trig_Venom_Dust_Func004Func001Func001Func003002 takes nothing returns nothing
call UnitApplyTimedLifeBJ(30.,'BTLF',GetEnumUnit())
endfunction
function Trig_Venom_Dust_Func004Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A00A',GetSpellAbilityUnit())==3)
endfunction
function Trig_Venom_Dust_Func004Func001Func003002 takes nothing returns nothing
call UnitApplyTimedLifeBJ(30.,'BTLF',GetEnumUnit())
endfunction
function Trig_Venom_Dust_Func004Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A00A',GetSpellAbilityUnit())==2)
endfunction
function Trig_Venom_Dust_Func004Func003002 takes nothing returns nothing
call UnitApplyTimedLifeBJ(30.,'BTLF',GetEnumUnit())
endfunction
function Trig_Venom_Dust_Func004C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A00A',GetSpellAbilityUnit())==1)
endfunction
function Trig_Venom_Dust_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Venom Dust !!",GetSpellAbilityUnit(),.0,12.,60.,100.,60.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
if(Trig_Venom_Dust_Func004C())then
call CreateNUnitsAtLocFacingLocBJ(12,'h001',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Venom_Dust_Func004Func003002)
else
if(Trig_Venom_Dust_Func004Func001C())then
call CreateNUnitsAtLocFacingLocBJ(12,'h023',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Venom_Dust_Func004Func001Func003002)
else
if(Trig_Venom_Dust_Func004Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(12,'h024',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Venom_Dust_Func004Func001Func001Func003002)
else
if(Trig_Venom_Dust_Func004Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(12,'h025',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Venom_Dust_Func004Func001Func001Func001Func003002)
else
if(Trig_Venom_Dust_Func004Func001Func001Func001Func001C())then
call CreateNUnitsAtLocFacingLocBJ(12,'h026',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_Venom_Dust_Func004Func001Func001Func001Func001Func002002)
endif
endif
endif
endif
endif
endfunction
function Trig_double_attack_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='H00U')
endfunction
function Trig_double_attack_Func003Func001C takes nothing returns boolean
return(udg_integer06==1)
endfunction
function Trig_double_attack_Func003C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A028',GetAttacker())==1)
endfunction
function Trig_double_attack_Actions takes nothing returns nothing
set udg_integer06=GetRandomInt(1,2)
if(Trig_double_attack_Func003C())then
if(Trig_double_attack_Func003Func001C())then
call TriggerSleepAction(.02)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),400.)
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call AddSpecialEffectTargetUnitBJ("chest",GetSpellTargetUnit(),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call TriggerSleepAction(.5)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),10.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endif
endif
endfunction
function Trig_asura_strike_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03V')
endfunction
function Trig_asura_strike_unit_Actions takes nothing returns nothing
set udg_unit23=GetSpellAbilityUnit()
set udg_unit24=GetSpellTargetUnit()
set udg_location09=PolarProjectionBJ(GetUnitLoc(udg_unit01),-15.,GetUnitFacing(udg_unit02))
call SetUnitFacingToFaceUnitTimed(udg_unit23,udg_unit24,0)
call SetUnitFacingToFaceUnitTimed(udg_unit24,udg_unit23,0)
call TriggerSleepAction(.05)
call SetUnitTimeScalePercent(udg_unit23,60.)
call SetUnitAnimationWithRarity(udg_unit23,"attack",RARITY_FREQUENT)
set udg_location10=PolarProjectionBJ(GetUnitLoc(udg_unit24),150.,(GetUnitFacing(udg_unit23)+GetRandomReal(-80.,80.)))
call TriggerSleepAction(.1)
call PlaySoundOnUnitBJ(udg_sound20,85.,udg_unit24)
call SetUnitAnimation(udg_unit24,"death")
call SetUnitPositionLocFacingLocBJ(udg_unit23,udg_location10,GetUnitLoc(udg_unit24))
call SetUnitPositionLocFacingLocBJ(bj_lastCreatedUnit,udg_location10,GetUnitLoc(udg_unit24))
call UnitDamageTargetBJ(udg_unit23,udg_unit24,(I2R(R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit23)))*10.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEMOLITION)
call CreateTextTagUnitBJ(I2S((R2I(I2R(R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit23))))*10)),udg_unit24,0,15.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call SetUnitManaBJ(udg_unit23,0)
call ResetUnitAnimation(udg_unit23)
call CreateNUnitsAtLocFacingLocBJ(1,'h01W',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),GetUnitLoc(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(.2)
call RemoveLocation(udg_location09)
call SetUnitTimeScalePercent(udg_unit23,'d')
set udg_unit23=null
set udg_unit24=null
endfunction
function Trig_asura_strike_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02B')
endfunction
function Trig_asura_strike_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound21)
set udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
set udg_location02=PolarProjectionBJ(GetUnitLoc(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),-15.,GetUnitFacing(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
call SetUnitFacingToFaceUnitTimed(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0)
call SetUnitFacingToFaceUnitTimed(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0)
call SetUnitPathing(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
call SetUnitPathing(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
call AddSpecialEffectTargetUnitBJ("origin",udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
set udg_effects03[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call TriggerSleepAction(.05)
call DestroyEffect(udg_effects03[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call AddSpecialEffectTargetUnitBJ("weapon",udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
set udg_effects02[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call SetUnitTimeScalePercent(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],60.)
call SetUnitAnimationWithRarity(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"attack",RARITY_FREQUENT)
set udg_location03=PolarProjectionBJ(GetUnitLoc(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),150.,(GetUnitFacing(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])+GetRandomReal(-80.,80.)))
call TriggerSleepAction(.1)
call CreateTextTagUnitBJ("Asura Strike !!",GetSpellAbilityUnit(),.0,15.,'d',.0,.0,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call SetUnitAnimation(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"death")
call PlaySoundOnUnitBJ(udg_sound20,'d',udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPositionLocFacingLocBJ(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_location03,GetUnitLoc(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
call UnitDamageTargetBJ(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],(I2R(R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])))*(.09*I2R(GetHeroStatBJ(0,udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEMOLITION)
call DestroyEffect(udg_effects02[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPathing(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],true)
call CreateTextTagUnitBJ(I2S((R2I(I2R(R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))))*R2I((.09*I2R(GetHeroStatBJ(0,udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)))))),udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,15.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call SetUnitManaBJ(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0)
call ResetUnitAnimation(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateNUnitsAtLocFacingLocBJ(1,'h01W',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(.2)
call SetUnitTimeScalePercent(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'d')
call SetUnitPathing(udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],true)
call SetUnitPathing(udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],true)
call DestroyEffect(udg_effects03[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call DestroyEffect(udg_effects02[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call RemoveLocation(udg_location02)
set udg_units18[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units19[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_body_relo_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02L')
endfunction
function Trig_body_relo_Actions takes nothing returns nothing
set udg_unit05=GetSpellAbilityUnit()
set udg_location05=GetSpellTargetLoc()
call SetUnitTimeScalePercent(udg_unit05,50.)
call SetUnitAnimationWithRarity(udg_unit05,"spell",RARITY_RARE)
call EnableTrigger(udg_trigger93)
call TriggerSleepAction(.6)
call DisableTrigger(udg_trigger93)
call SetUnitTimeScalePercent(udg_unit05,'d')
endfunction
function Trig_bodyrelo_move_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_unit05,PolarProjectionBJ(GetUnitLoc(udg_unit05),25.,GetUnitFacing(udg_unit05)))
call CreateNUnitsAtLocFacingLocBJ(1,'h01X',GetOwningPlayer(udg_unit05),GetUnitLoc(udg_unit05),GetUnitLoc(udg_unit05))
call UnitApplyTimedLifeBJ(.01,'BTLF',bj_lastCreatedUnit)
endfunction
function Trig_Finger_Offensive_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02M')
endfunction
function Trig_Finger_Offensive_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,'h01Z',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()),50.,GetUnitFacing(GetSpellTargetUnit())),GetUnitLoc(GetSpellTargetUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call CreateTextTagUnitBJ("Finger Offensive !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),500.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.05)
call CreateNUnitsAtLocFacingLocBJ(1,'h020',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()),50.,GetUnitFacing(GetSpellAbilityUnit())),GetUnitLoc(GetSpellAbilityUnit()))
set udg_unit08=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_unit08,400.)
call UnitAddAbility(udg_unit08,'A02N')
call SetUnitAbilityLevelSwapped('A02N',udg_unit08,GetUnitAbilityLevelSwapped('A02M',GetSpellAbilityUnit()))
call IssueTargetOrderById(udg_unit08,851983,GetSpellTargetUnit())
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call UnitDamageTargetBJ(udg_unit08,GetSpellTargetUnit(),400.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_unit08)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ResetUnitAnimation(GetSpellAbilityUnit())
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_Finger_Offensive_unit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03W')
endfunction
function Trig_Finger_Offensive_unit_Actions takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,'h01Z',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()),50.,GetUnitFacing(GetSpellTargetUnit())),GetUnitLoc(GetSpellTargetUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call UnitApplyTimedLifeBJ(.02,'BTLF',bj_lastCreatedUnit)
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call CreateTextTagUnitBJ("Finger Offensive !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),500.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.05)
call CreateNUnitsAtLocFacingLocBJ(1,'h020',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellAbilityUnit()),50.,GetUnitFacing(GetSpellAbilityUnit())),GetUnitLoc(GetSpellAbilityUnit()))
set udg_unit08=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_unit08,400.)
call UnitAddAbility(udg_unit08,'A02N')
call SetUnitAbilityLevelSwapped('A02N',udg_unit08,GetUnitAbilityLevelSwapped('A02M',GetSpellAbilityUnit()))
call IssueTargetOrderById(udg_unit08,851983,GetSpellTargetUnit())
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call UnitDamageTargetBJ(udg_unit08,GetSpellTargetUnit(),400.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_unit08)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ResetUnitAnimation(GetSpellAbilityUnit())
call SetUnitTimeScalePercent(GetSpellAbilityUnit(),'d')
call DestroyEffect(bj_lastCreatedEffect)
set udg_unit08=null
endfunction
function Trig_Triple_Attack_Func003C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='H01V')or(GetUnitTypeId(GetAttacker())=='H02A')or(GetUnitTypeId(GetAttacker())=='H029')
endfunction
function Trig_Triple_Attack_Conditions takes nothing returns boolean
return(Trig_Triple_Attack_Func003C())and(GetTriggerUnit()!=udg_unit33)
endfunction
function Trig_Triple_Attack_Func002Func009C takes nothing returns boolean
return(udg_integer11==1)
endfunction
function Trig_Triple_Attack_Func002C takes nothing returns boolean
return(udg_integer10==1)
endfunction
function Trig_Triple_Attack_Actions takes nothing returns nothing
set udg_integer10=GetRandomInt(1,4)
if(Trig_Triple_Attack_Func002C())then
set udg_integer11=GetRandomInt(1,3)
call SetUnitTimeScalePercent(GetAttacker(),250.)
call CreateTextTagUnitBJ("Triple Attack !!",GetAttacker(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.3)
call SetUnitAnimation(GetAttacker(),"attack")
call CreateNUnitsAtLocFacingLocBJ(1,'h021',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.05,'BTLF',bj_lastCreatedUnit)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),(I2R(GetHeroStatBJ(1,GetAttacker(),false))*3.),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(GetAttacker(),100.)
call SetUnitTimeScalePercent(GetAttacker(),100.)
if(Trig_Triple_Attack_Func002Func009C())then
call SetUnitTimeScalePercent(GetAttacker(),50.)
call CreateTextTagUnitBJ("Quarduple Attack !!",GetAttacker(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.3)
call PlaySoundOnUnitBJ(udg_sound08,'d',GetAttacker())
call SetUnitAnimation(GetAttacker(),"attack")
call CreateNUnitsAtLocFacingLocBJ(1,'h022',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetAttacker()))
call UnitApplyTimedLifeBJ(.05,'BTLF',bj_lastCreatedUnit)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),(I2R(GetHeroStatBJ(1,GetAttacker(),false))*4.),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitAddAbility(GetAttacker(),'A02P')
call TriggerSleepAction(1.)
call UnitRemoveAbility(GetAttacker(),'A02P')
call SetUnitTimeScalePercent(GetAttacker(),100.)
endif
endif
endfunction
function Trig_Double_Attack_Func003C takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='H00U')
endfunction
function Trig_Double_Attack_Conditions takes nothing returns boolean
return(Trig_Double_Attack_Func003C())
endfunction
function Trig_Double_Attack_Func002C takes nothing returns boolean
return(udg_integer12==1)
endfunction
function Trig_Double_Attack_Actions takes nothing returns nothing
set udg_integer12=GetRandomInt(1,3)
if(Trig_Double_Attack_Func002C())then
call SetUnitTimeScalePercent(GetAttacker(),250.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.05)
call SetUnitAnimation(GetAttacker(),"attack")
call AddSpecialEffectTargetUnitBJ("origin ",GetTriggerUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call UnitApplyTimedLifeBJ(.05,'BTLF',bj_lastCreatedUnit)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),(I2R(GetHeroStatBJ(0,GetAttacker(),false))*4.),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(GetAttacker(),100.)
call SetUnitTimeScalePercent(GetAttacker(),100.)
endif
endfunction
function Trig_Way_of_Dragonm_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02P')
endfunction
function Trig_Way_of_Dragonm_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Way of The Dragon !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endfunction
function Trig_hiding_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A014')
endfunction
function Trig_hiding_Actions takes nothing returns nothing
set udg_unit10=GetSpellAbilityUnit()
call SetUnitVertexColorBJ(udg_unit10,'d','d','d',.0)
call TriggerSleepAction(1.)
call SetUnitVertexColorBJ(udg_unit10,'d','d','d',100.)
call TriggerSleepAction(10.)
call SetUnitVertexColorBJ(udg_unit10,'d','d','d',.0)
endfunction
function Trig_Poison_React_Conditions takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00T'))
endfunction
function Trig_Poison_React_Func001001 takes nothing returns boolean
return(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_Poison_React_Func002Func001Func001Func001Func001Func002C takes nothing returns boolean
return(udg_integer13==1)
endfunction
function Trig_Poison_React_Func002Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02U',GetTriggerUnit())==5)
endfunction
function Trig_Poison_React_Func002Func001Func001Func001Func003C takes nothing returns boolean
return(udg_integer13==1)
endfunction
function Trig_Poison_React_Func002Func001Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02U',GetTriggerUnit())==4)
endfunction
function Trig_Poison_React_Func002Func001Func001Func003C takes nothing returns boolean
return(udg_integer13==1)
endfunction
function Trig_Poison_React_Func002Func001Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02U',GetTriggerUnit())==3)
endfunction
function Trig_Poison_React_Func002Func001Func003C takes nothing returns boolean
return(udg_integer13==1)
endfunction
function Trig_Poison_React_Func002Func001C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02U',GetTriggerUnit())==2)
endfunction
function Trig_Poison_React_Func002Func003C takes nothing returns boolean
return(udg_integer13==1)
endfunction
function Trig_Poison_React_Func002C takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A02U',GetTriggerUnit())==1)
endfunction
function Trig_Poison_React_Actions takes nothing returns nothing
if(Trig_Poison_React_Func001001())then
endif
if(Trig_Poison_React_Func002C())then
set udg_integer13=GetRandomInt(1,4)
if(Trig_Poison_React_Func002Func003C())then
call CreateTextTagUnitBJ("Poison React !!",GetTriggerUnit(),.0,12.,50.,100.,50.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
call CreateNUnitsAtLocFacingLocBJ(1,'h027',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetAttacker())
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(2.)
call UnitDamageTargetBJ(GetTriggerUnit(),GetAttacker(),20.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call PlaySoundOnUnitBJ(udg_sound09,'d',GetAttacker())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
else
if(Trig_Poison_React_Func002Func001C())then
set udg_integer13=GetRandomInt(1,4)
if(Trig_Poison_React_Func002Func001Func003C())then
call CreateTextTagUnitBJ("Poison React !!",GetTriggerUnit(),.0,12.,50.,100.,50.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
call CreateNUnitsAtLocFacingLocBJ(1,'h027',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetAttacker())
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(2.)
call UnitDamageTargetBJ(GetTriggerUnit(),GetAttacker(),40.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call PlaySoundOnUnitBJ(udg_sound09,'d',GetAttacker())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
else
if(Trig_Poison_React_Func002Func001Func001C())then
set udg_integer13=GetRandomInt(1,4)
if(Trig_Poison_React_Func002Func001Func001Func003C())then
call CreateTextTagUnitBJ("Poison React !!",GetTriggerUnit(),.0,12.,50.,100.,50.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
call CreateNUnitsAtLocFacingLocBJ(1,'h027',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetAttacker())
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(2.)
call UnitDamageTargetBJ(GetTriggerUnit(),GetAttacker(),60.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call PlaySoundOnUnitBJ(udg_sound09,'d',GetAttacker())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
else
if(Trig_Poison_React_Func002Func001Func001Func001C())then
set udg_integer13=GetRandomInt(1,4)
if(Trig_Poison_React_Func002Func001Func001Func001Func003C())then
call CreateTextTagUnitBJ("Poison React !!",GetTriggerUnit(),.0,12.,50.,100.,50.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
call CreateNUnitsAtLocFacingLocBJ(1,'h027',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetAttacker())
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(2.)
call UnitDamageTargetBJ(GetTriggerUnit(),GetAttacker(),80.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call PlaySoundOnUnitBJ(udg_sound09,'d',GetAttacker())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
else
if(Trig_Poison_React_Func002Func001Func001Func001Func001C())then
set udg_integer13=GetRandomInt(1,3)
if(Trig_Poison_React_Func002Func001Func001Func001Func001Func002C())then
call CreateTextTagUnitBJ("Poison React !!",GetTriggerUnit(),.0,12.,50.,100.,50.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
call CreateNUnitsAtLocFacingLocBJ(1,'h027',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetAttacker())
call UnitApplyTimedLifeBJ(2.,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(2.)
call UnitDamageTargetBJ(GetTriggerUnit(),GetAttacker(),100.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call PlaySoundOnUnitBJ(udg_sound09,'d',GetAttacker())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
endif
endif
endif
endif
endfunction
function Trig_Intimidation_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02W')
endfunction
function Trig_Intimidation_Actions takes nothing returns nothing
set udg_unit11=GetSpellAbilityUnit()
set udg_unit12=GetSpellTargetUnit()
call SetUnitAnimation(udg_unit11,"attack")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit11,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effect06=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",udg_unit12,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effect07=bj_lastCreatedEffect
call TriggerSleepAction(.3)
call SetUnitPositionLoc(udg_unit12,GetRandomLocInRect(udg_rect03))
call TriggerSleepAction(.2)
call SetUnitPositionLoc(udg_unit11,PolarProjectionBJ(GetUnitLoc(udg_unit12),-75.,0))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit12),GetUnitLoc(udg_unit12),0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit11),GetUnitLoc(udg_unit11),0)
call DestroyEffect(udg_effect06)
call DestroyEffect(udg_effect07)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit11,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
set udg_effect08=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",udg_unit12,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
set udg_effect09=bj_lastCreatedEffect
call TriggerSleepAction(2.)
call DestroyEffect(udg_effect08)
call DestroyEffect(udg_effect09)
endfunction
function Trig_stripweapon_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A013')
endfunction
function Trig_stripweapon_Actions takes nothing returns nothing
set udg_unit13=GetSpellTargetUnit()
call CreateTextTagUnitBJ("Strip Weapon !!",GetSpellAbilityUnit(),.0,12.,100.,60.,60.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endfunction
function Trig_striparmor_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A012')
endfunction
function Trig_striparmor_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Strip Armor !!",GetSpellAbilityUnit(),.0,12.,100.,60.,60.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endfunction
function Trig_summon_flora_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A024')
endfunction
function Trig_summon_flora_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Summon Flora !!",GetSpellAbilityUnit(),.0,12.,30.,100.,30.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endfunction
function Trig_acid_terror_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A025')
endfunction
function Trig_acid_terror_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Acid Terror !!",GetSpellAbilityUnit(),.0,12.,30.,100.,30.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endfunction
function Trig_chemical_protection_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02J')
endfunction
function Trig_chemical_protection_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Chemical Protection !!",GetSpellAbilityUnit(),.0,12.,30.,100.,30.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
endfunction
function Trig_fire_trap_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02X')
endfunction
function Trig_fire_trap_Func006A takes nothing returns nothing
call UnitApplyTimedLifeBJ(30.,'BTLF',GetEnumUnit())
call SetUnitTimeScalePercent(GetEnumUnit(),400.)
call IssueImmediateOrderById(GetEnumUnit(),852177)
endfunction
function Trig_fire_trap_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Fire Trap !!",GetSpellAbilityUnit(),.0,12.,100.,50.,50.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,1.)
call MoveRectToLoc(udg_rect11,GetSpellTargetLoc())
call CreateNUnitsAtLocFacingLocBJ(12,'h01G',GetOwningPlayer(GetSpellAbilityUnit()),GetRandomLocInRect(udg_rect11),GetUnitLoc(GetSpellAbilityUnit()))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_fire_trap_Func006A)
endfunction
function Trig_GTB_iimpale_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A032')
endfunction
function Trig_GTB_iimpale_Func003A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A034')
call IssuePointOrderByIdLoc(GetEnumUnit(),852555,GetRandomLocInRect(udg_rect12))
call UnitApplyTimedLifeBJ(1.,'BTLF',GetEnumUnit())
endfunction
function Trig_GTB_iimpale_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rect12,GetUnitLoc(GetSpellAbilityUnit()))
call CreateNUnitsAtLoc(12,'h02F',Player(15),OffsetLocation(GetUnitLoc(GetSpellAbilityUnit()),15.,0),Rad2Deg(0))
call ForGroupBJ(GetLastCreatedGroup(),function Trig_GTB_iimpale_Func003A)
endfunction
function Trig_Bowling_Bash_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A006')
endfunction
function Trig_Bowling_Bash_Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_Bowling_Bash_Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit03)))
endfunction
function Trig_Bowling_Bash_Func010001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Bowling_Bash_Func010001003001(),Trig_Bowling_Bash_Func010001003002())
endfunction
function Trig_Bowling_Bash_Func010A takes nothing returns nothing
set udg_unit04=GetEnumUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingLocBJ(udg_unit04,PolarProjectionBJ(GetUnitLoc(udg_unit04),-40.,GetUnitFacing(udg_unit04)),GetUnitLoc(udg_unit03))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Bowling_Bash_Actions takes nothing returns nothing
set udg_unit03=GetSpellAbilityUnit()
call CreateTextTagUnitBJ("Bowling Bash !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.01)
call CreateNUnitsAtLocFacingLocBJ(1,'h003',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()))
set udg_units01[97]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.02,'BTLF',udg_units01[97])
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.,GetUnitLoc(udg_unit03),Condition(function Trig_Bowling_Bash_Func010001003)),function Trig_Bowling_Bash_Func010A)
set bj_wantDestroyGroup=true
call TriggerSleepAction(1.)
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_Emergency_Calls_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A04T')
endfunction
function Trig_Emergency_Calls_Func002Func001Func001001002001 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),Player(6)))
endfunction
function Trig_Emergency_Calls_Func002Func001Func001001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emergency_Calls_Func002Func001Func001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emergency_Calls_Func002Func001Func001001002001(),Trig_Emergency_Calls_Func002Func001Func001001002002())
endfunction
function Trig_Emergency_Calls_Func002Func001Func001A takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetEnumPlayer()),10.,"|cffffcc00Your boss using Emergency Calls!|r")
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects11[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects11[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPositionLoc(GetEnumUnit(),GetUnitLoc(GetSpellAbilityUnit()))
call IssueImmediateOrderById(GetEnumUnit(),851993)
call TriggerSleepAction(.5)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetSpellAbilityUnit()),0)
endfunction
function Trig_Emergency_Calls_Func002Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(6))
endfunction
function Trig_Emergency_Calls_Func002Func002001002001 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),Player(0)))
endfunction
function Trig_Emergency_Calls_Func002Func002001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emergency_Calls_Func002Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emergency_Calls_Func002Func002001002001(),Trig_Emergency_Calls_Func002Func002001002002())
endfunction
function Trig_Emergency_Calls_Func002Func002A takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetEnumPlayer()),10.,"|cffffcc00Your boss using Emergency Calls!|r")
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects11[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects11[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPositionLoc(GetEnumUnit(),GetUnitLoc(GetSpellAbilityUnit()))
call IssueImmediateOrderById(GetEnumUnit(),851993)
call TriggerSleepAction(.5)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetSpellAbilityUnit()),0)
endfunction
function Trig_Emergency_Calls_Func002C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(0))
endfunction
function Trig_Emergency_Calls_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound19,'d',GetSpellAbilityUnit())
if(Trig_Emergency_Calls_Func002C())then
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Emergency_Calls_Func002Func002001002)),function Trig_Emergency_Calls_Func002Func002A)
call DestroyGroup(bj_lastCreatedGroup)
else
if(Trig_Emergency_Calls_Func002Func001C())then
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Emergency_Calls_Func002Func001Func001001002)),function Trig_Emergency_Calls_Func002Func001Func001A)
call DestroyGroup(bj_lastCreatedGroup)
endif
endif
endfunction
function Trig_holy_cross_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A00C')
endfunction
function Trig_holy_cross_Actions takes nothing returns nothing
set udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units49[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
set udg_locations16[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units49[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Holy Cross !!",udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call SetUnitTimeScalePercent(udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],300.)
set udg_integers40[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=1000
call AddSpecialEffectTargetUnitBJ("weapon",udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"Abilities\\Weapons\\FaerieDragonMissile\\FaerieDragonMissile.mdl")
set udg_effects16[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call PlaySoundOnUnitBJ(udg_sound28,100.,udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitAnimation(GetSpellAbilityUnit(),"attack")
call UnitDamageTargetBJ(udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units49[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],1000.,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers40[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_units49[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
call CreateNUnitsAtLocFacingLocBJ(1,'h007',GetOwningPlayer(udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations16[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],GetUnitLoc(udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
set udg_units08[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_units08[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],500.)
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units08[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.2)
set udg_units08[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'d')
call DestroyEffect(udg_effects16[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.2)
set udg_units48[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units49[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
call RemoveLocation(udg_locations16[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
endfunction
function Trig_Storm_Gust_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='AHbz')
endfunction
function Trig_Storm_Gust_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Storm Gust!",udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,12.,25.,25.,'d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
set udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],bj_UNIT_FACING)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,'d','d','d',85.)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,500.)
set udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(5.,'BTLF',udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPathing(udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
call TriggerSleepAction(1.)
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],bj_UNIT_FACING)
set udg_units44[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_units44[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],400.)
call UnitApplyTimedLifeBJ(15.,'BTLF',udg_units44[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.04)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00P',GetOwningPlayer(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],bj_UNIT_FACING)
set udg_units45[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(8.,'BTLF',udg_units45[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPathing(udg_units45[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
set udg_units45[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=500
set udg_integers38[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call TriggerExecute(udg_trigger113)
set udg_units44[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_SG_Effect1_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_SG_Effect1_Func003001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_SG_Effect1_Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))
endfunction
function Trig_SG_Effect1_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SG_Effect1_Func003001003002001(),Trig_SG_Effect1_Func003001003002002())
endfunction
function Trig_SG_Effect1_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SG_Effect1_Func003001003001(),Trig_SG_Effect1_Func003001003002())
endfunction
function Trig_SG_Effect1_Func003A takes nothing returns nothing
call SetSoundPositionLocBJ(udg_sound24,udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],0)
call UnitDamageTargetBJ(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetEnumUnit(),I2R(udg_integers37[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers37[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_SG_Effect1_Func006C takes nothing returns boolean
return(udg_integers38[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=10)
endfunction
function Trig_SG_Effect1_Actions takes nothing returns nothing
set udg_integers38[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers38[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.,udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],Condition(function Trig_SG_Effect1_Func003001003)),function Trig_SG_Effect1_Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.8)
if(Trig_SG_Effect1_Func006C())then
call TriggerExecute(GetTriggeringTrigger())
else
call RemoveLocation(udg_locations14[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_units42[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
endif
endfunction
function Trig_GC_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A03F')
endfunction
function Trig_GC_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Grand Cross!",udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,11.,25.,25.,'d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
set udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_locations15[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateNUnitsAtLoc(1,'h006',GetOwningPlayer(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations15[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],bj_UNIT_FACING)
set udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call SetUnitPathing(udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
call SetUnitPositionLocFacingBJ(udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_locations15[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],bj_UNIT_FACING)
call SetUnitTimeScalePercent(udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],250.)
call UnitApplyTimedLifeBJ(4.,'BTLF',udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitPathing(udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
set udg_integers37[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=500
set udg_integers39[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call TriggerExecute(udg_trigger115)
call TriggerSleepAction(.8)
call PlaySoundOnUnitBJ(udg_sound25,'d',udg_units42[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_units43[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_GC_Eff_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_GC_Eff_Func003001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_GC_Eff_Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))
endfunction
function Trig_GC_Eff_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_GC_Eff_Func003001003002001(),Trig_GC_Eff_Func003001003002002())
endfunction
function Trig_GC_Eff_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_GC_Eff_Func003001003001(),Trig_GC_Eff_Func003001003002())
endfunction
function Trig_GC_Eff_Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units42[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetEnumUnit(),I2R(udg_integers37[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),ATTACK_TYPE_HERO,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers37[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_GC_Eff_Func006C takes nothing returns boolean
return(udg_integers39[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=7)
endfunction
function Trig_GC_Eff_Actions takes nothing returns nothing
set udg_integers39[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers39[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.,udg_locations15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],Condition(function Trig_GC_Eff_Func003001003)),function Trig_GC_Eff_Func003A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.25)
if(Trig_GC_Eff_Func006C())then
call TriggerExecute(GetTriggeringTrigger())
else
call RemoveLocation(udg_locations15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_units42[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
endif
endfunction
function Trig_Quicken_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A005')
endfunction
function Trig_Quicken_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("TwohandQuicken",GetSpellAbilityUnit(),.0,12.,75.,75.,75.,.0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
set udg_units20[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call TriggerExecute(udg_trigger118)
call TriggerSleepAction(30.)
set udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=1500
call SetUnitVertexColorBJ(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'d',100.,100.,.0)
endfunction
function Trig_AdrenalineRush_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01X')
endfunction
function Trig_AdrenalineRush_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Adrenaline Rush!!",GetSpellAbilityUnit(),.0,12.,'d',75.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
set udg_units20[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
call PlaySoundOnUnitBJ(udg_sound27,'d',udg_units20[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitVertexColorBJ(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'d',45.,45.,25.)
call TriggerExecute(udg_trigger119)
call TriggerSleepAction(30.)
set udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=1500
call SetUnitVertexColorBJ(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'d',100.,100.,.0)
endfunction
function Trig_QuickenEffect_Func012Func005C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endfunction
function Trig_QuickenEffect_Func012C takes nothing returns boolean
return(udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=1500)
endfunction
function Trig_QuickenEffect_Actions takes nothing returns nothing
set udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
set udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetUnitLoc(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'h00L',GetOwningPlayer(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitFacing(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,80.,80.,80.,75.)
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],800.)
call SetUnitPositionLocFacingBJ(udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitFacing(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
call SetUnitPathing(udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],false)
call UnitApplyTimedLifeBJ(.55,'BTLF',udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call TriggerSleepAction(.02)
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
if(Trig_QuickenEffect_Func012C())then
call TriggerExecute(GetTriggeringTrigger())
if(Trig_QuickenEffect_Func012Func005C())then
set udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1500
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call RemoveLocation(udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
else
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call RemoveLocation(udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_integers44[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
endfunction
function Trig_AdrenalineEffect_Func012Func005C takes nothing returns boolean
return(IsUnitDeadBJ(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endfunction
function Trig_AdrenalineEffect_Func012C takes nothing returns boolean
return(udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<=1500)
endfunction
function Trig_AdrenalineEffect_Actions takes nothing returns nothing
set udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
set udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetUnitLoc(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'h00J',GetOwningPlayer(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitFacing(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,'d',20.,20.,80.)
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],800.)
call SetUnitPositionLocFacingBJ(udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitFacing(udg_units20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
call SetUnitPathing(udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],false)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call TriggerSleepAction(.02)
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
if(Trig_AdrenalineEffect_Func012C())then
call TriggerExecute(GetTriggeringTrigger())
if(Trig_AdrenalineEffect_Func012Func005C())then
set udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1500
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call RemoveLocation(udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
else
set udg_units21[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call RemoveLocation(udg_locations01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_integers12[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
endfunction
function Trig_Jupitel_Thunder_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A02V')
endfunction
function Trig_Jupitel_Thunder_Actions takes nothing returns nothing
set udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],bj_UNIT_FACING)
set udg_units24[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call SetUnitPathing(udg_units24[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],false)
call IssueTargetOrderById(udg_units24[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],851983,udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units24[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=500
call TriggerSleepAction((DistanceBetweenPoints(GetUnitLoc(udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),GetUnitLoc(udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))/900.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=PolarProjectionBJ(GetUnitLoc(udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),25.,GetUnitFacing(udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
call UnitDamageTargetBJ(udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],I2R(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call SetUnitPositionLoc(udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ(I2S(udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,10.,75.,75.,'d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.85)
call AddSpecialEffectTargetUnitBJ("origin",udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects12[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedEffect
call TriggerSleepAction(.04)
call DestroyEffect(udg_effects12[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_units24[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units22[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units23[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_integers13[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
endfunction
function Trig_hammerfall_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01V')
endfunction
function Trig_hammerfall_Func023Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_hammerfall_Func023Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])))
endfunction
function Trig_hammerfall_Func023Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hammerfall_Func023Func001001003001(),Trig_hammerfall_Func023Func001001003002())
endfunction
function Trig_hammerfall_Func023Func001A takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound26,90.,GetEnumUnit())
set udg_locations05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'h00K',GetOwningPlayer(udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_locations05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call IssueTargetOrderById(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],852095,GetEnumUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.5)
endfunction
function Trig_hammerfall_Func023C takes nothing returns boolean
return(udg_integers14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]<=70)
endfunction
function Trig_hammerfall_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("Hammer Fall !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
set udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetLoc()
call SetUnitAnimation(udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"attack")
call CreateNUnitsAtLocFacingLocBJ(1,'h019',GetOwningPlayer(udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],300.)
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call SetUnitTimeScalePercent(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],50.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],200.,1800.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],1600.,1800.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],1400.,1600.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],1200.,1400.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],800.,1200.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],400.,800.)
call SetUnitFlyHeight(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],100.,400.)
set udg_integers14[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetRandomInt(1,'d')
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
call TriggerSleepAction(.5)
call TerrainDeformationRippleBJ(2.,false,udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],100.,500.,64,.5,400.)
if(Trig_hammerfall_Func023C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.,udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],Condition(function Trig_hammerfall_Func023Func001001003)),function Trig_hammerfall_Func023Func001A)
call TriggerSleepAction(.5)
set udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
call DestroyGroup(bj_lastCreatedGroup)
call RemoveLocation(udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call RemoveLocation(udg_locations05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
else
set udg_units05[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
call RemoveLocation(udg_locations04[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
endif
endfunction
function Trig_swt_Func001001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_swt_Func001001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetTriggerPlayer())
endfunction
function Trig_swt_Func001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_swt_Func001001002001(),Trig_swt_Func001001002002())
endfunction
function Trig_swt_Func001A takes nothing returns nothing
set udg_locations11[(1+GetPlayerId(GetTriggerPlayer()))]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00K',GetTriggerPlayer(),udg_locations11[(1+GetPlayerId(GetTriggerPlayer()))],bj_UNIT_FACING)
call IssueTargetOrderById(bj_lastCreatedUnit,852066,GetEnumUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
endfunction
function Trig_swt_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_swt_Func001001002)),function Trig_swt_Func001A)
call DestroyGroup(bj_lastCreatedGroup)
endfunction
function Trig_sonic_blow_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A00F')
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(11))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(10))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(9))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(8))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(7))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(6))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(5))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(4))
endfunction
function Trig_sonic_blow_Func012Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(3))
endfunction
function Trig_sonic_blow_Func012Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(2))
endfunction
function Trig_sonic_blow_Func012Func001C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(1))
endfunction
function Trig_sonic_blow_Func012C takes nothing returns boolean
return(GetOwningPlayer(GetSpellAbilityUnit())==Player(0))
endfunction
function Trig_sonic_blow_Func013001 takes nothing returns boolean
return(udg_integers15[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]>=9)
endfunction
function Trig_sonic_blow_Actions takes nothing returns nothing
set udg_integers15[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=0
set udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units27[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
call CreateTextTagUnitBJ("Sonic Blow!",udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,10.,'d','d','d',0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
call SetUnitTimeScalePercent(udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],300.)
call SetUnitMoveSpeed(udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0)
set udg_integers16[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=R2I(250.)
call PlaySoundOnUnitBJ(udg_sound22,'d',udg_units27[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.5)
if(Trig_sonic_blow_Func012C())then
set udg_integers28[1]=0
call PauseUnit(udg_units26[1],true)
call EnableTrigger(udg_trigger125)
else
if(Trig_sonic_blow_Func012Func001C())then
set udg_integers27[1]=0
call PauseUnit(udg_units26[2],true)
call EnableTrigger(udg_trigger126)
else
if(Trig_sonic_blow_Func012Func001Func001C())then
set udg_integers26[1]=0
call PauseUnit(udg_units26[3],true)
call EnableTrigger(udg_trigger127)
else
if(Trig_sonic_blow_Func012Func001Func001Func001C())then
set udg_integers25[1]=0
call PauseUnit(udg_units26[4],true)
call EnableTrigger(udg_trigger128)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001C())then
set udg_integers24[1]=0
call PauseUnit(udg_units26[5],true)
call EnableTrigger(udg_trigger129)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001C())then
set udg_integers23[1]=0
call PauseUnit(udg_units26[6],true)
call EnableTrigger(udg_trigger130)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001C())then
set udg_integers22[1]=0
call PauseUnit(udg_units26[7],true)
call EnableTrigger(udg_trigger132)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers21[1]=0
call PauseUnit(udg_units26[8],true)
call EnableTrigger(udg_trigger131)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers20[1]=0
call PauseUnit(udg_units26[9],true)
call EnableTrigger(udg_trigger134)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers19[1]=0
call PauseUnit(udg_units26[10],true)
call EnableTrigger(udg_trigger133)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers18[1]=0
call PauseUnit(udg_units26[11],true)
call EnableTrigger(udg_trigger135)
else
if(Trig_sonic_blow_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_integers17[1]=0
call PauseUnit(udg_units26[12],true)
call EnableTrigger(udg_trigger136)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
loop
exitwhen(Trig_sonic_blow_Func013001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,1))
endloop
call SetUnitMoveSpeed(udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],GetUnitDefaultMoveSpeed(udg_units26[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
endfunction
function Trig_Bash_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A004')
endfunction
function Trig_Bash_Actions takes nothing returns nothing
set udg_units28[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_units29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
call PlaySoundOnUnitBJ(udg_sound23,'d',udg_units29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Bash!",udg_units28[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],.0,12.,100.,100.,100.,.0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
set udg_integers29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=2000
call UnitDamageTargetBJ(udg_units28[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],I2R(udg_integers29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_units29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,15.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
set udg_units28[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units29[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_Blow_Func018C takes nothing returns boolean
return(udg_integers15[1]>=10)
endfunction
function Trig_Blow_Actions takes nothing returns nothing
set udg_integers15[1]=(udg_integers15[1]+1)
set udg_integers28[1]=(udg_integers28[1]+1)
set udg_locations06[1]=GetUnitLoc(udg_units26[1])
call SetUnitAnimation(udg_units26[1],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[1]),udg_locations06[1],GetUnitFacing(udg_units26[1]))
set udg_units30[udg_integers28[1]]=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_units30[udg_integers28[1]],'d','d','d',50.)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers28[1]])
call SetUnitPathing(udg_units30[udg_integers28[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers28[1]],udg_locations06[1])
call SetUnitTimeScalePercent(udg_units30[udg_integers28[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers28[1]],"attack")
call UnitDamageTargetBJ(udg_units26[1],udg_units27[1],I2R(udg_integers16[1]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[1]),udg_units27[1],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[1])
call PauseUnit(udg_units26[1],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers28[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[1],100.)
call SetUnitMoveSpeed(udg_units26[1],GetUnitDefaultMoveSpeed(udg_units26[1]))
set udg_units26[1]=null
set udg_units27[1]=null
endif
endfunction
function Trig_Blow_2_Func018C takes nothing returns boolean
return(udg_integers15[2]>=10)
endfunction
function Trig_Blow_2_Actions takes nothing returns nothing
set udg_integers15[2]=(udg_integers15[2]+1)
set udg_integers27[1]=(udg_integers27[1]+1)
set udg_locations06[2]=GetUnitLoc(udg_units26[2])
call SetUnitAnimation(udg_units26[2],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[2]),udg_locations06[2],GetUnitFacing(udg_units26[2]))
set udg_units30[udg_integers27[1]]=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_units30[udg_integers27[1]],'d','d','d',50.)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers27[1]])
call SetUnitPathing(udg_units30[udg_integers27[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers27[1]],udg_locations06[2])
call SetUnitTimeScalePercent(udg_units30[udg_integers27[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers27[1]],"attack")
call UnitDamageTargetBJ(udg_units26[2],udg_units27[2],I2R(udg_integers16[2]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[2]),udg_units27[2],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_2_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[2])
call PauseUnit(udg_units26[2],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers27[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[2],100.)
call SetUnitMoveSpeed(udg_units26[2],GetUnitDefaultMoveSpeed(udg_units26[2]))
set udg_units26[2]=null
set udg_units27[2]=null
endif
endfunction
function Trig_Blow_3_Func018C takes nothing returns boolean
return(udg_integers15[3]>=10)
endfunction
function Trig_Blow_3_Actions takes nothing returns nothing
set udg_integers15[3]=(udg_integers15[3]+1)
set udg_integers26[1]=(udg_integers26[1]+1)
set udg_locations06[3]=GetUnitLoc(udg_units26[3])
call SetUnitAnimation(udg_units26[3],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[3]),udg_locations06[3],GetUnitFacing(udg_units26[3]))
set udg_units30[udg_integers26[1]]=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_units30[udg_integers26[1]],'d','d','d',50.)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers26[1]])
call SetUnitPathing(udg_units30[udg_integers26[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers26[1]],udg_locations06[3])
call SetUnitTimeScalePercent(udg_units30[udg_integers26[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers26[1]],"attack")
call UnitDamageTargetBJ(udg_units26[3],udg_units27[3],I2R(udg_integers16[3]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[3]),udg_units27[3],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_3_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[3])
call PauseUnit(udg_units26[3],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers26[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[3],100.)
call SetUnitMoveSpeed(udg_units26[3],GetUnitDefaultMoveSpeed(udg_units26[3]))
set udg_units26[3]=null
set udg_units27[3]=null
endif
endfunction
function Trig_Blow_4_Func018C takes nothing returns boolean
return(udg_integers15[4]>=10)
endfunction
function Trig_Blow_4_Actions takes nothing returns nothing
set udg_integers15[4]=(udg_integers15[4]+1)
set udg_integers25[1]=(udg_integers25[1]+1)
set udg_locations06[4]=GetUnitLoc(udg_units26[4])
call SetUnitAnimation(udg_units26[4],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[4]),udg_locations06[4],GetUnitFacing(udg_units26[4]))
set udg_units30[udg_integers25[1]]=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_units30[udg_integers25[1]],'d','d','d',50.)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers25[1]])
call SetUnitPathing(udg_units30[udg_integers25[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers25[1]],udg_locations06[4])
call SetUnitTimeScalePercent(udg_units30[udg_integers25[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers25[1]],"attack")
call UnitDamageTargetBJ(udg_units26[4],udg_units27[4],I2R(udg_integers16[4]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[4]),udg_units27[4],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_4_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[4])
call PauseUnit(udg_units26[4],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers25[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[4],100.)
call SetUnitMoveSpeed(udg_units26[4],GetUnitDefaultMoveSpeed(udg_units26[4]))
set udg_units26[4]=null
set udg_units27[4]=null
endif
endfunction
function Trig_Blow_5_Func018C takes nothing returns boolean
return(udg_integers15[5]>=10)
endfunction
function Trig_Blow_5_Actions takes nothing returns nothing
set udg_integers15[5]=(udg_integers15[5]+1)
set udg_integers24[1]=(udg_integers24[1]+1)
set udg_locations06[5]=GetUnitLoc(udg_units26[5])
call SetUnitAnimation(udg_units26[5],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[5]),udg_locations06[5],GetUnitFacing(udg_units26[5]))
set udg_units30[udg_integers24[1]]=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_units30[udg_integers24[1]],'d','d','d',50.)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers24[1]])
call SetUnitPathing(udg_units30[udg_integers24[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers24[1]],udg_locations06[5])
call SetUnitTimeScalePercent(udg_units30[udg_integers24[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers24[1]],"attack")
call UnitDamageTargetBJ(udg_units26[5],udg_units27[5],I2R(udg_integers16[5]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[5]),udg_units27[5],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_5_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[5])
call PauseUnit(udg_units26[5],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers24[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[5],100.)
call SetUnitMoveSpeed(udg_units26[5],GetUnitDefaultMoveSpeed(udg_units26[5]))
set udg_units26[5]=null
set udg_units27[5]=null
endif
endfunction
function Trig_Blow_6_Func018C takes nothing returns boolean
return(udg_integers15[6]>=10)
endfunction
function Trig_Blow_6_Actions takes nothing returns nothing
set udg_integers15[6]=(udg_integers15[6]+1)
set udg_integers23[1]=(udg_integers23[1]+1)
set udg_locations06[6]=GetUnitLoc(udg_units26[6])
call SetUnitAnimation(udg_units26[6],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[6]),udg_locations06[6],GetUnitFacing(udg_units26[6]))
set udg_units30[udg_integers23[1]]=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_units30[udg_integers23[1]],'d','d','d',50.)
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers23[1]])
call SetUnitPathing(udg_units30[udg_integers23[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers23[1]],udg_locations06[6])
call SetUnitTimeScalePercent(udg_units30[udg_integers23[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers23[1]],"attack")
call UnitDamageTargetBJ(udg_units26[6],udg_units27[6],I2R(udg_integers16[6]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[6]),udg_units27[6],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_6_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[6])
call PauseUnit(udg_units26[6],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers23[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[6],100.)
call SetUnitMoveSpeed(udg_units26[6],GetUnitDefaultMoveSpeed(udg_units26[6]))
set udg_units26[6]=null
set udg_units27[6]=null
endif
endfunction
function Trig_Blow_8_Func018C takes nothing returns boolean
return(udg_integers15[8]>=10)
endfunction
function Trig_Blow_8_Actions takes nothing returns nothing
set udg_integers15[8]=(udg_integers15[8]+1)
set udg_integers21[1]=(udg_integers21[1]+1)
set udg_locations06[8]=GetUnitLoc(udg_units26[8])
call SetUnitAnimation(udg_units26[8],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[8]),udg_locations06[8],GetUnitFacing(udg_units26[8]))
set udg_units30[udg_integers21[1]]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers21[1]])
call SetUnitVertexColorBJ(udg_units30[udg_integers21[1]],'d','d','d',50.)
call SetUnitPathing(udg_units30[udg_integers21[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers21[1]],udg_locations06[8])
call SetUnitTimeScalePercent(udg_units30[udg_integers21[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers21[1]],"attack")
call UnitDamageTargetBJ(udg_units26[8],udg_units27[8],I2R(udg_integers16[8]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[8]),udg_units27[8],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_8_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[8])
call PauseUnit(udg_units26[8],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers21[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[8],100.)
call SetUnitMoveSpeed(udg_units26[8],GetUnitDefaultMoveSpeed(udg_units26[8]))
set udg_units26[8]=null
set udg_units27[8]=null
endif
endfunction
function Trig_Blow_7_Func018C takes nothing returns boolean
return(udg_integers15[7]>=10)
endfunction
function Trig_Blow_7_Actions takes nothing returns nothing
set udg_integers15[7]=(udg_integers15[7]+1)
set udg_integers22[1]=(udg_integers22[1]+1)
set udg_locations06[7]=GetUnitLoc(udg_units26[7])
call SetUnitAnimation(udg_units26[7],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[7]),udg_locations06[7],GetUnitFacing(udg_units26[7]))
set udg_units30[udg_integers22[1]]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers22[1]])
call SetUnitVertexColorBJ(udg_units30[udg_integers22[1]],'d','d','d',50.)
call SetUnitPathing(udg_units30[udg_integers22[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers22[1]],udg_locations06[7])
call SetUnitTimeScalePercent(udg_units30[udg_integers22[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers22[7]],"attack")
call UnitDamageTargetBJ(udg_units26[7],udg_units27[7],I2R(udg_integers16[7]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[7]),udg_units27[7],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_7_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[7])
call PauseUnit(udg_units26[7],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers22[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[7],100.)
call SetUnitMoveSpeed(udg_units26[7],GetUnitDefaultMoveSpeed(udg_units26[7]))
set udg_units26[7]=null
set udg_units27[7]=null
endif
endfunction
function Trig_Blow_10_Func018C takes nothing returns boolean
return(udg_integers15[10]>=10)
endfunction
function Trig_Blow_10_Actions takes nothing returns nothing
set udg_integers15[10]=(udg_integers15[10]+1)
set udg_integers19[1]=(udg_integers19[1]+1)
set udg_locations06[10]=GetUnitLoc(udg_units26[10])
call SetUnitAnimation(udg_units26[10],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[10]),udg_locations06[10],GetUnitFacing(udg_units26[10]))
set udg_units30[udg_integers19[1]]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers19[1]])
call SetUnitVertexColorBJ(udg_units30[udg_integers19[1]],'d','d','d',50.)
call SetUnitPathing(udg_units30[udg_integers19[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers19[1]],udg_locations06[10])
call SetUnitTimeScalePercent(udg_units30[udg_integers19[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers19[1]],"attack")
call UnitDamageTargetBJ(udg_units26[10],udg_units27[10],I2R(udg_integers16[10]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[10]),udg_units27[10],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_10_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[10])
call PauseUnit(udg_units26[10],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers19[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[10],100.)
call SetUnitMoveSpeed(udg_units26[10],GetUnitDefaultMoveSpeed(udg_units26[10]))
set udg_units26[10]=null
set udg_units27[10]=null
endif
endfunction
function Trig_Blow_9_Func018C takes nothing returns boolean
return(udg_integers15[9]>=10)
endfunction
function Trig_Blow_9_Actions takes nothing returns nothing
set udg_integers15[9]=(udg_integers15[9]+1)
set udg_integers20[1]=(udg_integers20[1]+1)
set udg_locations06[9]=GetUnitLoc(udg_units26[9])
call SetUnitAnimation(udg_units26[9],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[9]),udg_locations06[9],GetUnitFacing(udg_units26[9]))
set udg_units30[udg_integers20[1]]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers20[1]])
call SetUnitVertexColorBJ(udg_units30[udg_integers20[1]],'d','d','d',50.)
call SetUnitPathing(udg_units30[udg_integers20[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers20[1]],udg_locations06[9])
call SetUnitTimeScalePercent(udg_units30[udg_integers20[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers20[1]],"attack")
call UnitDamageTargetBJ(udg_units26[9],udg_units27[9],I2R(udg_integers16[9]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[9]),udg_units27[9],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_9_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[9])
call PauseUnit(udg_units26[9],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers20[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[9],100.)
call SetUnitMoveSpeed(udg_units26[9],GetUnitDefaultMoveSpeed(udg_units26[9]))
set udg_units26[9]=null
set udg_units27[9]=null
endif
endfunction
function Trig_Blow_11_Func018C takes nothing returns boolean
return(udg_integers15[11]>=10)
endfunction
function Trig_Blow_11_Actions takes nothing returns nothing
set udg_integers15[11]=(udg_integers15[11]+1)
set udg_integers18[1]=(udg_integers18[1]+1)
set udg_locations06[11]=GetUnitLoc(udg_units26[11])
call SetUnitAnimation(udg_units26[11],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[11]),udg_locations06[11],GetUnitFacing(udg_units26[11]))
set udg_units30[udg_integers18[1]]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers18[1]])
call SetUnitVertexColorBJ(udg_units30[udg_integers18[1]],'d','d','d',50.)
call SetUnitPathing(udg_units30[udg_integers18[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers18[1]],udg_locations06[11])
call SetUnitTimeScalePercent(udg_units30[udg_integers18[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers18[1]],"attack")
call UnitDamageTargetBJ(udg_units26[11],udg_units27[11],I2R(udg_integers16[11]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[11]),udg_units27[11],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_11_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[11])
call PauseUnit(udg_units26[11],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers18[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[11],100.)
call SetUnitMoveSpeed(udg_units26[11],GetUnitDefaultMoveSpeed(udg_units26[11]))
set udg_units26[11]=null
set udg_units27[11]=null
endif
endfunction
function Trig_Blow_12_Func018C takes nothing returns boolean
return(udg_integers15[12]>=10)
endfunction
function Trig_Blow_12_Actions takes nothing returns nothing
set udg_integers15[12]=(udg_integers15[12]+1)
set udg_integers17[1]=(udg_integers17[1]+1)
set udg_locations06[12]=GetUnitLoc(udg_units26[12])
call SetUnitAnimation(udg_units26[12],"attack")
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(udg_units26[12]),udg_locations06[12],GetUnitFacing(udg_units26[12]))
set udg_units30[udg_integers17[1]]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(.5,'BTLF',udg_units30[udg_integers17[1]])
call SetUnitVertexColorBJ(udg_units30[udg_integers17[1]],'d','d','d',50.)
call SetUnitPathing(udg_units30[udg_integers17[1]],false)
call SetUnitPositionLoc(udg_units30[udg_integers17[1]],udg_locations06[12])
call SetUnitTimeScalePercent(udg_units30[udg_integers17[1]],150.)
call SetUnitAnimation(udg_units30[udg_integers17[1]],"attack")
call UnitDamageTargetBJ(udg_units26[12],udg_units27[12],I2R(udg_integers16[12]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers16[12]),udg_units27[12],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
if(Trig_Blow_12_Func018C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations06[12])
call PauseUnit(udg_units26[12],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units30[udg_integers17[bj_forLoopAIndex]]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units26[12],100.)
call SetUnitMoveSpeed(udg_units26[12],GetUnitDefaultMoveSpeed(udg_units26[12]))
set udg_units26[12]=null
set udg_units27[12]=null
endif
endfunction
function Trig_LOVunit_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A042')
endfunction
function Trig_LOVunit_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetSpellAbilityUnit())=='h00E')
endfunction
function Trig_LOVunit_Actions takes nothing returns nothing
if(Trig_LOVunit_Func001C())then
set udg_unit27=GetSpellAbilityUnit()
set udg_location19=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'h01E',GetOwningPlayer(udg_unit27),udg_location19,GetUnitLoc(udg_unit27))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.)
call UnitAddAbility(bj_lastCreatedUnit,'A022')
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(10.,'BTLF',bj_lastCreatedUnit)
set udg_unit27=null
call RemoveLocation(udg_location19)
endif
endfunction
function Trig_JT_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A041')
endfunction
function Trig_JT_Actions takes nothing returns nothing
set udg_unit25=GetSpellAbilityUnit()
set udg_unit26=GetSpellTargetUnit()
set udg_location18=GetUnitLoc(udg_unit25)
call CreateNUnitsAtLocFacingLocBJ(1,'h02E',GetOwningPlayer(udg_unit25),udg_location18,udg_location18)
call UnitApplyTimedLifeBJ(.5,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,851983,udg_unit26)
call TriggerSleepAction(.4)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitFacingToFaceUnitTimed(udg_unit26,udg_unit25,0)
call SetUnitPositionLocFacingBJ(udg_unit26,PolarProjectionBJ(GetUnitLoc(udg_unit26),-75.,GetUnitFacing(udg_unit26)),GetUnitFacing(udg_unit26))
call TriggerSleepAction(.05)
call UnitDamageTargetBJ(udg_unit25,udg_unit26,400.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit25=null
set udg_unit26=null
call RemoveLocation(udg_location18)
endfunction
function Trig_echant_Poison_Copy_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A00G')
endfunction
function Trig_echant_Poison_Copy_Actions takes nothing returns nothing
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
call CreateTextTagUnitBJ("Enchant Poison !!",GetSpellAbilityUnit(),.0,12.,'d',96.,75.,5.)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,2.)
call UnitAddAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A00Q')
call TriggerSleepAction(19.)
call UnitRemoveAbility(udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],'A00Q')
set udg_units31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
endfunction
function Trig_Double_Strafe_Conditions takes nothing returns boolean
return(GetSpellAbilityId()=='A01B')
endfunction
function Trig_Double_Strafe_Actions takes nothing returns nothing
set udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellAbilityUnit()
set udg_locations07[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
set udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetSpellTargetUnit()
set udg_locations08[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=GetUnitLoc(udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call CreateTextTagUnitBJ("Double Strafe!",udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,12.,100.,100.,100.,0)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
set udg_integers31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=1250
call SetUnitTimeScalePercent(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],300.)
call SetUnitAnimation(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"attack")
call PlaySoundOnUnitBJ(udg_sound29,'d',udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_locations07[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],GetUnitFacing(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]))
set udg_units34[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=bj_lastCreatedUnit
call SetUnitAnimation(udg_units34[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"birth")
call IssueTargetOrderById(udg_units34[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],851983,udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call UnitApplyTimedLifeBJ(1.2,'BTLF',udg_units34[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call TriggerSleepAction(.25)
call SetUnitAnimation(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],"attack")
call UnitDamageTargetBJ(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],I2R(udg_integers31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
call TriggerSleepAction(.4)
call UnitDamageTargetBJ(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],I2R(udg_integers31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers31[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]),udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
call SetUnitTimeScalePercent(udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))],100.)
set udg_units32[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units34[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
set udg_units33[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))]=null
call RemoveLocation(udg_locations07[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
call RemoveLocation(udg_locations08[(1+GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit())))])
endfunction
function Trig_FalconBlitz_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[1])))
endfunction
function Trig_FalconBlitz_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz_Func006001003001(),Trig_FalconBlitz_Func006001003002())
endfunction
function Trig_FalconBlitz_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[1],GetEnumUnit(),I2R(udg_integers33[1]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[1]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz_Func007C takes nothing returns boolean
return(udg_integers32[1]==15)
endfunction
function Trig_FalconBlitz_Actions takes nothing returns nothing
set udg_integers32[1]=(udg_integers32[1]+1)
set udg_locations09[1]=GetUnitLoc(udg_units37[1])
set udg_locations10[1]=PolarProjectionBJ(GetUnitLoc(udg_units37[1]),35.,udg_reals01[1])
call SetUnitPositionLoc(udg_units37[1],udg_locations10[1])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[1],Condition(function Trig_FalconBlitz_Func006001003)),function Trig_FalconBlitz_Func006A)
if(Trig_FalconBlitz_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[1],GetUnitLoc(udg_units35[1]),GetUnitFacing(udg_units35[1]))
call SetUnitFacingToFaceUnitTimed(udg_units37[1],udg_units35[1],0)
set udg_units37[1]=null
set udg_units35[1]=null
set udg_units36[1]=null
call RemoveLocation(udg_locations09[1])
call RemoveLocation(udg_locations10[1])
endif
endfunction
function Trig_FalconBlitz2_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz2_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[2])))
endfunction
function Trig_FalconBlitz2_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz2_Func006001003001(),Trig_FalconBlitz2_Func006001003002())
endfunction
function Trig_FalconBlitz2_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[2],GetEnumUnit(),I2R(udg_integers33[2]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[2]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz2_Func007C takes nothing returns boolean
return(udg_integers32[2]==15)
endfunction
function Trig_FalconBlitz2_Actions takes nothing returns nothing
set udg_integers32[2]=(udg_integers32[2]+1)
set udg_locations09[2]=GetUnitLoc(udg_units37[2])
set udg_locations10[2]=PolarProjectionBJ(GetUnitLoc(udg_units37[2]),35.,udg_reals01[2])
call SetUnitPositionLoc(udg_units37[2],udg_locations10[2])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[2],Condition(function Trig_FalconBlitz2_Func006001003)),function Trig_FalconBlitz2_Func006A)
if(Trig_FalconBlitz2_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[2],GetUnitLoc(udg_units35[2]),GetUnitFacing(udg_units35[2]))
call SetUnitFacingToFaceUnitTimed(udg_units37[2],udg_units35[2],0)
set udg_units37[2]=null
set udg_units35[2]=null
set udg_units36[2]=null
call RemoveLocation(udg_locations09[2])
call RemoveLocation(udg_locations10[2])
endif
endfunction
function Trig_FalconBlitz3_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz3_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[3])))
endfunction
function Trig_FalconBlitz3_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz3_Func006001003001(),Trig_FalconBlitz3_Func006001003002())
endfunction
function Trig_FalconBlitz3_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[3],GetEnumUnit(),I2R(udg_integers33[3]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[3]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz3_Func007C takes nothing returns boolean
return(udg_integers32[3]==15)
endfunction
function Trig_FalconBlitz3_Actions takes nothing returns nothing
set udg_integers32[3]=(udg_integers32[3]+1)
set udg_locations09[3]=GetUnitLoc(udg_units37[3])
set udg_locations10[3]=PolarProjectionBJ(GetUnitLoc(udg_units37[3]),35.,udg_reals01[3])
call SetUnitPositionLoc(udg_units37[3],udg_locations10[3])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[3],Condition(function Trig_FalconBlitz3_Func006001003)),function Trig_FalconBlitz3_Func006A)
if(Trig_FalconBlitz3_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[3],GetUnitLoc(udg_units35[3]),GetUnitFacing(udg_units35[3]))
call SetUnitFacingToFaceUnitTimed(udg_units37[3],udg_units35[3],0)
set udg_units37[3]=null
set udg_units35[3]=null
set udg_units36[3]=null
call RemoveLocation(udg_locations09[3])
call RemoveLocation(udg_locations10[3])
endif
endfunction
function Trig_FalconBlitz4_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz4_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[4])))
endfunction
function Trig_FalconBlitz4_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz4_Func006001003001(),Trig_FalconBlitz4_Func006001003002())
endfunction
function Trig_FalconBlitz4_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[4],GetEnumUnit(),I2R(udg_integers33[4]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[4]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz4_Func007C takes nothing returns boolean
return(udg_integers32[4]==15)
endfunction
function Trig_FalconBlitz4_Actions takes nothing returns nothing
set udg_integers32[4]=(udg_integers32[4]+1)
set udg_locations09[4]=GetUnitLoc(udg_units37[4])
set udg_locations10[4]=PolarProjectionBJ(GetUnitLoc(udg_units37[4]),35.,udg_reals01[4])
call SetUnitPositionLoc(udg_units37[4],udg_locations10[4])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[4],Condition(function Trig_FalconBlitz4_Func006001003)),function Trig_FalconBlitz4_Func006A)
if(Trig_FalconBlitz4_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[4],GetUnitLoc(udg_units35[4]),GetUnitFacing(udg_units35[4]))
call SetUnitFacingToFaceUnitTimed(udg_units37[4],udg_units35[4],0)
set udg_units37[4]=null
set udg_units35[4]=null
set udg_units36[4]=null
call RemoveLocation(udg_locations09[4])
call RemoveLocation(udg_locations10[4])
endif
endfunction
function Trig_FalconBlitz5_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz5_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[5])))
endfunction
function Trig_FalconBlitz5_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz5_Func006001003001(),Trig_FalconBlitz5_Func006001003002())
endfunction
function Trig_FalconBlitz5_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[5],GetEnumUnit(),I2R(udg_integers33[5]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[5]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz5_Func007C takes nothing returns boolean
return(udg_integers32[5]==15)
endfunction
function Trig_FalconBlitz5_Actions takes nothing returns nothing
set udg_integers32[5]=(udg_integers32[5]+1)
set udg_locations09[5]=GetUnitLoc(udg_units37[5])
set udg_locations10[5]=PolarProjectionBJ(GetUnitLoc(udg_units37[5]),35.,udg_reals01[5])
call SetUnitPositionLoc(udg_units37[5],udg_locations10[5])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[5],Condition(function Trig_FalconBlitz5_Func006001003)),function Trig_FalconBlitz5_Func006A)
if(Trig_FalconBlitz5_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[5],GetUnitLoc(udg_units35[5]),GetUnitFacing(udg_units35[5]))
call SetUnitFacingToFaceUnitTimed(udg_units37[5],udg_units35[5],0)
set udg_units37[5]=null
set udg_units35[5]=null
set udg_units36[5]=null
call RemoveLocation(udg_locations09[5])
call RemoveLocation(udg_locations10[5])
endif
endfunction
function Trig_FalconBlitz6_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz6_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[6])))
endfunction
function Trig_FalconBlitz6_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz6_Func006001003001(),Trig_FalconBlitz6_Func006001003002())
endfunction
function Trig_FalconBlitz6_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[6],GetEnumUnit(),I2R(udg_integers33[6]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[6]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz6_Func007C takes nothing returns boolean
return(udg_integers32[6]==15)
endfunction
function Trig_FalconBlitz6_Actions takes nothing returns nothing
set udg_integers32[6]=(udg_integers32[6]+1)
set udg_locations09[6]=GetUnitLoc(udg_units37[6])
set udg_locations10[6]=PolarProjectionBJ(GetUnitLoc(udg_units37[6]),35.,udg_reals01[6])
call SetUnitPositionLoc(udg_units37[6],udg_locations10[6])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[6],Condition(function Trig_FalconBlitz6_Func006001003)),function Trig_FalconBlitz6_Func006A)
if(Trig_FalconBlitz6_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[6],GetUnitLoc(udg_units35[6]),GetUnitFacing(udg_units35[6]))
call SetUnitFacingToFaceUnitTimed(udg_units37[6],udg_units35[6],0)
set udg_units37[6]=null
set udg_units35[6]=null
set udg_units36[6]=null
call RemoveLocation(udg_locations09[6])
call RemoveLocation(udg_locations10[6])
endif
endfunction
function Trig_FalconBlitz7_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz7_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[7])))
endfunction
function Trig_FalconBlitz7_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz7_Func006001003001(),Trig_FalconBlitz7_Func006001003002())
endfunction
function Trig_FalconBlitz7_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[7],GetEnumUnit(),I2R(udg_integers33[7]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[7]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz7_Func007C takes nothing returns boolean
return(udg_integers32[7]==15)
endfunction
function Trig_FalconBlitz7_Actions takes nothing returns nothing
set udg_integers32[7]=(udg_integers32[7]+1)
set udg_locations09[7]=GetUnitLoc(udg_units37[7])
set udg_locations10[7]=PolarProjectionBJ(GetUnitLoc(udg_units37[7]),35.,udg_reals01[7])
call SetUnitPositionLoc(udg_units37[7],udg_locations10[7])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[7],Condition(function Trig_FalconBlitz7_Func006001003)),function Trig_FalconBlitz7_Func006A)
if(Trig_FalconBlitz7_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[7],GetUnitLoc(udg_units35[7]),GetUnitFacing(udg_units35[7]))
call SetUnitFacingToFaceUnitTimed(udg_units37[7],udg_units35[7],0)
set udg_units37[7]=null
set udg_units35[7]=null
set udg_units36[7]=null
call RemoveLocation(udg_locations09[7])
call RemoveLocation(udg_locations10[7])
endif
endfunction
function Trig_FalconBlitz8_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz8_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[8])))
endfunction
function Trig_FalconBlitz8_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz8_Func006001003001(),Trig_FalconBlitz8_Func006001003002())
endfunction
function Trig_FalconBlitz8_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[8],GetEnumUnit(),I2R(udg_integers33[8]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[8]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz8_Func007C takes nothing returns boolean
return(udg_integers32[8]==15)
endfunction
function Trig_FalconBlitz8_Actions takes nothing returns nothing
set udg_integers32[8]=(udg_integers32[8]+1)
set udg_locations09[8]=GetUnitLoc(udg_units37[8])
set udg_locations10[8]=PolarProjectionBJ(GetUnitLoc(udg_units37[8]),35.,udg_reals01[8])
call SetUnitPositionLoc(udg_units37[8],udg_locations10[8])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[8],Condition(function Trig_FalconBlitz8_Func006001003)),function Trig_FalconBlitz8_Func006A)
if(Trig_FalconBlitz8_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[8],GetUnitLoc(udg_units35[8]),GetUnitFacing(udg_units35[8]))
call SetUnitFacingToFaceUnitTimed(udg_units37[8],udg_units35[8],0)
set udg_units37[8]=null
set udg_units35[8]=null
set udg_units36[8]=null
call RemoveLocation(udg_locations09[8])
call RemoveLocation(udg_locations10[8])
endif
endfunction
function Trig_FalconBlitz9_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz9_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[9])))
endfunction
function Trig_FalconBlitz9_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz9_Func006001003001(),Trig_FalconBlitz9_Func006001003002())
endfunction
function Trig_FalconBlitz9_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[9],GetEnumUnit(),I2R(udg_integers33[9]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[9]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz9_Func007C takes nothing returns boolean
return(udg_integers32[9]==15)
endfunction
function Trig_FalconBlitz9_Actions takes nothing returns nothing
set udg_integers32[9]=(udg_integers32[9]+1)
set udg_locations09[9]=GetUnitLoc(udg_units37[9])
set udg_locations10[9]=PolarProjectionBJ(GetUnitLoc(udg_units37[9]),35.,udg_reals01[9])
call SetUnitPositionLoc(udg_units37[9],udg_locations10[9])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[9],Condition(function Trig_FalconBlitz9_Func006001003)),function Trig_FalconBlitz9_Func006A)
if(Trig_FalconBlitz9_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[9],GetUnitLoc(udg_units35[9]),GetUnitFacing(udg_units35[9]))
call SetUnitFacingToFaceUnitTimed(udg_units37[9],udg_units35[9],0)
set udg_units37[9]=null
set udg_units35[9]=null
set udg_units36[9]=null
call RemoveLocation(udg_locations09[9])
call RemoveLocation(udg_locations10[9])
endif
endfunction
function Trig_FalconBlitz10_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz10_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[10])))
endfunction
function Trig_FalconBlitz10_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz10_Func006001003001(),Trig_FalconBlitz10_Func006001003002())
endfunction
function Trig_FalconBlitz10_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[10],GetEnumUnit(),I2R(udg_integers33[10]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[10]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz10_Func007C takes nothing returns boolean
return(udg_integers32[10]==15)
endfunction
function Trig_FalconBlitz10_Actions takes nothing returns nothing
set udg_integers32[10]=(udg_integers32[10]+1)
set udg_locations09[10]=GetUnitLoc(udg_units37[10])
set udg_locations10[10]=PolarProjectionBJ(GetUnitLoc(udg_units37[10]),35.,udg_reals01[10])
call SetUnitPositionLoc(udg_units37[10],udg_locations10[10])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[10],Condition(function Trig_FalconBlitz10_Func006001003)),function Trig_FalconBlitz10_Func006A)
if(Trig_FalconBlitz10_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[10],GetUnitLoc(udg_units35[10]),GetUnitFacing(udg_units35[10]))
call SetUnitFacingToFaceUnitTimed(udg_units37[10],udg_units35[10],0)
set udg_units37[10]=null
set udg_units35[10]=null
set udg_units36[10]=null
call RemoveLocation(udg_locations09[10])
call RemoveLocation(udg_locations10[10])
endif
endfunction
function Trig_FalconBlitz11_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz11_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[11])))
endfunction
function Trig_FalconBlitz11_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz11_Func006001003001(),Trig_FalconBlitz11_Func006001003002())
endfunction
function Trig_FalconBlitz11_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[11],GetEnumUnit(),I2R(udg_integers33[11]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[11]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz11_Func007C takes nothing returns boolean
return(udg_integers32[11]==15)
endfunction
function Trig_FalconBlitz11_Actions takes nothing returns nothing
set udg_integers32[11]=(udg_integers32[11]+1)
set udg_locations09[11]=GetUnitLoc(udg_units37[11])
set udg_locations10[11]=PolarProjectionBJ(GetUnitLoc(udg_units37[11]),35.,udg_reals01[11])
call SetUnitPositionLoc(udg_units37[11],udg_locations10[11])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[11],Condition(function Trig_FalconBlitz11_Func006001003)),function Trig_FalconBlitz11_Func006A)
if(Trig_FalconBlitz11_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[11],GetUnitLoc(udg_units35[11]),GetUnitFacing(udg_units35[11]))
call SetUnitFacingToFaceUnitTimed(udg_units37[11],udg_units35[11],0)
set udg_units37[11]=null
set udg_units35[11]=null
set udg_units36[11]=null
call RemoveLocation(udg_locations09[11])
call RemoveLocation(udg_locations10[11])
endif
endfunction
function Trig_FalconBlitz12_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FalconBlitz12_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units35[12])))
endfunction
function Trig_FalconBlitz12_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_FalconBlitz12_Func006001003001(),Trig_FalconBlitz12_Func006001003002())
endfunction
function Trig_FalconBlitz12_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units35[12],GetEnumUnit(),I2R(udg_integers33[12]),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call CreateTextTagUnitBJ(I2S(udg_integers33[12]),GetEnumUnit(),0,10.,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,96.,90)
call SetTextTagPermanentBJ(bj_lastCreatedTextTag,false)
call SetTextTagLifespanBJ(bj_lastCreatedTextTag,.75)
endfunction
function Trig_FalconBlitz12_Func007C takes nothing returns boolean
return(udg_integers32[12]==15)
endfunction
function Trig_FalconBlitz12_Actions takes nothing returns nothing
set udg_integers32[12]=(udg_integers32[12]+1)
set udg_locations09[12]=GetUnitLoc(udg_units37[12])
set udg_locations10[12]=PolarProjectionBJ(GetUnitLoc(udg_units37[12]),35.,udg_reals01[12])
call SetUnitPositionLoc(udg_units37[12],udg_locations10[12])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.,udg_locations09[12],Condition(function Trig_FalconBlitz12_Func006001003)),function Trig_FalconBlitz12_Func006A)
if(Trig_FalconBlitz12_Func007C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units37[12],GetUnitLoc(udg_units35[12]),GetUnitFacing(udg_units35[12]))
call SetUnitFacingToFaceUnitTimed(udg_units37[12],udg_units35[12],0)
set udg_units37[12]=null
set udg_units35[12]=null
set udg_units36[12]=null
call RemoveLocation(udg_locations09[12])
call RemoveLocation(udg_locations10[12])
endif
endfunction
function Trig_Map_Startup_Actions takes nothing returns nothing
call SetSkyModel("Environment\\Sky\\Sky\\SkyLight.mdl")
call ClearMapMusic()
call StopMusic(false)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,false,Player(12))
set udg_integer14=0
set udg_integer15=0
set udg_integer16=0
call CreateLeaderboardBJ(bj_FORCE_ALL_PLAYERS,"Team Standings")
set udg_leaderboard01=bj_lastCreatedLeaderboard
call LeaderboardSetStyle(udg_leaderboard01,true,true,true,true)
call TriggerSleepAction(1.)
call LeaderboardAddItemBJ(Player(0),udg_leaderboard01,"Team 1 Kills",udg_integer14)
call LeaderboardAddItemBJ(Player(1),udg_leaderboard01,"====================",0)
call LeaderboardSetPlayerItemLabelColorBJ(Player(1),udg_leaderboard01,'d',100.,100.,0)
call LeaderboardSetPlayerItemStyleBJ(Player(1),udg_leaderboard01,true,false,false)
call LeaderboardAddItemBJ(Player(4),udg_leaderboard01,"Team 2 Kills",udg_integer15)
call LeaderboardAddItemBJ(Player(5),udg_leaderboard01,"====================",0)
call LeaderboardSetPlayerItemLabelColorBJ(Player(5),udg_leaderboard01,'d',100.,100.,0)
call LeaderboardSetPlayerItemStyleBJ(Player(5),udg_leaderboard01,true,false,false)
call LeaderboardAddItemBJ(Player(8),udg_leaderboard01,"Team 3 Kills",udg_integer16)
call TriggerSleepAction(4.)
call LeaderboardDisplayBJ(true,udg_leaderboard01)
endfunction
function Trig_TeamSetup_Copy_Actions takes nothing returns nothing
call ForceAddPlayer(udg_force01,Player(0))
call ForceAddPlayer(udg_force01,Player(1))
call ForceAddPlayer(udg_force01,Player(2))
call ForceAddPlayer(udg_force01,Player(3))
call ForceAddPlayer(udg_force01,Player(4))
call ForceAddPlayer(udg_force01,Player(5))
call ForceAddPlayer(udg_force02,Player(6))
call ForceAddPlayer(udg_force02,Player(7))
call ForceAddPlayer(udg_force02,Player(8))
call ForceAddPlayer(udg_force02,Player(9))
call ForceAddPlayer(udg_force02,Player(10))
call ForceAddPlayer(udg_force02,Player(11))
endfunction
function Trig_Leaderboard_Actions takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ(Player(0),udg_leaderboard01,udg_integer14)
call LeaderboardSetPlayerItemValueBJ(Player(4),udg_leaderboard01,udg_integer15)
call LeaderboardSetPlayerItemValueBJ(Player(8),udg_leaderboard01,udg_integer16)
call LeaderboardSortItemsBJ(udg_leaderboard01,1,true)
endfunction
function Trig_GameEndByLives_Copy_Conditions takes nothing returns boolean
return(udg_boolean02==false)
endfunction
function Trig_GameEndByLives_Copy_Func002Func003Func001C takes nothing returns boolean
return(udg_integer16>=40)
endfunction
function Trig_GameEndByLives_Copy_Func002Func003C takes nothing returns boolean
return(udg_integer15>=40)
endfunction
function Trig_GameEndByLives_Copy_Func002C takes nothing returns boolean
return(udg_integer14>=40)
endfunction
function Trig_GameEndByLives_Copy_Actions takes nothing returns nothing
if(Trig_GameEndByLives_Copy_Func002C())then
set udg_boolean02=true
call TriggerExecute(udg_trigger159)
else
if(Trig_GameEndByLives_Copy_Func002Func003C())then
set udg_boolean02=true
call TriggerExecute(udg_trigger160)
else
if(Trig_GameEndByLives_Copy_Func002Func003Func001C())then
set udg_boolean02=true
call TriggerExecute(udg_trigger161)
endif
endif
endif
endfunction
function Trig_DeathRemain_Copy_Conditions takes nothing returns boolean
return(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_DeathRemain_Copy_Func001C takes nothing returns boolean
return(IsUnitAlly(GetKillingUnit(),Player(0)))
endfunction
function Trig_DeathRemain_Copy_Func003C takes nothing returns boolean
return(IsUnitAlly(GetKillingUnit(),Player(4)))
endfunction
function Trig_DeathRemain_Copy_Func004C takes nothing returns boolean
return(IsUnitAlly(GetKillingUnit(),Player(8)))
endfunction
function Trig_DeathRemain_Copy_Actions takes nothing returns nothing
if(Trig_DeathRemain_Copy_Func001C())then
set udg_integer14=(udg_integer14+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" Killed By |cffffcc00"+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"|r , 1 Point for Team1."))))
endif
if(Trig_DeathRemain_Copy_Func003C())then
set udg_integer15=(udg_integer15+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" Killed By |cffffcc00 "+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"|r , 1 Point for Team2."))))
endif
if(Trig_DeathRemain_Copy_Func004C())then
set udg_integer16=(udg_integer16+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" Killed By |cffffcc00 "+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"|r , 1 Point for Team3."))))
endif
endfunction
function Trig_Team1vict_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger25)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffcc00TEAM1 IS THE WINNER OF THIS GAME|r")
call TriggerSleepAction(3.)
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
endfunction
function Trig_Team2vict_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger25)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffcc00TEAM2 IS THE WINNER OF THIS GAME|r")
call TriggerSleepAction(3.)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(6),true,true)
call CustomVictoryBJ(Player(7),true,true)
endfunction
function Trig_Team3vict_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger25)
call PauseAllUnitsBJ(true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffcc00TEAM3 IS THE WINNER OF THIS GAME|r")
call TriggerSleepAction(3.)
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
call CustomVictoryBJ(Player(11),true,true)
endfunction
function Trig_butterflu_Func001C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00I')
endfunction
function Trig_butterflu_Actions takes nothing returns nothing
if(Trig_butterflu_Func001C())then
call AddSpecialEffectTargetUnitBJ("origin",GetManipulatingUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
set udg_effects13[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects13[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))])
call TriggerSleepAction(3.)
call SetUnitPositionLoc(GetManipulatingUnit(),GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetManipulatingUnit()),GetRectCenter(udg_rect03),0)
endif
endfunction
function Trig_combo_item_Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='H00W')or(GetUnitTypeId(GetManipulatingUnit())=='H01I')or(GetUnitTypeId(GetManipulatingUnit())=='H01J')
endfunction
function Trig_combo_item_Func001Func001Func001Func002Func004C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I006')or(GetItemTypeId(GetManipulatedItem())=='I00L')or(GetItemTypeId(GetManipulatedItem())=='I00O')or(GetItemTypeId(GetManipulatedItem())=='I00X')or(GetItemTypeId(GetManipulatedItem())=='I00R')or(GetItemTypeId(GetManipulatedItem())=='I00U')or(GetItemTypeId(GetManipulatedItem())=='I00T')or(GetItemTypeId(GetManipulatedItem())=='I00S')or(GetItemTypeId(GetManipulatedItem())=='I00V')or(GetItemTypeId(GetManipulatedItem())=='I00M')or(GetItemTypeId(GetManipulatedItem())=='I015')or(GetItemTypeId(GetManipulatedItem())=='I014')or(GetItemTypeId(GetManipulatedItem())=='I013')or(GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I012')or(GetItemTypeId(GetManipulatedItem())=='I010')or(GetItemTypeId(GetManipulatedItem())=='I019')or(GetItemTypeId(GetManipulatedItem())=='I011')or(GetItemTypeId(GetManipulatedItem())=='I018')
endfunction
function Trig_combo_item_Func001Func001Func001Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func001Func002Func004C())
endfunction
function Trig_combo_item_Func001Func001Func001C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func001Func001C())
endfunction
function Trig_combo_item_Func001Func001Func002Func001C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='H014')or(GetUnitTypeId(GetManipulatingUnit())=='H02K')or(GetUnitTypeId(GetManipulatingUnit())=='H02H')or(GetUnitTypeId(GetManipulatingUnit())=='H01F')or(GetUnitTypeId(GetManipulatingUnit())=='H01H')
endfunction
function Trig_combo_item_Func001Func001Func002Func002Func004C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00X')or(GetItemTypeId(GetManipulatedItem())=='I00R')or(GetItemTypeId(GetManipulatedItem())=='I00U')or(GetItemTypeId(GetManipulatedItem())=='I00T')or(GetItemTypeId(GetManipulatedItem())=='I00V')or(GetItemTypeId(GetManipulatedItem())=='I00W')or(GetItemTypeId(GetManipulatedItem())=='I00S')or(GetItemTypeId(GetManipulatedItem())=='I015')or(GetItemTypeId(GetManipulatedItem())=='I014')or(GetItemTypeId(GetManipulatedItem())=='I013')or(GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I012')or(GetItemTypeId(GetManipulatedItem())=='I010')or(GetItemTypeId(GetManipulatedItem())=='I018')or(GetItemTypeId(GetManipulatedItem())=='I016')or(GetItemTypeId(GetManipulatedItem())=='I017')
endfunction
function Trig_combo_item_Func001Func001Func002Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func002Func002Func004C())
endfunction
function Trig_combo_item_Func001Func001Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func002Func001C())
endfunction
function Trig_combo_item_Func001Func001Func003Func001C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='H00I')or(GetUnitTypeId(GetManipulatingUnit())=='H00A')or(GetUnitTypeId(GetManipulatingUnit())=='H00C')or(GetUnitTypeId(GetManipulatingUnit())=='H00D')or(GetUnitTypeId(GetManipulatingUnit())=='H000')
endfunction
function Trig_combo_item_Func001Func001Func003Func002Func004C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00X')or(GetItemTypeId(GetManipulatedItem())=='I00U')or(GetItemTypeId(GetManipulatedItem())=='I00T')or(GetItemTypeId(GetManipulatedItem())=='I00V')or(GetItemTypeId(GetManipulatedItem())=='I00W')or(GetItemTypeId(GetManipulatedItem())=='I015')or(GetItemTypeId(GetManipulatedItem())=='I014')or(GetItemTypeId(GetManipulatedItem())=='I013')or(GetItemTypeId(GetManipulatedItem())=='I019')or(GetItemTypeId(GetManipulatedItem())=='I018')or(GetItemTypeId(GetManipulatedItem())=='I016')or(GetItemTypeId(GetManipulatedItem())=='I017')
endfunction
function Trig_combo_item_Func001Func001Func003Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func003Func002Func004C())
endfunction
function Trig_combo_item_Func001Func001Func003C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func003Func001C())
endfunction
function Trig_combo_item_Func001Func001Func004Func001C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='H00N')or(GetUnitTypeId(GetManipulatingUnit())=='H00U')
endfunction
function Trig_combo_item_Func001Func001Func004Func002Func004C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00X')or(GetItemTypeId(GetManipulatedItem())=='I00T')or(GetItemTypeId(GetManipulatedItem())=='I00V')or(GetItemTypeId(GetManipulatedItem())=='I00W')or(GetItemTypeId(GetManipulatedItem())=='I00S')or(GetItemTypeId(GetManipulatedItem())=='I00R')or(GetItemTypeId(GetManipulatedItem())=='I00O')or(GetItemTypeId(GetManipulatedItem())=='I019')or(GetItemTypeId(GetManipulatedItem())=='I018')or(GetItemTypeId(GetManipulatedItem())=='I016')or(GetItemTypeId(GetManipulatedItem())=='I011')or(GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I012')or(GetItemTypeId(GetManipulatedItem())=='I010')or(GetItemTypeId(GetManipulatedItem())=='I017')
endfunction
function Trig_combo_item_Func001Func001Func004Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func004Func002Func004C())
endfunction
function Trig_combo_item_Func001Func001Func004C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func004Func001C())
endfunction
function Trig_combo_item_Func001Func001Func005Func001C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='H02A')or(GetUnitTypeId(GetManipulatingUnit())=='H029')or(GetUnitTypeId(GetManipulatingUnit())=='H01V')or(GetUnitTypeId(GetManipulatingUnit())=='H01S')
endfunction
function Trig_combo_item_Func001Func001Func005Func002Func004C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00S')or(GetItemTypeId(GetManipulatedItem())=='I006')or(GetItemTypeId(GetManipulatedItem())=='I00L')or(GetItemTypeId(GetManipulatedItem())=='I00U')or(GetItemTypeId(GetManipulatedItem())=='I00W')or(GetItemTypeId(GetManipulatedItem())=='I00R')or(GetItemTypeId(GetManipulatedItem())=='I00O')or(GetItemTypeId(GetManipulatedItem())=='I016')or(GetItemTypeId(GetManipulatedItem())=='I011')or(GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I012')or(GetItemTypeId(GetManipulatedItem())=='I010')or(GetItemTypeId(GetManipulatedItem())=='I015')or(GetItemTypeId(GetManipulatedItem())=='I014')or(GetItemTypeId(GetManipulatedItem())=='I013')or(GetItemTypeId(GetManipulatedItem())=='I017')
endfunction
function Trig_combo_item_Func001Func001Func005Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func005Func002Func004C())
endfunction
function Trig_combo_item_Func001Func001Func005C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func005Func001C())
endfunction
function Trig_combo_item_Func001Func001Func006Func001C takes nothing returns boolean
return(GetUnitTypeId(GetManipulatingUnit())=='H018')or(GetUnitTypeId(GetManipulatingUnit())=='H01P')or(GetUnitTypeId(GetManipulatingUnit())=='H01O')
endfunction
function Trig_combo_item_Func001Func001Func006Func002Func004C takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00S')or(GetItemTypeId(GetManipulatedItem())=='I006')or(GetItemTypeId(GetManipulatedItem())=='I00L')or(GetItemTypeId(GetManipulatedItem())=='I00U')or(GetItemTypeId(GetManipulatedItem())=='I00R')or(GetItemTypeId(GetManipulatedItem())=='I00O')or(GetItemTypeId(GetManipulatedItem())=='I00M')or(GetItemTypeId(GetManipulatedItem())=='I015')or(GetItemTypeId(GetManipulatedItem())=='I014')or(GetItemTypeId(GetManipulatedItem())=='I013')or(GetItemTypeId(GetManipulatedItem())=='I016')or(GetItemTypeId(GetManipulatedItem())=='I011')or(GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I012')or(GetItemTypeId(GetManipulatedItem())=='I010')or(GetItemTypeId(GetManipulatedItem())=='I017')
endfunction
function Trig_combo_item_Func001Func001Func006Func002C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func006Func002Func004C())
endfunction
function Trig_combo_item_Func001Func001Func006C takes nothing returns boolean
return(Trig_combo_item_Func001Func001Func006Func001C())
endfunction
function Trig_combo_item_Func001Func001Func007Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00T')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Q')))
endfunction
function Trig_combo_item_Func001Func001Func007Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00T')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00V')))
endfunction
function Trig_combo_item_Func001Func001Func007C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Q')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00V')))
endfunction
function Trig_combo_item_Func001Func001Func008Func001Func003C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00B')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Y')))
endfunction
function Trig_combo_item_Func001Func001Func008Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00B')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00P')))
endfunction
function Trig_combo_item_Func001Func001Func008C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Y')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00P')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I012')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I010')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002Func001Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I014')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00U')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I013')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00U')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I013')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I014')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00X')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I018')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Z')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I010')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Z')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I012')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00R')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Q')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00O')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Q')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00O')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00R')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00S')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00W')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001Func003C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00S')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00M')))
endfunction
function Trig_combo_item_Func001Func001Func009Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00M')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00W')))
endfunction
function Trig_combo_item_Func001Func001Func009C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00L')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00N')))
endfunction
function Trig_combo_item_Func001Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I007')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00K')))
endfunction
function Trig_combo_item_Func001C takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I006')))and(UnitHasItem(GetTriggerUnit(),GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00K')))
endfunction
function Trig_combo_item_Actions takes nothing returns nothing
if(Trig_combo_item_Func001C())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I006'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00K'))
call UnitAddItemByIdSwapped('I00L',GetManipulatingUnit())
call DestroyEffect(bj_lastCreatedEffect)
else
if(Trig_combo_item_Func001Func001C())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I007'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00K'))
call UnitAddItemByIdSwapped('I00N',GetManipulatingUnit())
call DestroyEffect(bj_lastCreatedEffect)
else
if(Trig_combo_item_Func001Func001Func001C())then
if(Trig_combo_item_Func001Func001Func001Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,("You can't take "+("|cffffcc00"+(GetItemName(GetManipulatedItem())+" !|r"))))
call RemoveItem(bj_lastRemovedItem)
endif
endif
if(Trig_combo_item_Func001Func001Func002C())then
if(Trig_combo_item_Func001Func001Func002Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,("You can't take "+("|cffffcc00"+(GetItemName(GetManipulatedItem())+" !|r"))))
call RemoveItem(bj_lastRemovedItem)
endif
endif
if(Trig_combo_item_Func001Func001Func003C())then
if(Trig_combo_item_Func001Func001Func003Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,("You can't take "+("|cffffcc00"+(GetItemName(GetManipulatedItem())+" !|r"))))
call RemoveItem(bj_lastRemovedItem)
endif
endif
if(Trig_combo_item_Func001Func001Func004C())then
if(Trig_combo_item_Func001Func001Func004Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,("You can't take "+("|cffffcc00"+(GetItemName(GetManipulatedItem())+" !|r"))))
call RemoveItem(bj_lastRemovedItem)
endif
endif
if(Trig_combo_item_Func001Func001Func005C())then
if(Trig_combo_item_Func001Func001Func005Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,("You can't take "+("|cffffcc00"+(GetItemName(GetManipulatedItem())+" !|r"))))
call RemoveItem(bj_lastRemovedItem)
endif
endif
if(Trig_combo_item_Func001Func001Func006C())then
if(Trig_combo_item_Func001Func001Func006Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,("You can't take "+("|cffffcc00"+(GetItemName(GetManipulatedItem())+" !|r"))))
call RemoveItem(bj_lastRemovedItem)
endif
endif
if(Trig_combo_item_Func001Func001Func007C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func007Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func007Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
endif
endif
endif
if(Trig_combo_item_Func001Func001Func008C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func008Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func008Func001Func003C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
endif
endif
endif
if(Trig_combo_item_Func001Func001Func009C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
endif
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
else
if(Trig_combo_item_Func001Func001Func009Func001Func003Func001Func001Func001Func001Func001Func001Func002Func001Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.,"You Can't use same type equipment.")
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_Combine_Items_Conditions takes nothing returns boolean
return(GetItemCharges(GetManipulatedItem())>0)
endfunction
function Trig_Combine_Items_Actions takes nothing returns nothing
local integer ITEMCOUNT
local integer ITEMLOOP
local integer CHARGES
local integer MAXIMUM
local item NEWITEM
local unit OURUNIT
set MAXIMUM=5000
set ITEMCOUNT=0
set ITEMLOOP=0
set CHARGES=0
set NEWITEM=GetManipulatedItem()
set OURUNIT=GetManipulatingUnit()
loop
exitwhen ITEMLOOP>6
if((GetItemTypeId(NEWITEM))==(GetItemTypeId(UnitItemInSlotBJ(OURUNIT,ITEMLOOP))))then
if((GetItemCharges(UnitItemInSlotBJ(OURUNIT,ITEMLOOP))+GetItemCharges(NEWITEM))<=MAXIMUM)then
if not((UnitItemInSlotBJ(OURUNIT,ITEMLOOP))==(NEWITEM))then
set CHARGES=(GetItemCharges(UnitItemInSlotBJ(OURUNIT,ITEMLOOP)))+GetItemCharges(NEWITEM)
call SetItemCharges(UnitItemInSlotBJ(OURUNIT,ITEMLOOP),CHARGES)
call RemoveItem(NEWITEM)
set ITEMLOOP=7
endif
endif
endif
if(ITEMLOOP<7)then
set ITEMLOOP=ITEMLOOP+1
endif
endloop
endfunction
function Trig_First_Blood_Conditions takes nothing returns boolean
return(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO))and(IsUnitType(GetKillingUnit(),UNIT_TYPE_HERO))and(IsPlayerEnemy(GetOwningPlayer(GetKillingUnit()),GetOwningPlayer(GetDyingUnit())))
endfunction
function Trig_First_Blood_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlayThematicMusic("war3mapImported\\firstblood.wav")
call AdjustPlayerStateBJ(200,GetOwningPlayer(GetAttacker()),PLAYER_STATE_RESOURCE_GOLD)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,(("|cff00ccffFirst Blood|r - "+GetPlayerName(GetOwningPlayer(GetDyingUnit())))+(" 's first killed by"+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" Bonus 200 Gold."))))
call PlaySoundBJ(udg_sound11)
endfunction
function Trig_boss_kill_Conditions takes nothing returns boolean
return(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetKillingUnit())==Player(12))and(IsPlayerEnemy(GetOwningPlayer(GetKillingUnit()),GetOwningPlayer(GetDyingUnit())))
endfunction
function Trig_boss_kill_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" Killed by"+(GetHeroProperName(GetKillingUnit())+"Die youuuuuuuu!!!"))))
endfunction
function Trig_Player_1_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[1]==false)
endfunction
function Trig_Player_1_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_1_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_1_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(0)),function Trig_Player_1_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(0))+" Has Left the Game"))
set udg_booleans01[1]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(0)),function Trig_Player_1_Func009002)
endfunction
function Trig_Player_2_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[2]==false)
endfunction
function Trig_Player_2_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_2_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_2_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(1)),function Trig_Player_2_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(1))+" Has Left the Game"))
set udg_booleans01[2]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(1)),function Trig_Player_2_Func009002)
endfunction
function Trig_Player_3_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[3]==false)
endfunction
function Trig_Player_3_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_3_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_3_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(2)),function Trig_Player_3_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(2))+" Has Left the Game"))
set udg_booleans01[3]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(2)),function Trig_Player_3_Func009002)
endfunction
function Trig_Player_4_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(3))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[4]==false)
endfunction
function Trig_Player_4_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_4_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_4_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(3)),function Trig_Player_4_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(3))+" Has Left the Game"))
set udg_booleans01[4]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(3)),function Trig_Player_4_Func009002)
endfunction
function Trig_Player_5_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[5]==false)
endfunction
function Trig_Player_5_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_5_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_5_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(4)),function Trig_Player_5_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(4))+" Has Left the Game"))
set udg_booleans01[5]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(4)),function Trig_Player_5_Func009002)
endfunction
function Trig_Player_7_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[7]==false)
endfunction
function Trig_Player_7_Func005001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function Trig_Player_7_Func005001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_Player_7_Func005001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Player_7_Func005001002001(),Trig_Player_7_Func005001002002())
endfunction
function Trig_Player_7_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_7_Func009001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function Trig_Player_7_Func009001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=true)
endfunction
function Trig_Player_7_Func009001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Player_7_Func009001002001(),Trig_Player_7_Func009001002002())
endfunction
function Trig_Player_7_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_7_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Player_7_Func005001002)),function Trig_Player_7_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(6))+" Has Left the Game"))
set udg_booleans01[7]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Player_7_Func009001002)),function Trig_Player_7_Func009002)
endfunction
function Trig_Player_8_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(7))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[8]==false)
endfunction
function Trig_Player_8_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_8_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_8_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(7)),function Trig_Player_8_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(7))+" Has Left the Game"))
set udg_booleans01[8]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(7)),function Trig_Player_8_Func009002)
endfunction
function Trig_Player_9_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[9]==false)
endfunction
function Trig_Player_9_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_9_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_9_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(8)),function Trig_Player_9_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(8))+" Has Left the Game"))
set udg_booleans01[9]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(8)),function Trig_Player_9_Func009002)
endfunction
function Trig_Player_10_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[10]==false)
endfunction
function Trig_Player_10_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_10_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_10_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(9)),function Trig_Player_10_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(9))+" Has Left the Game"))
set udg_booleans01[10]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(9)),function Trig_Player_10_Func009002)
endfunction
function Trig_Player_11_Conditions takes nothing returns boolean
return(GetPlayerSlotState(Player(10))!=PLAYER_SLOT_STATE_PLAYING)and(udg_booleans01[11]==false)
endfunction
function Trig_Player_11_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_11_Func009002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Player_11_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(10)),function Trig_Player_11_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(GetPlayerName(Player(10))+" Has Left the Game"))
set udg_booleans01[11]=true
call TriggerSleepAction(17.)
call ForGroupBJ(GetUnitsInRectOfPlayer(bj_mapInitialPlayableArea,Player(10)),function Trig_Player_11_Func009002)
endfunction
function Trig_region_25_Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region_25_Func001002 takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region_25_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_region_25_Func001001(),Trig_region_25_Func001002()))
endfunction
function Trig_region_25_Func002C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_region_25_Actions takes nothing returns nothing
if(Trig_region_25_Func002C())then
set udg_location21=GetRectCenter(udg_rect83)
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,udg_location21)
call RemoveLocation(udg_location21)
endif
endfunction
function Trig_region1_Func002C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))or(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h034')or(GetUnitTypeId(GetEnteringUnit())=='h037')or(GetUnitTypeId(GetEnteringUnit())=='h03D')or(GetUnitTypeId(GetEnteringUnit())=='h03C')or(GetUnitTypeId(GetEnteringUnit())=='h00H')or(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_region1_Conditions takes nothing returns boolean
return(Trig_region1_Func002C())
endfunction
function Trig_region1_Actions takes nothing returns nothing
set udg_location25=GetRectCenter(udg_rect18)
call SetUnitPositionLoc(GetEnteringUnit(),udg_location25)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect18),0)
call SetUnitInvulnerable(GetEnteringUnit(),false)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location25)
endfunction
function Trig_region7_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_GROUND)!=null)
endfunction
function Trig_region7_Actions takes nothing returns nothing
call SetUnitInvulnerable(GetEnteringUnit(),true)
endfunction
function Trig_region1_Copy_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_region1_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect16))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect16),0)
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region6_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_region6_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect03),0)
endfunction
function Trig_region2_Func002C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))or(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h034')or(GetUnitTypeId(GetEnteringUnit())=='h037')or(GetUnitTypeId(GetEnteringUnit())=='h03D')or(GetUnitTypeId(GetEnteringUnit())=='h03C')or(GetUnitTypeId(GetEnteringUnit())=='h00H')or(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_region2_Conditions takes nothing returns boolean
return(Trig_region2_Func002C())
endfunction
function Trig_region2_Actions takes nothing returns nothing
set udg_location25=GetRectCenter(udg_rect22)
call SetUnitPositionLoc(GetEnteringUnit(),udg_location25)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect22),0)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location25)
endfunction
function Trig_region22_Func001C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))or(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h034')or(GetUnitTypeId(GetEnteringUnit())=='h037')or(GetUnitTypeId(GetEnteringUnit())=='h03D')or(GetUnitTypeId(GetEnteringUnit())=='h03C')or(GetUnitTypeId(GetEnteringUnit())=='h00H')or(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_region22_Conditions takes nothing returns boolean
return(Trig_region22_Func001C())
endfunction
function Trig_region22_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect20))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect20),0)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region3_Func001C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))or(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h034')or(GetUnitTypeId(GetEnteringUnit())=='h037')or(GetUnitTypeId(GetEnteringUnit())=='h03D')or(GetUnitTypeId(GetEnteringUnit())=='h03C')or(GetUnitTypeId(GetEnteringUnit())=='h00H')or(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_region3_Conditions takes nothing returns boolean
return(Trig_region3_Func001C())
endfunction
function Trig_region3_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect26))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect26),0)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region3_Copy_Func001C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))or(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h034')or(GetUnitTypeId(GetEnteringUnit())=='h037')or(GetUnitTypeId(GetEnteringUnit())=='h03D')or(GetUnitTypeId(GetEnteringUnit())=='h03C')or(GetUnitTypeId(GetEnteringUnit())=='h00H')or(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_region3_Copy_Conditions takes nothing returns boolean
return(Trig_region3_Copy_Func001C())
endfunction
function Trig_region3_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect24))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect24),0)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region4_Func001C takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))or(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h034')or(GetUnitTypeId(GetEnteringUnit())=='h037')or(GetUnitTypeId(GetEnteringUnit())=='h03D')or(GetUnitTypeId(GetEnteringUnit())=='h03C')or(GetUnitTypeId(GetEnteringUnit())=='h00H')or(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_region4_Conditions takes nothing returns boolean
return(Trig_region4_Func001C())
endfunction
function Trig_region4_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect27))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect27),0)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region5_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(IsUnitAlly(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region5_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect22))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect22),0)
call SetUnitInvulnerable(GetEnteringUnit(),false)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region10_Func003001 takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(0))
endfunction
function Trig_region10_Func003002 takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(6))
endfunction
function Trig_region10_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO))and(GetBooleanOr(Trig_region10_Func003001(),Trig_region10_Func003002()))
endfunction
function Trig_region10_Func001C takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region10_Actions takes nothing returns nothing
if(Trig_region10_Func001C())then
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect74))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect74),0)
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function Trig_region10_Copy_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_region10_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect77))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect77),0)
call SetUnitInvulnerable(GetEnteringUnit(),true)
call AddSpecialEffectTargetUnitBJ("origin",GetEnteringUnit(),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_region8_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_region8_Actions takes nothing returns nothing
call SetUnitInvulnerable(GetEnteringUnit(),true)
endfunction
function Trig_region9_Actions takes nothing returns nothing
call SetUnitInvulnerable(GetEnteringUnit(),false)
endfunction
function Trig_unstuckP1_Func002001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_unstuckP1_Func002001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(0))
endfunction
function Trig_unstuckP1_Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_unstuckP1_Func002001002001(),Trig_unstuckP1_Func002001002002())
endfunction
function Trig_unstuckP1_Func002A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_unstuckP1_Actions takes nothing returns nothing
call TriggerSleepAction(10.)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_unstuckP1_Func002001002)),function Trig_unstuckP1_Func002A)
set bj_wantDestroyGroup=true
endfunction
function Trig_Emper_Houstile_Conditions takes nothing returns boolean
return(GetTriggerUnit()==udg_unit33)and(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))<=1000)
endfunction
function Trig_Emper_Houstile_Func001Func011001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emper_Houstile_Func001Func011001002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0)))
endfunction
function Trig_Emper_Houstile_Func001Func011001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emper_Houstile_Func001Func011001002001(),Trig_Emper_Houstile_Func001Func011001002002())
endfunction
function Trig_Emper_Houstile_Func001Func011A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect32))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect32),1.)
endfunction
function Trig_Emper_Houstile_Func001Func014001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emper_Houstile_Func001Func014001002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0)))
endfunction
function Trig_Emper_Houstile_Func001Func014001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emper_Houstile_Func001Func014001002001(),Trig_Emper_Houstile_Func001Func014001002002())
endfunction
function Trig_Emper_Houstile_Func001Func014A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect32))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect32),1.)
endfunction
function Trig_Emper_Houstile_Func001Func017001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h016')
endfunction
function Trig_Emper_Houstile_Func001Func017A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func019001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Emper_Houstile_Func001Func019001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Emper_Houstile_Func001Func019001002 takes nothing returns boolean
return GetBooleanOr(Trig_Emper_Houstile_Func001Func019001002001(),Trig_Emper_Houstile_Func001Func019001002002())
endfunction
function Trig_Emper_Houstile_Func001Func019A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func021001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Emper_Houstile_Func001Func021001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Emper_Houstile_Func001Func021001002 takes nothing returns boolean
return GetBooleanOr(Trig_Emper_Houstile_Func001Func021001002001(),Trig_Emper_Houstile_Func001Func021001002002())
endfunction
function Trig_Emper_Houstile_Func001Func021A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func023001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e000')
endfunction
function Trig_Emper_Houstile_Func001Func023001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e001')
endfunction
function Trig_Emper_Houstile_Func001Func023001002 takes nothing returns boolean
return GetBooleanOr(Trig_Emper_Houstile_Func001Func023001002001(),Trig_Emper_Houstile_Func001Func023001002002())
endfunction
function Trig_Emper_Houstile_Func001Func023002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func091001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emper_Houstile_Func001Func091001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(0))
endfunction
function Trig_Emper_Houstile_Func001Func091001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emper_Houstile_Func001Func091001002001(),Trig_Emper_Houstile_Func001Func091001002002())
endfunction
function Trig_Emper_Houstile_Func001Func091A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect34))
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect34),1.)
call DisplayTextToForce(bj_FORCE_PLAYER[0],"|cffffcc00You have 30 seconds to recruit new member|r")
endfunction
function Trig_Emper_Houstile_Func001Func108Func012001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emper_Houstile_Func001Func108Func012001002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(6)))
endfunction
function Trig_Emper_Houstile_Func001Func108Func012001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emper_Houstile_Func001Func108Func012001002001(),Trig_Emper_Houstile_Func001Func108Func012001002002())
endfunction
function Trig_Emper_Houstile_Func001Func108Func012A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect32))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect32),1.)
endfunction
function Trig_Emper_Houstile_Func001Func108Func015001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emper_Houstile_Func001Func108Func015001002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(6)))
endfunction
function Trig_Emper_Houstile_Func001Func108Func015001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emper_Houstile_Func001Func108Func015001002001(),Trig_Emper_Houstile_Func001Func108Func015001002002())
endfunction
function Trig_Emper_Houstile_Func001Func108Func015A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect32))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect32),1.)
endfunction
function Trig_Emper_Houstile_Func001Func108Func018001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h016')
endfunction
function Trig_Emper_Houstile_Func001Func108Func018A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func108Func020001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Emper_Houstile_Func001Func108Func020001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Emper_Houstile_Func001Func108Func020001002 takes nothing returns boolean
return GetBooleanOr(Trig_Emper_Houstile_Func001Func108Func020001002001(),Trig_Emper_Houstile_Func001Func108Func020001002002())
endfunction
function Trig_Emper_Houstile_Func001Func108Func020A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func108Func022001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(5))
endfunction
function Trig_Emper_Houstile_Func001Func108Func022001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Emper_Houstile_Func001Func108Func022001002 takes nothing returns boolean
return GetBooleanOr(Trig_Emper_Houstile_Func001Func108Func022001002001(),Trig_Emper_Houstile_Func001Func108Func022001002002())
endfunction
function Trig_Emper_Houstile_Func001Func108Func022A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func108Func024001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e000')
endfunction
function Trig_Emper_Houstile_Func001Func108Func024001002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='e001')
endfunction
function Trig_Emper_Houstile_Func001Func108Func024001002 takes nothing returns boolean
return GetBooleanOr(Trig_Emper_Houstile_Func001Func108Func024001002001(),Trig_Emper_Houstile_Func001Func108Func024001002002())
endfunction
function Trig_Emper_Houstile_Func001Func108Func024002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Emper_Houstile_Func001Func108Func092001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Trig_Emper_Houstile_Func001Func108Func092001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function Trig_Emper_Houstile_Func001Func108Func092001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Emper_Houstile_Func001Func108Func092001002001(),Trig_Emper_Houstile_Func001Func108Func092001002002())
endfunction
function Trig_Emper_Houstile_Func001Func108Func092A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect34))
call PanCameraToTimedLocForPlayer(Player(6),GetRectCenter(udg_rect34),1.)
endfunction
function Trig_Emper_Houstile_Func001Func108C takes nothing returns boolean
return(IsUnitAlly(GetAttacker(),Player(6)))
endfunction
function Trig_Emper_Houstile_Func001C takes nothing returns boolean
return(IsUnitAlly(GetAttacker(),Player(0)))
endfunction
function Trig_Emper_Houstile_Actions takes nothing returns nothing
if(Trig_Emper_Houstile_Func001C())then
call ShowUnitShow(udg_unit34)
call SetUnitInvulnerable(udg_unit33,true)
call SetUnitLifePercentBJ(udg_unit33,'d')
call SetUnitOwner(udg_unit33,Player(0),true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,"|cffffcc00EMPERIUM HAS BEEN DESTROYED !!|r")
call TriggerSleepAction(2.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,"|cffffcc00Valkyre 1 been taken by|r |c00ff0303Risens Creed|r !!")
call PlaySoundBJ(udg_sound32)
call TriggerSleepAction(4.)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Emper_Houstile_Func001Func011001002)),function Trig_Emper_Houstile_Func001Func011A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.5)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect31,Condition(function Trig_Emper_Houstile_Func001Func014001002)),function Trig_Emper_Houstile_Func001Func014A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.5)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Emper_Houstile_Func001Func017001002)),function Trig_Emper_Houstile_Func001Func017A)
call DestroyGroup(bj_lastCreatedGroup)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Emper_Houstile_Func001Func019001002)),function Trig_Emper_Houstile_Func001Func019A)
call DestroyGroup(bj_lastCreatedGroup)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect31,Condition(function Trig_Emper_Houstile_Func001Func021001002)),function Trig_Emper_Houstile_Func001Func021A)
call DestroyGroup(bj_lastCreatedGroup)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Emper_Houstile_Func001Func023001002)),function Trig_Emper_Houstile_Func001Func023002)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.5)
call CreateNUnitsAtLoc(1,'e000',Player(5),GetRectCenter(udg_rect28),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e001',Player(5),GetRectCenter(udg_rect41),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e001',Player(5),GetRectCenter(udg_rect40),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e001',Player(5),GetRectCenter(udg_rect20),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h038',Player(5),GetRectCenter(udg_rect51),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h038',Player(5),GetRectCenter(udg_rect51),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h03B',Player(5),GetRectCenter(udg_rect51),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h03B',Player(5),GetRectCenter(udg_rect52),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h038',Player(5),GetRectCenter(udg_rect57),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h038',Player(5),GetRectCenter(udg_rect57),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'o002',Player(5),GetRectCenter(udg_rect50),bj_UNIT_FACING)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'o002',Player(5),GetRectCenter(udg_rect50),bj_UNIT_FACING)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h004',Player(5),GetRectCenter(udg_rect40),bj_UNIT_FACING)
call IssueImmediateOrderById(bj_lastCreatedUnit,852150)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h004',Player(5),GetRectCenter(udg_rect52),bj_UNIT_FACING)
call IssueImmediateOrderById(bj_lastCreatedUnit,852150)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Emper_Houstile_Func001Func091001002)),function Trig_Emper_Houstile_Func001Func091A)
call DestroyGroup(bj_lastCreatedGroup)
call SetUnitInvulnerable(udg_unit33,false)
call EnableTrigger(udg_trigger201)
call EnableTrigger(udg_trigger202)
call EnableTrigger(udg_trigger204)
call EnableTrigger(udg_trigger203)
call DisableTrigger(udg_trigger197)
call DisableTrigger(udg_trigger199)
call DisableTrigger(udg_trigger200)
call DisableTrigger(udg_trigger198)
call DisableTrigger(udg_trigger229)
call DisableTrigger(udg_trigger230)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],15.,"You can enter |c00ff0303Boss Guild Secret Place|r to hire some people to attack, or recruit priest.")
call PingMinimapLocForForce(bj_FORCE_PLAYER[6],GetRectCenter(udg_rect76),5.)
call TriggerSleepAction(30.)
call ShowUnitHide(udg_unit34)
else
if(Trig_Emper_Houstile_Func001Func108C())then
call ShowUnitShow(udg_unit34)
call SetUnitInvulnerable(udg_unit33,true)
call SetUnitLifePercentBJ(udg_unit33,'d')
call SetUnitOwner(udg_unit33,Player(6),true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,"|cffffcc00EMPERIUM HAS BEEN DESTROYED !!|r")
call TriggerSleepAction(2.)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,"|cffffcc00Valkyre 1 been taken by|r |c000042ffThe Vizlords|r !!")
call PlaySoundBJ(udg_sound32)
call TriggerSleepAction(4.)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Emper_Houstile_Func001Func108Func012001002)),function Trig_Emper_Houstile_Func001Func108Func012A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.5)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect31,Condition(function Trig_Emper_Houstile_Func001Func108Func015001002)),function Trig_Emper_Houstile_Func001Func108Func015A)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.5)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Emper_Houstile_Func001Func108Func018001002)),function Trig_Emper_Houstile_Func001Func108Func018A)
call DestroyGroup(bj_lastCreatedGroup)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Emper_Houstile_Func001Func108Func020001002)),function Trig_Emper_Houstile_Func001Func108Func020A)
call DestroyGroup(bj_lastCreatedGroup)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect31,Condition(function Trig_Emper_Houstile_Func001Func108Func022001002)),function Trig_Emper_Houstile_Func001Func108Func022A)
call DestroyGroup(bj_lastCreatedGroup)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect30,Condition(function Trig_Emper_Houstile_Func001Func108Func024001002)),function Trig_Emper_Houstile_Func001Func108Func024002)
call DestroyGroup(bj_lastCreatedGroup)
call TriggerSleepAction(.5)
call CreateNUnitsAtLoc(1,'e000',Player(11),GetRectCenter(udg_rect28),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e001',Player(11),GetRectCenter(udg_rect41),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e001',Player(11),GetRectCenter(udg_rect40),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e001',Player(11),GetRectCenter(udg_rect20),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h039',Player(11),GetRectCenter(udg_rect51),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h039',Player(11),GetRectCenter(udg_rect51),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h039',Player(11),GetRectCenter(udg_rect57),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h03A',Player(11),GetRectCenter(udg_rect51),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h03A',Player(11),GetRectCenter(udg_rect57),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h039',Player(11),GetRectCenter(udg_rect57),bj_UNIT_FACING)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'o002',Player(11),GetRectCenter(udg_rect50),bj_UNIT_FACING)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'o002',Player(11),GetRectCenter(udg_rect50),bj_UNIT_FACING)
call CreateItemLoc('I00A',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h009',Player(11),GetRectCenter(udg_rect40),bj_UNIT_FACING)
call IssueImmediateOrderById(bj_lastCreatedUnit,852150)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call CreateNUnitsAtLoc(1,'h009',Player(11),GetRectCenter(udg_rect52),bj_UNIT_FACING)
call IssueImmediateOrderById(bj_lastCreatedUnit,852150)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,25)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Emper_Houstile_Func001Func108Func092001002)),function Trig_Emper_Houstile_Func001Func108Func092A)
call DestroyGroup(bj_lastCreatedGroup)
call DisplayTextToForce(bj_FORCE_PLAYER[6],"|cffffcc00You have 30 seconds to recruit new member|r")
call SetUnitInvulnerable(udg_unit33,false)
call EnableTrigger(udg_trigger197)
call EnableTrigger(udg_trigger199)
call EnableTrigger(udg_trigger200)
call EnableTrigger(udg_trigger198)
call DisableTrigger(udg_trigger201)
call DisableTrigger(udg_trigger203)
call DisableTrigger(udg_trigger202)
call DisableTrigger(udg_trigger204)
call DisableTrigger(udg_trigger229)
call DisableTrigger(udg_trigger230)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],15.,"You can enter |c00ff0303Boss Guild Secret Place|r to hire some people to attack, or recruit priest.")
call PingMinimapLocForForce(bj_FORCE_PLAYER[0],GetRectCenter(udg_rect76),5.)
call TriggerSleepAction(30.)
call ShowUnitHide(udg_unit34)
endif
endif
endfunction
function Trig_P6Knightattack_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h032',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h032',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P6crusaderattack_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03C',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,150)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P6assattack_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h033',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h033',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P6BS_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h034',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h034',Player(5),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P12assattack_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h035',Player(11),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h035',Player(11),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P12BS_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h037',Player(11),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h037',Player(11),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P12Knightattack_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h036',Player(11),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h036',Player(11),GetRectCenter(udg_rect32),90.)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,50)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
endfunction
function Trig_P12crusaderattack_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03D',Player(11),GetRectCenter(udg_rect32),90.)
call CreateItemLoc('I009',GetUnitLoc(bj_lastCreatedUnit))
call SetItemCharges(bj_lastCreatedItem,150)
call UnitAddItem(bj_lastCreatedUnit,bj_lastCreatedItem)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
endfunction
function Trig_region021_Func001Func001Func001Func002Func003C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h036')or(GetUnitTypeId(GetEnteringUnit())=='h035')or(GetUnitTypeId(GetEnteringUnit())=='h037')
endfunction
function Trig_region021_Func001Func001Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))and(Trig_region021_Func001Func001Func001Func002Func003C())
endfunction
function Trig_region021_Func001Func001Func001Func004C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h033')or(GetUnitTypeId(GetEnteringUnit())=='h032')or(GetUnitTypeId(GetEnteringUnit())=='h034')
endfunction
function Trig_region021_Func001Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))and(Trig_region021_Func001Func001Func001Func004C())
endfunction
function Trig_region021_Func001Func001C takes nothing returns boolean
return(IsUnitAlly(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region021_Func001Func002Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region021_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region021_Func001C takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region021_Actions takes nothing returns nothing
if(Trig_region021_Func001C())then
if(Trig_region021_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect46))
else
if(Trig_region021_Func001Func002Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect46))
endif
endif
else
if(Trig_region021_Func001Func001C())then
if(Trig_region021_Func001Func001Func001C())then
call RemoveUnit(GetEnteringUnit())
else
if(Trig_region021_Func001Func001Func001Func002C())then
call RemoveUnit(GetEnteringUnit())
endif
endif
endif
endif
endfunction
function Trig_region064_Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h035')
endfunction
function Trig_region064_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h033')
endfunction
function Trig_region064_Actions takes nothing returns nothing
if(Trig_region064_Func001C())then
call IssueImmediateOrderById(GetEnteringUnit(),852129)
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect46))
else
if(Trig_region064_Func001Func001C())then
call IssueImmediateOrderById(GetEnteringUnit(),852129)
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect46))
endif
endif
endfunction
function Trig_region049_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region049_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region049_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region049_Actions takes nothing returns nothing
if(Trig_region049_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect14))
else
if(Trig_region049_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect14))
endif
endif
endfunction
function Trig_region017_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region017_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region017_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region017_Actions takes nothing returns nothing
if(Trig_region017_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect13))
else
if(Trig_region017_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect13))
endif
endif
endfunction
function Trig_region017bspawn_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region017bspawn_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region017bspawn_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region017bspawn_Actions takes nothing returns nothing
if(Trig_region017bspawn_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect47))
else
if(Trig_region017bspawn_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect47))
endif
endif
endfunction
function Trig_region050_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region050_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region050_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region050_Actions takes nothing returns nothing
if(Trig_region050_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect58))
else
if(Trig_region050_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect58))
endif
endif
endfunction
function Trig_region062_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region062_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region062_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region062_Actions takes nothing returns nothing
if(Trig_region062_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect19))
else
if(Trig_region062_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect19))
endif
endif
endfunction
function Trig_region063_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region063_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region063_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region063_Actions takes nothing returns nothing
if(Trig_region063_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect46))
else
if(Trig_region063_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect46))
endif
endif
endfunction
function Trig_region025_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region025_Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region025_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region025_Actions takes nothing returns nothing
if(Trig_region025_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect56))
else
if(Trig_region025_Func001Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect56))
endif
endif
endfunction
function Trig_region059_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region059_Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region059_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region059_Actions takes nothing returns nothing
if(Trig_region059_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect23))
else
if(Trig_region059_Func001Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect23))
endif
endif
endfunction
function Trig_region029_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region029_Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region029_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region029_Actions takes nothing returns nothing
if(Trig_region029_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect48))
else
if(Trig_region029_Func001Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect48))
endif
endif
endfunction
function Trig_region051_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region051_Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region051_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region051_Actions takes nothing returns nothing
if(Trig_region051_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect49))
else
if(Trig_region051_Func001Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect49))
endif
endif
endfunction
function Trig_region052_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region052_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region052_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region052_Actions takes nothing returns nothing
if(Trig_region052_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect50))
else
if(Trig_region052_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRandomLocInRect(udg_rect50))
endif
endif
endfunction
function Trig_region053_Conditions takes nothing returns boolean
return(IsUnitEnemy(GetEnteringUnit(),GetOwningPlayer(udg_unit33)))
endfunction
function Trig_region053_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region053_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region053_Actions takes nothing returns nothing
if(Trig_region053_Func001C())then
call IssueTargetOrderById(GetEnteringUnit(),851983,udg_unit33)
else
if(Trig_region053_Func001Func002C())then
call IssueTargetOrderById(GetEnteringUnit(),851983,udg_unit33)
endif
endif
endfunction
function Trig_region066_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region066_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region066_Actions takes nothing returns nothing
if(Trig_region066_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect15))
else
if(Trig_region066_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect15))
endif
endif
endfunction
function Trig_region067_Func001Func002C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_region067_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_region067_Actions takes nothing returns nothing
if(Trig_region067_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect14))
else
if(Trig_region067_Func001Func002C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect14))
endif
endif
endfunction
function Trig_Leaves_Func002C takes nothing returns boolean
return(GetUnitTypeId(GetLeavingUnit())=='h038')or(GetUnitTypeId(GetLeavingUnit())=='h039')
endfunction
function Trig_Leaves_Conditions takes nothing returns boolean
return(Trig_Leaves_Func002C())
endfunction
function Trig_Leaves_Actions takes nothing returns nothing
set udg_location24=GetRandomLocInRect(udg_rect51)
call IssuePointOrderByIdLoc(GetLeavingUnit(),851986,udg_location24)
call RemoveLocation(udg_location24)
endfunction
function Trig_Hire_unit_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_Hire_unit_Func001Func001Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00G')
endfunction
function Trig_Hire_unit_Func001Func001Func003Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00F')
endfunction
function Trig_Hire_unit_Func001Func001Func003Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00E')
endfunction
function Trig_Hire_unit_Func001Func001Func003Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00B')
endfunction
function Trig_Hire_unit_Func001Func001Func003Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='o002')
endfunction
function Trig_Hire_unit_Func001Func001Func003C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='o001')
endfunction
function Trig_Hire_unit_Func001Func001C takes nothing returns boolean
return(IsUnitAlly(GetEnteringUnit(),Player(11)))and(GetUnitTypeId(GetEnteringUnit())!='h01B')and(GetUnitTypeId(GetEnteringUnit())!='h01C')and(GetUnitTypeId(GetEnteringUnit())!='h01E')and(GetUnitTypeId(GetEnteringUnit())!='h013')and(GetUnitTypeId(GetEnteringUnit())!='h01D')
endfunction
function Trig_Hire_unit_Func001Func004Func001Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00G')
endfunction
function Trig_Hire_unit_Func001Func004Func001Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00F')
endfunction
function Trig_Hire_unit_Func001Func004Func001Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00E')
endfunction
function Trig_Hire_unit_Func001Func004Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00B')
endfunction
function Trig_Hire_unit_Func001Func004Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='o002')
endfunction
function Trig_Hire_unit_Func001Func004C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='o001')
endfunction
function Trig_Hire_unit_Func001C takes nothing returns boolean
return(IsUnitAlly(GetEnteringUnit(),Player(5)))and(GetUnitTypeId(GetEnteringUnit())!='h01B')and(GetUnitTypeId(GetEnteringUnit())!='h01C')and(GetUnitTypeId(GetEnteringUnit())!='h01E')and(GetUnitTypeId(GetEnteringUnit())!='h013')and(GetUnitTypeId(GetEnteringUnit())!='h01D')
endfunction
function Trig_Hire_unit_Actions takes nothing returns nothing
if(Trig_Hire_unit_Func001C())then
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect41))
call SetUnitOwner(GetEnteringUnit(),Player(5),true)
if(Trig_Hire_unit_Func001Func004C())then
call CreateItemLoc('I00A',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,200)
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func004Func001C())then
call CreateItemLoc('I00A',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func004Func001Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func004Func001Func001Func001C())then
call CreateItemLoc('I00A',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func004Func001Func001Func001Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func004Func001Func001Func001Func001Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
endif
endif
endif
endif
endif
endif
else
if(Trig_Hire_unit_Func001Func001C())then
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect41))
call SetUnitOwner(GetEnteringUnit(),Player(11),true)
if(Trig_Hire_unit_Func001Func001Func003C())then
call CreateItemLoc('I00A',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,200)
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func001Func003Func001C())then
call CreateItemLoc('I00A',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func001Func003Func001Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func001Func003Func001Func001Func001C())then
call CreateItemLoc('I00A',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func001Func003Func001Func001Func001Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
else
if(Trig_Hire_unit_Func001Func001Func003Func001Func001Func001Func001Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,'d')
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_Hire_unit2_Conditions takes nothing returns boolean
return(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_Hire_unit2_Func001Func001Func004Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_Hire_unit2_Func001Func001Func004C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00H')
endfunction
function Trig_Hire_unit2_Func001Func001C takes nothing returns boolean
return(IsUnitAlly(GetEnteringUnit(),Player(11)))and(GetUnitTypeId(GetEnteringUnit())!='h01B')and(GetUnitTypeId(GetEnteringUnit())!='h01C')and(GetUnitTypeId(GetEnteringUnit())!='h01E')and(GetUnitTypeId(GetEnteringUnit())!='h013')and(GetUnitTypeId(GetEnteringUnit())!='h01D')
endfunction
function Trig_Hire_unit2_Func001Func004Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_Hire_unit2_Func001Func004C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00H')
endfunction
function Trig_Hire_unit2_Func001C takes nothing returns boolean
return(IsUnitAlly(GetEnteringUnit(),Player(5)))and(GetUnitTypeId(GetEnteringUnit())!='h01B')and(GetUnitTypeId(GetEnteringUnit())!='h01C')and(GetUnitTypeId(GetEnteringUnit())!='h01E')and(GetUnitTypeId(GetEnteringUnit())!='h013')and(GetUnitTypeId(GetEnteringUnit())!='h01D')
endfunction
function Trig_Hire_unit2_Actions takes nothing returns nothing
if(Trig_Hire_unit2_Func001C())then
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect32))
call SetUnitOwner(GetEnteringUnit(),Player(5),true)
if(Trig_Hire_unit2_Func001Func004C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,400)
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call DisplayTextToForce(GetPlayersAllies(Player(0)),(GetPlayerName(Player(0))+" Has Recruit Tadashi !"))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PingMinimapLocForForce(GetPlayersAllies(Player(0)),GetUnitLoc(GetEnteringUnit()),1.)
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Hire_unit2_Func001Func004Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,600)
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call DisplayTextToForce(GetPlayersAllies(Player(0)),(GetPlayerName(Player(0))+" Has Recruit Jupiter Reign !"))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PingMinimapLocForForce(GetPlayersAllies(Player(0)),GetUnitLoc(GetEnteringUnit()),1.)
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
else
if(Trig_Hire_unit2_Func001Func001C())then
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect32))
call SetUnitOwner(GetEnteringUnit(),Player(11),true)
if(Trig_Hire_unit2_Func001Func001Func004C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,400)
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call DisplayTextToForce(GetPlayersAllies(Player(11)),(GetPlayerName(Player(6))+" Has Recruit Tadashi !"))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PingMinimapLocForForce(GetPlayersAllies(Player(11)),GetUnitLoc(GetEnteringUnit()),1.)
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Hire_unit2_Func001Func001Func004Func001C())then
call CreateItemLoc('I009',GetUnitLoc(GetEnteringUnit()))
call SetItemCharges(bj_lastCreatedItem,600)
call UnitAddItem(GetEnteringUnit(),bj_lastCreatedItem)
call DisplayTextToForce(GetPlayersAllies(Player(11)),(GetPlayerName(Player(6))+" Has Recruit Jupiter Reign !"))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PingMinimapLocForForce(GetPlayersAllies(Player(11)),GetUnitLoc(GetEnteringUnit()),1.)
call TriggerSleepAction(1.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
endif
endif
endfunction
function Trig_reg_35_Func001Func001Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(5))
endfunction
function Trig_reg_35_Func001Func001Func001002 takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(11))
endfunction
function Trig_reg_35_Func001Func001C takes nothing returns boolean
return(GetBooleanOr(Trig_reg_35_Func001Func001Func001001(),Trig_reg_35_Func001Func001Func001002()))and(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_reg_35_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00H')
endfunction
function Trig_reg_35_Actions takes nothing returns nothing
if(Trig_reg_35_Func001C())then
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,GetRectCenter(udg_rect15))
else
if(Trig_reg_35_Func001Func001C())then
set udg_location23=GetRectCenter(udg_rect62)
call IssuePointOrderByIdLoc(GetEnteringUnit(),851986,udg_location23)
call RemoveLocation(udg_location23)
endif
endif
endfunction
function Trig_reg_37_Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(6))
endfunction
function Trig_reg_37_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(0))
endfunction
function Trig_reg_37_Actions takes nothing returns nothing
if(Trig_reg_37_Func001C())then
call UnitRemoveAbility(GetEnteringUnit(),'A04T')
else
if(Trig_reg_37_Func001Func001C())then
call UnitRemoveAbility(GetEnteringUnit(),'A04T')
endif
endif
endfunction
function Trig_reg_36_Func001Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(6))
endfunction
function Trig_reg_36_Func001C takes nothing returns boolean
return(GetOwningPlayer(GetEnteringUnit())==Player(0))
endfunction
function Trig_reg_36_Actions takes nothing returns nothing
if(Trig_reg_36_Func001C())then
call UnitAddAbility(GetEnteringUnit(),'A04T')
else
if(Trig_reg_36_Func001Func001C())then
call UnitAddAbility(GetEnteringUnit(),'A04T')
endif
endif
endfunction
function Trig_reg_tadashi_Func001Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_reg_tadashi_Func001C takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00H')
endfunction
function Trig_reg_tadashi_Actions takes nothing returns nothing
if(Trig_reg_tadashi_Func001C())then
set udg_unit28=GetEnteringUnit()
call IssueTargetOrderById(GetEnteringUnit(),851983,udg_unit33)
call EnableTrigger(udg_trigger229)
else
if(Trig_reg_tadashi_Func001Func001C())then
set udg_unit28=GetEnteringUnit()
call IssueTargetOrderById(GetEnteringUnit(),851983,udg_unit33)
call EnableTrigger(udg_trigger229)
endif
endif
endfunction
function Trig_reg_JR_Conditions takes nothing returns boolean
return(GetUnitTypeId(GetEnteringUnit())=='h00S')
endfunction
function Trig_reg_JR_Actions takes nothing returns nothing
set udg_unit30=GetEnteringUnit()
call EnableTrigger(udg_trigger230)
endfunction
function Trig_tadashi_attack_Actions takes nothing returns nothing
call IssueTargetOrderById(udg_unit28,851983,udg_unit33)
endfunction
function Trig_JR_attak_Func002Func001C takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit30))
endfunction
function Trig_JR_attak_Func002C takes nothing returns boolean
return(udg_unit30==null)
endfunction
function Trig_JR_attak_Actions takes nothing returns nothing
call IssueTargetOrderById(udg_unit30,851983,udg_unit33)
if(Trig_JR_attak_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
else
if(Trig_JR_attak_Func002Func001C())then
call DisableTrigger(GetTriggeringTrigger())
endif
endif
endfunction
function main2 takes nothing returns nothing
local weathereffect we
local player p
local unit u
local integer unitID
local trigger t
local real life
local integer i
call SetCameraBounds(-3328.+GetCameraMargin(CAMERA_MARGIN_LEFT),-3584.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),3456.-GetCameraMargin(CAMERA_MARGIN_RIGHT),3072.-GetCameraMargin(CAMERA_MARGIN_TOP),-3328.+GetCameraMargin(CAMERA_MARGIN_LEFT),3072.-GetCameraMargin(CAMERA_MARGIN_TOP),3456.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-3584.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("CityScapeDay")
call SetAmbientNightSound("CityScapeNight")
call SetMapMusic("Music",true,0)
set udg_sound03=CreateSound("Abilities\\Weapons\\BristleBackMissile\\BristleBackMissileLaunch1.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(udg_sound03,"BristleBackMissileLaunch")
call SetSoundDuration(udg_sound03,345)
set udg_sound04=CreateSound("Abilities\\Spells\\Undead\\Impale\\ImpaleHit.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound04,"ImpaleHit")
call SetSoundDuration(udg_sound04,1666)
set udg_sound05=CreateSound("Abilities\\Spells\\Human\\ManaShield\\ManaShieldCaster1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound05,"ManaShieldCastSound")
call SetSoundDuration(udg_sound05,2554)
set udg_sound06=CreateSound("Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound06,"ReviveHuman")
call SetSoundDuration(udg_sound06,3196)
set udg_sound07=CreateSound("Sound\\Buildings\\Death\\BuildingDeathLargeHuman.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound07,"DeathHumanLargeBuilding")
call SetSoundDuration(udg_sound07,3460)
set udg_sound08=CreateSound("Abilities\\Weapons\\Catapult\\CatapultMissile4.wav",false,true,true,10,10,"MissilesEAX")
call SetSoundParamsFromLabel(udg_sound08,"Catapult")
call SetSoundDuration(udg_sound08,1216)
set udg_sound09=CreateSound("Abilities\\Spells\\Undead\\Sleep\\SleepBirth1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound09,"Sleep")
call SetSoundDuration(udg_sound09,3203)
set udg_sound10=CreateSound("Units\\Undead\\CryptFiend\\CryptFiendYesAttack1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound10,"CryptFiendYesAttack")
call SetSoundDuration(udg_sound10,1962)
set udg_sound11=CreateSound("Units\\Creeps\\ForestTroll\\ForestTrollWarcry1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound11,"ForestTrollWarcry")
call SetSoundDuration(udg_sound11,1532)
set udg_sound12=CreateSound("Abilities\\Spells\\Orc\\Purge\\PurgeTarget1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound12,"Purge")
call SetSoundDuration(udg_sound12,2096)
set udg_sound13=CreateSound("Sound\\Ambient\\DoodadEffects\\TheHornOfCenarius.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound13,"HornOfCenariusSound")
call SetSoundDuration(udg_sound13,12121)
set udg_sound14=CreateSound("war3mapImported\\woe.wav",true,false,false,10,10,"DoodadsEAX")
call SetSoundChannel(udg_sound14,7)
call SetSoundVolume(udg_sound14,127)
call SetSoundPitch(udg_sound14,1.)
set udg_sound15=CreateSound("Sound\\Interface\\GoodJob.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound15,"GoodJob")
call SetSoundDuration(udg_sound15,2548)
set udg_sound16=CreateSound("Sound\\Interface\\BattleNetTick.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound16,"ChatroomTimerTick")
call SetSoundDuration(udg_sound16,476)
set udg_sound17=CreateSound("Sound\\Ambient\\SentinelsGlueScreen.wav",true,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound17,"ExpansionNightElfGlueScreenLoop")
call SetSoundDuration(udg_sound17,10000)
call SetSoundVolume(udg_sound17,127)
set udg_sound18=CreateSound("Sound\\Music\\mp3Music\\HeroicVictory.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound18,53456)
call SetSoundChannel(udg_sound18,0)
call SetSoundVolume(udg_sound18,127)
call SetSoundPitch(udg_sound18,1.)
set udg_sound19=CreateSound("Abilities\\Spells\\Human\\Avatar\\Avatar.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound19,"Avatar")
call SetSoundDuration(udg_sound19,3199)
set udg_sound20=CreateSound("war3mapImported\\Asura.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound20,0)
call SetSoundVolume(udg_sound20,'d')
call SetSoundPitch(udg_sound20,1.)
set udg_sound21=CreateSound("war3mapImported\\cal spirit.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundDuration(udg_sound21,1000)
call SetSoundChannel(udg_sound21,0)
call SetSoundVolume(udg_sound21,127)
call SetSoundPitch(udg_sound21,1.)
set udg_sound22=CreateSound("war3mapImported\\sonicblow2.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound22,0)
call SetSoundVolume(udg_sound22,127)
call SetSoundPitch(udg_sound22,1.)
set udg_sound23=CreateSound("war3mapImported\\bash2.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound23,0)
call SetSoundVolume(udg_sound23,127)
call SetSoundPitch(udg_sound23,1.)
set udg_sound24=CreateSound("war3mapImported\\player_clothes.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound24,193)
call SetSoundChannel(udg_sound24,0)
call SetSoundVolume(udg_sound24,80)
call SetSoundPitch(udg_sound24,1.)
set udg_sound25=CreateSound("war3mapImported\\gc.wav",false,false,false,10,10,"CombatSoundsEAX")
call SetSoundChannel(udg_sound25,5)
call SetSoundVolume(udg_sound25,127)
call SetSoundPitch(udg_sound25,1.)
set udg_sound26=CreateSound("war3mapImported\\stun.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound26,0)
call SetSoundVolume(udg_sound26,90)
call SetSoundPitch(udg_sound26,1.)
set udg_sound27=CreateSound("war3mapImported\\adrenaline.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound27,0)
call SetSoundVolume(udg_sound27,'d')
call SetSoundPitch(udg_sound27,1.)
set udg_sound28=CreateSound("war3mapImported\\cru_holy cross2.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound28,0)
call SetSoundVolume(udg_sound28,95)
call SetSoundPitch(udg_sound28,1.)
set udg_sound29=CreateSound("war3mapImported\\DS.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound29,0)
call SetSoundVolume(udg_sound29,127)
call SetSoundPitch(udg_sound29,1.)
set udg_sound30=CreateSound("war3mapImported\\bltizbeat.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound30,0)
call SetSoundVolume(udg_sound30,85)
call SetSoundPitch(udg_sound30,1.)
set udg_sound31=CreateSound("war3mapImported\\spiritexplosion.wav",false,false,false,10,10,"DoodadsEAX")
call SetSoundChannel(udg_sound31,5)
call SetSoundVolume(udg_sound31,'d')
call SetSoundPitch(udg_sound31,1.)
set udg_sound32=CreateSound("war3mapImported\\complete.wav",false,false,false,10,10,"")
call SetSoundChannel(udg_sound32,0)
call SetSoundVolume(udg_sound32,127)
call SetSoundPitch(udg_sound32,1.)
set udg_sound33=CreateSound("war3mapImported\\magni.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound33,5)
call SetSoundVolume(udg_sound33,'o')
call SetSoundPitch(udg_sound33,1.)
set udg_sound34=CreateSound("war3mapImported\\blessing.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundChannel(udg_sound34,0)
call SetSoundVolume(udg_sound34,127)
call SetSoundPitch(udg_sound34,1.)
set udg_sound35=CreateSound("war3mapImported\\kyre.wav",false,false,false,10,10,"DoodadsEAX")
call SetSoundChannel(udg_sound35,5)
call SetSoundVolume(udg_sound35,85)
call SetSoundPitch(udg_sound35,1.)
set udg_rect01=Rect(-3232.,-4064.,-2880.,-3680.)
set udg_rect02=Rect(-2880.,-4064.,-2528.,-3680.)
set udg_rect03=Rect(-3296.,-3552.,-2720.,-2976.)
set udg_rect04=Rect(-2016.,-4096.,-1664.,-3680.)
set udg_rect05=Rect(-512.,1728.,160.,2080.)
set udg_rect06=Rect(704.,-3552.,960.,-3296.)
set udg_rect07=Rect(544.,-32.,704.,96.)
set udg_rect08=Rect(2048.,2240.,2208.,2368.)
set udg_rect09=Rect(-2752.,2240.,-2592.,2368.)
set udg_rect10=Rect(-2944.,-2688.,-2784.,-2560.)
set udg_rect11=Rect(-2528.,-4000.,-2336.,-3776.)
set udg_rect12=Rect(-1504.,-4096.,-1024.,-3616.)
set udg_rect13=Rect(-480.,-320.,128.,448.)
set udg_rect14=Rect(-416.,-1376.,-64.,-832.)
set udg_rect15=Rect(-2304.,-2464.,-2080.,-2080.)
set udg_rect16=Rect(-2048.,-2496.,-1920.,-2112.)
set udg_rect17=Rect(2848.,-3584.,3136.,-3328.)
set udg_rect18=Rect(2432.,-3520.,2784.,-3040.)
set udg_rect19=Rect(-2592.,-832.,-2304.,-640.)
set udg_rect20=Rect(-2592.,-1184.,-2304.,-1024.)
set udg_rect21=Rect(-2528.,-128.,-2240.,128.)
set udg_rect22=Rect(-2688.,256.,-2080.,384.)
set udg_rect23=Rect(-2048.,2560.,-1408.,2944.)
set udg_rect24=Rect(-1984.,2432.,-1440.,2560.)
set udg_rect25=Rect(3008.,-832.,3264.,-576.)
set udg_rect26=Rect(2816.,-480.,3328.,-288.)
set udg_rect27=Rect(2592.,2080.,3328.,2816.)
set we=AddWeatherEffect(udg_rect27,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect28=Rect(-928.,-1536.,-608.,-128.)
set udg_rect29=Rect(-3104.,1408.,-2816.,2400.)
set udg_rect30=Rect(-3392.,-1728.,3456.,3168.)
set udg_rect31=Rect(1504.,-3584.,3424.,-1600.)
set udg_rect32=Rect(-544.,-3616.,128.,-3072.)
set udg_rect33=Rect(-2624.,2720.,-2368.,3072.)
set udg_rect34=Rect(-2976.,2624.,-2848.,2848.)
set udg_rect35=Rect(-3360.,2944.,-2880.,3040.)
set udg_rect36=Rect(-64.,-2368.,192.,-2112.)
set udg_rect37=Rect(-256.,1088.,.0,1280.)
set udg_rect38=Rect(-832.,1024.,512.,3040.)
set we=AddWeatherEffect(udg_rect38,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect39=Rect(-3264.,-3648.,704.,-1888.)
set udg_rect40=Rect(2016.,-512.,2240.,160.)
set udg_rect41=Rect(2880.,1184.,3104.,1440.)
set udg_rect42=Rect(-3360.,2720.,-3040.,3104.)
set udg_rect43=Rect(-3232.,2528.,-2816.,2912.)
set we=AddWeatherEffect(udg_rect43,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect44=Rect(2752.,2336.,3232.,2848.)
set we=AddWeatherEffect(udg_rect44,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect45=Rect(1248.,992.,1472.,1216.)
set udg_rect46=Rect(1472.,-1728.,2112.,-1024.)
set udg_rect47=Rect(-1568.,-352.,-1088.,416.)
set udg_rect48=Rect(992.,-384.,1504.,128.)
set udg_rect49=Rect(1024.,800.,1696.,1376.)
set udg_rect50=Rect(2656.,1120.,3360.,1760.)
set udg_rect51=Rect(1792.,256.,3328.,544.)
set udg_rect52=Rect(1824.,-3392.,2048.,-3168.)
set udg_rect53=Rect(2688.,-2912.,2944.,-2656.)
set udg_rect54=Rect(1216.,1632.,2208.,2912.)
set we=AddWeatherEffect(udg_rect54,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect55=Rect(1248.,2080.,2176.,3040.)
set udg_rect56=Rect(-2144.,1280.,-1440.,1792.)
set udg_rect57=Rect(1600.,-3488.,2208.,-2880.)
set udg_rect58=Rect(-1600.,-1440.,-1120.,-640.)
set udg_rect59=Rect(1600.,-3552.,1920.,-2944.)
set udg_rect60=Rect(2272.,-3616.,2432.,-2912.)
set udg_rect61=Rect(1248.,224.,1568.,480.)
set udg_rect62=Rect(-416.,-2368.,-96.,-2016.)
set udg_rect63=Rect(256.,-1568.,896.,-1376.)
set udg_rect64=Rect(1760.,2592.,2112.,2976.)
set udg_rect65=Rect(-2976.,-3104.,-2848.,-2944.)
set udg_rect66=Rect(-2976.,-3584.,-2848.,-3488.)
set udg_rect67=Rect(-1312.,-2624.,-1184.,-2464.)
set udg_rect68=Rect(-1600.,-2624.,-1408.,-2496.)
set udg_rect69=Rect(2400.,-96.,2592.,128.)
set udg_rect70=Rect(-3008.,-2560.,-2432.,-2432.)
set udg_rect71=Rect(-2976.,-2112.,-2528.,-2016.)
set udg_rect72=Rect(992.,-448.,3328.,1344.)
set udg_rect73=Rect(1472.,2848.,1728.,3072.)
set udg_rect74=Rect(1472.,2656.,1728.,2816.)
set udg_rect75=Rect(320.,-2880.,480.,-2784.)
set udg_rect76=Rect(320.,-3040.,576.,-2848.)
set udg_rect77=Rect(224.,-3296.,288.,-3008.)
set udg_rect78=Rect(2560.,1760.,3488.,1856.)
set udg_rect79=Rect(-64.,-2048.,64.,-2016.)
set udg_rect80=Rect(-1088.,-2912.,-896.,-2848.)
set udg_rect81=Rect(-3424.,768.,-2624.,2240.)
set udg_rect82=Rect(-2880.,-1632.,704.,-608.)
set udg_rect83=Rect(-2464.,576.,-2304.,672.)
set udg_rect84=Rect(-2720.,-224.,-1632.,3072.)
set udg_rect85=Rect(-2016.,-3456.,-1952.,-3328.)
set udg_rect86=Rect(1376.,-3552.,2592.,-896.)
set udg_rect87=Rect(2656.,-448.,2752.,128.)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ANGLE_OF_ATTACK,345.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_TARGET_DISTANCE,700.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FIELD_OF_VIEW,120.,.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FARZ,10000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup01,-198.6,-1106.6,.0)
set p=Player(12)
set udg_unit33=CreateUnit(p,'h031',3008.,2624.,72.656)
set p=Player(15)
set u=CreateUnit(p,'ncp3',-2176.,-2304.,270.)
set u=CreateUnit(p,'ncp3',3008.,-3456.,270.)
set u=CreateUnit(p,'ncp3',-2432.,-704.,270.)
set u=CreateUnit(p,'ncp3',-2368.,64.,270.)
set u=CreateUnit(p,'ncp3',-1664.,2624.,270.)
set u=CreateUnit(p,'ncp3',3136.,-704.,270.)
set u=CreateUnit(p,'ncp3',64.,-2240.,270.)
set u=CreateUnit(p,'ncp3',-128.,1152.,270.)
set u=CreateUnit(p,'ncp3',-2496.,2880.,270.)
set u=CreateUnit(p,'n00G',-704.,2080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n005',-704.,2336.,270.)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00C',-512.,2400.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n008',-320.,2400.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n007',-128.,2400.,270.)
call SetUnitColor(u,ConvertPlayerColor(1))
set u=CreateUnit(p,'n002',64.,2400.,270.)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'n009',256.,2400.,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'n00A',-704.,1888.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n00B',448.,2400.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n00K',448.,2080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n006',448.,1888.,270.)
call SetUnitColor(u,ConvertPlayerColor(7))
set udg_unit34=CreateUnit(p,'n00O',-3200.,2912.,315.)
call SetUnitColor(udg_unit34,ConvertPlayerColor(11))
set u=CreateUnit(p,'n001',-2496.,-3072.,270.)
set udg_unit31=CreateUnit(p,'n00T',-2048.,-3136.,270.)
set u=CreateUnit(p,'h01Y',-3136.,1984.,270.)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'ncp3',1600.,2944.,270.)
set u=CreateUnit(p,'ncp3',448.,-2944.,270.)
set p=Player(12)
set u=CreateUnit(p,'e000',-780.6,-504.2,277.89)
set p=Player(15)
set u=CreateUnit(p,'n011',-1722.3,-3103.2,264.798)
set udg_unit38=CreateUnit(p,'n003',-1398.5,-3122.9,270.)
set udg_unit39=CreateUnit(p,'n00D',-1730.2,-3533.5,90.)
set udg_unit40=CreateUnit(p,'n00E',-1066.2,-3105.3,270.)
set udg_unit41=CreateUnit(p,'n00F',-1411.3,-3523.4,90.)
set udg_unit42=CreateUnit(p,'n00H',-1111.,-3534.3,90.)
set u=CreateUnit(p,'h002',-3124.9,1892.9,269.66)
set u=CreateUnit(p,'h002',-3228.3,1697.2,45.85)
set u=CreateUnit(p,'h01X',-3179.1,1539.4,16.68)
set u=CreateUnit(p,'h01Z',-3321.7,1921.8,284.17)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h006',-3306.2,1678.7,212.43)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h017',-3208.6,2038.8,227.59)
set u=CreateUnit(p,'h019',-3266.7,1986.6,340.17)
set u=CreateUnit(p,'h01A',-3110.7,2026.1,17.99)
set udg_unit37=CreateUnit(p,'n00U',-460.,-3292.7,188.092)
set u=CreateUnit(p,'h022',-3269.1,1089.5,208.14)
set u=CreateUnit(p,'h021',-2933.,1688.3,230.87)
set u=CreateUnit(p,'h015',-3156.,1288.9,36.39)
set u=CreateUnit(p,'h01W',-3183.3,1180.8,294.212)
set u=CreateUnit(p,'h011',-3109.1,1578.1,259.329)
set u=CreateUnit(p,'h007',-3296.1,1157.8,226.71)
set u=CreateUnit(p,'h012',-3202.1,1276.,264.537)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h00O',-3016.6,1188.9,271.085)
set u=CreateUnit(p,'h01D',-3215.1,1351.,253.517)
set u=CreateUnit(p,'h00Q',-3263.6,1466.,303.13)
set udg_unit36=CreateUnit(p,'n00V',-672.6,-3308.5,269.437)
set u=CreateUnit(p,'h016',-3229.4,1130.4,102.637)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'h00R',-3239.8,1657.4,146.52)
set udg_unit35=CreateUnit(p,'n00Z',576.7,-3332.3,135.)
set udg_unit32=CreateUnit(p,'n010',1594.5,2537.1,332.676)
set u=CreateUnit(p,'H02K',-3185.7,1150.2,204.78)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02H',-3121.4,1229.5,71.721)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H029',-3312.6,1492.5,235.213)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02A',-3122.7,1421.1,197.156)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01V',-3114.8,1150.2,356.144)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01P',-3269.,1543.6,220.162)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01O',-3133.2,1341.3,146.606)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H018',-3124.5,1712.5,355.836)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01S',-3184.9,1555.1,280.698)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02W',-3231.1,1116.7,114.02)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02O',-3215.8,1639.,216.404)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01F',-3222.2,1899.2,54.659)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01H',-3233.2,1457.9,359.802)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01K',-3146.5,1800.8,281.061)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01J',-3109.3,1558.,263.361)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02S',-3146.6,2131.9,198.892)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01I',-3166.9,2033.2,78.225)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00W',-3117.9,1955.7,116.623)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H01L',-3278.9,2078.5,71.644)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02Z',-3248.8,1764.2,53.626)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02V',-3286.3,1388.5,134.466)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00U',-3017.5,1130.5,175.864)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02R',-3120.8,1075.3,225.117)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00I',-3193.4,1067.7,241.762)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00N',-3197.1,1281.2,219.448)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02P',-3106.6,1853.6,175.116)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02Y',-3291.,2012.8,308.538)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00A',-3289.4,1849.7,105.285)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02T',-3040.9,1843.1,122.205)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H000',-3033.3,1607.2,35.443)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00D',-3008.6,1518.7,80.334)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H00C',-3039.3,1433.6,320.393)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H02U',-3030.2,1369.8,136.004)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H014',-2999.,1256.9,283.983)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'H030',-3065.5,1288.5,4.021)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'h01B',-3086.6,1346.2,308.725)
set u=CreateUnit(p,'h01B',-3296.8,1502.5,347.102)
set u=CreateUnit(p,'n00J',1865.4,2699.6,244.824)
set p=Player(0)
set u=CreateUnit(p,'n004',-374.4,1962.6,162.888)
set p=Player(1)
set u=CreateUnit(p,'n004',-295.4,2059.,8.031)
set p=Player(2)
set u=CreateUnit(p,'n004',-223.5,1953.,51.165)
set p=Player(3)
set u=CreateUnit(p,'n004',-143.6,2054.1,82.246)
set p=Player(4)
set u=CreateUnit(p,'n004',-65.3,1952.7,42.222)
set p=Player(5)
set u=CreateUnit(p,'n00X',-2947.7,-3103.3,268.2)
set u=CreateUnit(p,'n00Y',-1792.4,-2525.2,102.358)
call IssueImmediateOrderById(u,852102)
set p=Player(6)
set u=CreateUnit(p,'n004',87.7,1943.5,271.206)
set p=Player(7)
set u=CreateUnit(p,'n004',185.1,2081.9,203.978)
set p=Player(8)
set u=CreateUnit(p,'n004',216.1,1944.8,64.799)
set p=Player(9)
set u=CreateUnit(p,'n004',-195.2,1820.5,228.16)
set p=Player(10)
set u=CreateUnit(p,'n004',-63.,1819.1,192.322)
set p=Player(11)
set u=CreateUnit(p,'n00Y',-1718.4,-2074.7,262.847)
call IssueImmediateOrderById(u,852102)
set u=CreateUnit(p,'n00X',-2944.8,-3523.5,90.58)
set i=0
set i=0
loop
exitwhen(i>1)
set udg_booleans01[i]=false
set udg_integers02[i]=0
set udg_integers03[i]=0
set udg_integers05[i]=0
set udg_integers06[i]=0
set udg_dialogs01[i]=DialogCreate()
set udg_integers12[i]=0
set udg_integers13[i]=0
set udg_integers14[i]=0
set udg_integers15[i]=0
set udg_integers16[i]=0
set udg_integers17[i]=0
set udg_integers18[i]=0
set udg_integers19[i]=0
set udg_integers20[i]=0
set udg_integers21[i]=0
set udg_integers22[i]=0
set udg_integers23[i]=0
set udg_integers24[i]=0
set udg_integers25[i]=0
set udg_integers26[i]=0
set udg_integers27[i]=0
set udg_integers28[i]=0
set udg_integers29[i]=0
set udg_integers30[i]=0
set udg_integers31[i]=0
set udg_integers32[i]=0
set udg_reals01[i]=0
set udg_integers33[i]=0
set udg_integers34[i]=0
set udg_integers35[i]=0
set udg_integers37[i]=0
set udg_integers38[i]=0
set udg_reals03[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>12)
set udg_integers07[i]=0
set udg_integers36[i]=0
set udg_integers39[i]=0
set udg_integers40[i]=0
set udg_integers41[i]=0
set udg_integers42[i]=0
set udg_reals02[i]=0
set udg_integers43[i]=0
set udg_integers44[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>5)
set udg_integers08[i]=0
set udg_integers11[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>2)
set udg_integers09[i]=0
set udg_integers10[i]=0
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set udg_dialog02=DialogCreate()
set udg_dialog03=DialogCreate()
call TriggerRegisterTimerEventSingle(udg_trigger01,10.)
call TriggerAddAction(udg_trigger01,function Trig_slot_playing_Actions)
call DisableTrigger(udg_trigger02)
call TriggerRegisterTimerEventPeriodic(udg_trigger02,15.)
call TriggerAddAction(udg_trigger02,function Trig_Vending_Actions)
call DisableTrigger(udg_trigger03)
call TriggerRegisterTimerEventPeriodic(udg_trigger03,18.)
call TriggerAddAction(udg_trigger03,function Trig_Vending_2_Actions)
call DisableTrigger(udg_trigger04)
call TriggerRegisterTimerEventPeriodic(udg_trigger04,.03)
call TriggerAddAction(udg_trigger04,function Trig_grobakvendinger_Actions)
call DisableTrigger(udg_trigger05)
call TriggerRegisterTimerEventSingle(udg_trigger05,1.)
call TriggerAddAction(udg_trigger05,function Trig_waktu_10_menit_Actions)
call DisableTrigger(udg_trigger06)
call TriggerRegisterTimerEventSingle(udg_trigger06,1.)
call TriggerAddAction(udg_trigger06,function Trig_waktu_20_menit_Actions)
call DisableTrigger(udg_trigger07)
call TriggerRegisterTimerEventSingle(udg_trigger07,1.)
call TriggerAddAction(udg_trigger07,function Trig_waktu_30_menit_Actions)
call DisableTrigger(udg_trigger08)
call TriggerRegisterTimerEventSingle(udg_trigger08,2.)
call TriggerAddCondition(udg_trigger08,Condition(function Trig_Team1_Win_Conditions))
call TriggerAddAction(udg_trigger08,function Trig_Team1_Win_Actions)
call TriggerRegisterUnitEvent(udg_trigger09,udg_unit32,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger09,function Trig_pick_Actions)
call TriggerRegisterUnitEvent(udg_trigger10,udg_unit31,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger10,function Trig_pick_Copy_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger11,5.)
call TriggerAddAction(udg_trigger11,function Trig_Falcon_Move_Actions)
call TriggerRegisterUnitEvent(udg_trigger12,udg_unit37,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger12,function Trig_seller_Actions)
call TriggerRegisterUnitEvent(udg_trigger13,udg_unit38,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger13,function Trig_ass_shop_Actions)
call TriggerRegisterUnitEvent(udg_trigger14,udg_unit40,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger14,function Trig_wiz_shop_Actions)
call TriggerRegisterUnitEvent(udg_trigger15,udg_unit39,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger15,function Trig_bs_shop_Actions)
call TriggerRegisterUnitEvent(udg_trigger16,udg_unit41,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger16,function Trig_priest_shop_Actions)
call TriggerRegisterUnitEvent(udg_trigger17,udg_unit42,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger17,function Trig_hunter_shop_Actions)
call TriggerRegisterUnitEvent(udg_trigger18,udg_unit35,EVENT_UNIT_SELECTED)
call TriggerAddAction(udg_trigger18,function Trig_pick_Copy_Copy_Actions)
call TriggerAddAction(udg_trigger19,function Trig_quest_Actions)
call TriggerAddAction(udg_trigger20,function Trig_visibility_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger21,4.)
call TriggerAddAction(udg_trigger21,function Trig_Ai_Stun_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger22,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger22,function Trig_botusepot_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger23,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger23,function Trig_attacked_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger24,udg_rect38)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_Pilih_Hero_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_Pilih_Hero_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger25,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger25,function Trig_hero_die_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger26,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_Unit_Die_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_Unit_Die_Actions)
call TriggerRegisterTimerEventPeriodic(udg_trigger27,5.)
call TriggerAddAction(udg_trigger27,function Trig_playerset_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger28,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger28,Condition(function Trig_No_ally_attack_1_Conditions))
call TriggerAddAction(udg_trigger28,function Trig_No_ally_attack_1_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger29,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_No_ally_attack_2_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_No_ally_attack_2_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger30,10.)
call TriggerAddAction(udg_trigger30,function Trig_repick_mode_on_Actions)
call DisableTrigger(udg_trigger31)
call TriggerRegisterPlayerChatEvent(udg_trigger31,Player(0),"-repick",true)
call TriggerAddAction(udg_trigger31,function Trig_repick_Actions)
call DisableTrigger(udg_trigger32)
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(1),"-repick",true)
call TriggerAddAction(udg_trigger32,function Trig_repick_2_Actions)
call DisableTrigger(udg_trigger33)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(2),"-repick",true)
call TriggerAddAction(udg_trigger33,function Trig_repick_3_Actions)
call DisableTrigger(udg_trigger34)
call TriggerRegisterPlayerChatEvent(udg_trigger34,Player(3),"-repick",true)
call TriggerAddAction(udg_trigger34,function Trig_repick_4_Actions)
call DisableTrigger(udg_trigger35)
call TriggerRegisterPlayerChatEvent(udg_trigger35,Player(4),"-repick",true)
call TriggerAddAction(udg_trigger35,function Trig_repick_5_Actions)
call DisableTrigger(udg_trigger36)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(5),"-repick",true)
call TriggerAddAction(udg_trigger36,function Trig_repick_6_Actions)
call DisableTrigger(udg_trigger37)
call TriggerRegisterPlayerChatEvent(udg_trigger37,Player(6),"-repick",true)
call TriggerAddAction(udg_trigger37,function Trig_repick_7_Actions)
call DisableTrigger(udg_trigger38)
call TriggerRegisterPlayerChatEvent(udg_trigger38,Player(7),"-repick",true)
call TriggerAddAction(udg_trigger38,function Trig_repick_8_Actions)
call DisableTrigger(udg_trigger39)
call TriggerRegisterPlayerChatEvent(udg_trigger39,Player(8),"-repick",true)
call TriggerAddAction(udg_trigger39,function Trig_repick_9_Actions)
call DisableTrigger(udg_trigger40)
call TriggerRegisterPlayerChatEvent(udg_trigger40,Player(9),"-repick",true)
call TriggerAddAction(udg_trigger40,function Trig_repick_10_Actions)
call DisableTrigger(udg_trigger41)
call TriggerRegisterPlayerChatEvent(udg_trigger41,Player(10),"-repick",true)
call TriggerAddAction(udg_trigger41,function Trig_repick_11_Actions)
call DisableTrigger(udg_trigger42)
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(11),"-repick",true)
call TriggerAddAction(udg_trigger42,function Trig_repick_12_Actions)
call TriggerRegisterTimerEventSingle(udg_trigger43,.01)
call TriggerAddAction(udg_trigger43,function Trig_Welcome_Actions)
call TriggerRegisterDialogEvent(udg_trigger44,udg_dialogs01[1])
call TriggerAddAction(udg_trigger44,function Trig_Save_Vote_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger45,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger45,Condition(function Trig_Act_Dead_Conditions))
call TriggerAddAction(udg_trigger45,function Trig_Act_Dead_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger46,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(udg_trigger46,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddAction(udg_trigger46,function Trig_Act_Dead_End_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger47,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger47,Condition(function Trig_ruwach_Conditions))
call TriggerAddAction(udg_trigger47,function Trig_ruwach_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger48,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_Steel_Body_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_Steel_Body_Actions)
call DisableTrigger(udg_trigger49)
call TriggerAddAction(udg_trigger49,function Trig_Steelbody_Time_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger50,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_spirit_explosion_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_spirit_explosion_Actions)
call DisableTrigger(udg_trigger51)
call TriggerAddAction(udg_trigger51,function Trig_Spirit_Explosion_time_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger52,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger52,Condition(function Trig__Magnificat_Conditions))
call TriggerAddAction(udg_trigger52,function Trig__Magnificat_Actions)
call DisableTrigger(udg_trigger53)
call TriggerAddAction(udg_trigger53,function Trig_Magnificat_Time_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger54,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger54,Condition(function Trig_Kyre_Conditions))
call TriggerAddAction(udg_trigger54,function Trig_Kyre_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger55,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger55,Condition(function Trig_Agi_Conditions))
call TriggerAddAction(udg_trigger55,function Trig_Agi_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger56,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger56,Condition(function Trig_Blessing_Conditions))
call TriggerAddAction(udg_trigger56,function Trig_Blessing_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger57,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger57,Condition(function Trig_blitz_Conditions))
call TriggerAddAction(udg_trigger57,function Trig_blitz_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger58,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger58,Condition(function Trig__bash_unit_Conditions))
call TriggerAddAction(udg_trigger58,function Trig__bash_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger59,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger59,Condition(function Trig_lightnening_bolt_Conditions))
call TriggerAddAction(udg_trigger59,function Trig_lightnening_bolt_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger60,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger60,Condition(function Trig_double_strafe_unit_Conditions))
call TriggerAddAction(udg_trigger60,function Trig_double_strafe_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger61,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger61,Condition(function Trig_backstab_Conditions))
call TriggerAddAction(udg_trigger61,function Trig_backstab_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger62,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger62,Condition(function Trig_backstab_unit_Conditions))
call TriggerAddAction(udg_trigger62,function Trig_backstab_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger63,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger63,Condition(function Trig_Magnum_Break_Conditions))
call TriggerAddAction(udg_trigger63,function Trig_Magnum_Break_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger64,Condition(function Trig_sacrifie_Conditions))
call TriggerAddAction(udg_trigger64,function Trig_sacrifie_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger65,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger65,Condition(function Trig_auto_guard_Conditions))
call TriggerAddAction(udg_trigger65,function Trig_auto_guard_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger66,Condition(function Trig_auto_guard_2_Conditions))
call TriggerAddAction(udg_trigger66,function Trig_auto_guard_2_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger67,Condition(function Trig_auto_guard_3_Conditions))
call TriggerAddAction(udg_trigger67,function Trig_auto_guard_3_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger68,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger68,Condition(function Trig_auto_guard_4_Conditions))
call TriggerAddAction(udg_trigger68,function Trig_auto_guard_4_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger69,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger69,Condition(function Trig_auto_guard_5_Conditions))
call TriggerAddAction(udg_trigger69,function Trig_auto_guard_5_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger70,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger70,Condition(function Trig_auto_guard_6_Conditions))
call TriggerAddAction(udg_trigger70,function Trig_auto_guard_6_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger71,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger71,Condition(function Trig_sonic_blow_unit_Conditions))
call TriggerAddAction(udg_trigger71,function Trig_sonic_blow_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger72,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger72,Condition(function Trig_gerobak_Conditions))
call TriggerAddAction(udg_trigger72,function Trig_gerobak_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger73,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger73,Condition(function Trig_gerobak_2_Conditions))
call TriggerAddAction(udg_trigger73,function Trig_gerobak_2_Actions)
call DisableTrigger(udg_trigger74)
call TriggerRegisterTimerEventPeriodic(udg_trigger74,.03)
call TriggerAddAction(udg_trigger74,function Trig_gerobak_move_Actions)
call DisableTrigger(udg_trigger75)
call TriggerRegisterTimerEventPeriodic(udg_trigger75,.03)
call TriggerAddAction(udg_trigger75,function Trig_gerobak_move_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger76,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_crep_otomatis_bash_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_crep_otomatis_bash_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger79,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_arrow_shower_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_arrow_shower_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger80,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger80,Condition(function Trig_trap_unit_Conditions))
call TriggerAddAction(udg_trigger80,function Trig_trap_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger81,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_trap_hero_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_trap_hero_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger82,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger82,Condition(function Trig_trap2_Conditions))
call TriggerAddAction(udg_trigger82,function Trig_trap2_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger83,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger83,Condition(function Trig_quaqmire_Conditions))
call TriggerAddAction(udg_trigger83,function Trig_quaqmire_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger84,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_SG_unit_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_SG_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger85,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_LOV_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_LOV_Actions)
call TriggerAddAction(udg_trigger86,function Trig_ent_buff_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger87,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger87,function Trig_keracunan_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger88,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger88,Condition(function Trig_Venom_Dust_Conditions))
call TriggerAddAction(udg_trigger88,function Trig_Venom_Dust_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger89,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger89,Condition(function Trig_double_attack_Conditions))
call TriggerAddAction(udg_trigger89,function Trig_double_attack_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger90,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger90,Condition(function Trig_asura_strike_unit_Conditions))
call TriggerAddAction(udg_trigger90,function Trig_asura_strike_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger91,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger91,Condition(function Trig_asura_strike_Conditions))
call TriggerAddAction(udg_trigger91,function Trig_asura_strike_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger92,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_body_relo_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_body_relo_Actions)
call DisableTrigger(udg_trigger93)
call TriggerRegisterTimerEventPeriodic(udg_trigger93,.03)
call TriggerAddAction(udg_trigger93,function Trig_bodyrelo_move_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger94,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger94,Condition(function Trig_Finger_Offensive_Conditions))
call TriggerAddAction(udg_trigger94,function Trig_Finger_Offensive_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger95,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger95,Condition(function Trig_Finger_Offensive_unit_Conditions))
call TriggerAddAction(udg_trigger95,function Trig_Finger_Offensive_unit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger96,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger96,Condition(function Trig_Triple_Attack_Conditions))
call TriggerAddAction(udg_trigger96,function Trig_Triple_Attack_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger97,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger97,Condition(function Trig_Double_Attack_Conditions))
call TriggerAddAction(udg_trigger97,function Trig_Double_Attack_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger98,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger98,Condition(function Trig_Way_of_Dragonm_Conditions))
call TriggerAddAction(udg_trigger98,function Trig_Way_of_Dragonm_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger99,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger99,Condition(function Trig_hiding_Conditions))
call TriggerAddAction(udg_trigger99,function Trig_hiding_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger100,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger100,Condition(function Trig_Poison_React_Conditions))
call TriggerAddAction(udg_trigger100,function Trig_Poison_React_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger101,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_Intimidation_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_Intimidation_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger102,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger102,Condition(function Trig_stripweapon_Conditions))
call TriggerAddAction(udg_trigger102,function Trig_stripweapon_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger103,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger103,Condition(function Trig_striparmor_Conditions))
call TriggerAddAction(udg_trigger103,function Trig_striparmor_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger104,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger104,Condition(function Trig_summon_flora_Conditions))
call TriggerAddAction(udg_trigger104,function Trig_summon_flora_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger105,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger105,Condition(function Trig_acid_terror_Conditions))
call TriggerAddAction(udg_trigger105,function Trig_acid_terror_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger106,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_chemical_protection_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_chemical_protection_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger107,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger107,Condition(function Trig_fire_trap_Conditions))
call TriggerAddAction(udg_trigger107,function Trig_fire_trap_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger108,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger108,Condition(function Trig_GTB_iimpale_Conditions))
call TriggerAddAction(udg_trigger108,function Trig_GTB_iimpale_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger109,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger109,Condition(function Trig_Bowling_Bash_Conditions))
call TriggerAddAction(udg_trigger109,function Trig_Bowling_Bash_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger110,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger110,Condition(function Trig_Emergency_Calls_Conditions))
call TriggerAddAction(udg_trigger110,function Trig_Emergency_Calls_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger111,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger111,Condition(function Trig_holy_cross_Conditions))
call TriggerAddAction(udg_trigger111,function Trig_holy_cross_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger112,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger112,Condition(function Trig_Storm_Gust_Conditions))
call TriggerAddAction(udg_trigger112,function Trig_Storm_Gust_Actions)
call DisableTrigger(udg_trigger113)
call TriggerRegisterTimerEventPeriodic(udg_trigger113,.1)
call TriggerAddAction(udg_trigger113,function Trig_SG_Effect1_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger114,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger114,Condition(function Trig_GC_Conditions))
call TriggerAddAction(udg_trigger114,function Trig_GC_Actions)
call DisableTrigger(udg_trigger115)
call TriggerRegisterTimerEventPeriodic(udg_trigger115,.1)
call TriggerAddAction(udg_trigger115,function Trig_GC_Eff_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger116,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger116,Condition(function Trig_Quicken_Conditions))
call TriggerAddAction(udg_trigger116,function Trig_Quicken_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger117,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger117,Condition(function Trig_AdrenalineRush_Conditions))
call TriggerAddAction(udg_trigger117,function Trig_AdrenalineRush_Actions)
call DisableTrigger(udg_trigger118)
call TriggerAddAction(udg_trigger118,function Trig_QuickenEffect_Actions)
call DisableTrigger(udg_trigger119)
call TriggerAddAction(udg_trigger119,function Trig_AdrenalineEffect_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger120,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger120,Condition(function Trig_Jupitel_Thunder_Conditions))
call TriggerAddAction(udg_trigger120,function Trig_Jupitel_Thunder_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger121,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger121,Condition(function Trig_hammerfall_Conditions))
call TriggerAddAction(udg_trigger121,function Trig_hammerfall_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(0),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(1),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(2),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(3),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(4),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(5),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(6),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(7),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(8),"swt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger122,Player(9),"swt",true)
call TriggerAddAction(udg_trigger122,function Trig_swt_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger123,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger123,Condition(function Trig_sonic_blow_Conditions))
call TriggerAddAction(udg_trigger123,function Trig_sonic_blow_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger124,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger124,Condition(function Trig_Bash_Conditions))
call TriggerAddAction(udg_trigger124,function Trig_Bash_Actions)
call DisableTrigger(udg_trigger125)
call TriggerRegisterTimerEventPeriodic(udg_trigger125,.2)
call TriggerAddAction(udg_trigger125,function Trig_Blow_Actions)
call DisableTrigger(udg_trigger126)
call TriggerRegisterTimerEventPeriodic(udg_trigger126,.2)
call TriggerAddAction(udg_trigger126,function Trig_Blow_2_Actions)
call DisableTrigger(udg_trigger127)
call TriggerRegisterTimerEventPeriodic(udg_trigger127,.2)
call TriggerAddAction(udg_trigger127,function Trig_Blow_3_Actions)
call DisableTrigger(udg_trigger128)
call TriggerRegisterTimerEventPeriodic(udg_trigger128,.2)
call TriggerAddAction(udg_trigger128,function Trig_Blow_4_Actions)
call DisableTrigger(udg_trigger129)
call TriggerRegisterTimerEventPeriodic(udg_trigger129,.2)
call TriggerAddAction(udg_trigger129,function Trig_Blow_5_Actions)
call DisableTrigger(udg_trigger130)
call TriggerRegisterTimerEventPeriodic(udg_trigger130,.2)
call TriggerAddAction(udg_trigger130,function Trig_Blow_6_Actions)
call DisableTrigger(udg_trigger131)
call TriggerRegisterTimerEventPeriodic(udg_trigger131,.2)
call TriggerAddAction(udg_trigger131,function Trig_Blow_8_Actions)
call DisableTrigger(udg_trigger132)
call TriggerRegisterTimerEventPeriodic(udg_trigger132,.2)
call TriggerAddAction(udg_trigger132,function Trig_Blow_7_Actions)
call DisableTrigger(udg_trigger133)
call TriggerRegisterTimerEventPeriodic(udg_trigger133,.2)
call TriggerAddAction(udg_trigger133,function Trig_Blow_10_Actions)
call DisableTrigger(udg_trigger134)
call TriggerRegisterTimerEventPeriodic(udg_trigger134,.2)
call TriggerAddAction(udg_trigger134,function Trig_Blow_9_Actions)
call DisableTrigger(udg_trigger135)
call TriggerRegisterTimerEventPeriodic(udg_trigger135,.2)
call TriggerAddAction(udg_trigger135,function Trig_Blow_11_Actions)
call DisableTrigger(udg_trigger136)
call TriggerRegisterTimerEventPeriodic(udg_trigger136,.2)
call TriggerAddAction(udg_trigger136,function Trig_Blow_12_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger137,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger137,Condition(function Trig_LOVunit_Conditions))
call TriggerAddAction(udg_trigger137,function Trig_LOVunit_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger138,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger138,Condition(function Trig_JT_Conditions))
call TriggerAddAction(udg_trigger138,function Trig_JT_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger139,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger139,Condition(function Trig_echant_Poison_Copy_Conditions))
call TriggerAddAction(udg_trigger139,function Trig_echant_Poison_Copy_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger140,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger140,Condition(function Trig_Double_Strafe_Conditions))
call TriggerAddAction(udg_trigger140,function Trig_Double_Strafe_Actions)
call DisableTrigger(udg_trigger141)
call TriggerRegisterTimerEventPeriodic(udg_trigger141,.03)
call TriggerAddAction(udg_trigger141,function Trig_FalconBlitz_Actions)
call DisableTrigger(udg_trigger142)
call TriggerRegisterTimerEventPeriodic(udg_trigger142,.03)
call TriggerAddAction(udg_trigger142,function Trig_FalconBlitz2_Actions)
call DisableTrigger(udg_trigger143)
call TriggerRegisterTimerEventPeriodic(udg_trigger143,.03)
call TriggerAddAction(udg_trigger143,function Trig_FalconBlitz3_Actions)
call DisableTrigger(udg_trigger144)
call TriggerRegisterTimerEventPeriodic(udg_trigger144,.03)
call TriggerAddAction(udg_trigger144,function Trig_FalconBlitz4_Actions)
call DisableTrigger(udg_trigger145)
call TriggerRegisterTimerEventPeriodic(udg_trigger145,.03)
call TriggerAddAction(udg_trigger145,function Trig_FalconBlitz5_Actions)
call DisableTrigger(udg_trigger146)
call TriggerRegisterTimerEventPeriodic(udg_trigger146,.03)
call TriggerAddAction(udg_trigger146,function Trig_FalconBlitz6_Actions)
call DisableTrigger(udg_trigger147)
call TriggerRegisterTimerEventPeriodic(udg_trigger147,.03)
call TriggerAddAction(udg_trigger147,function Trig_FalconBlitz7_Actions)
call DisableTrigger(udg_trigger148)
call TriggerRegisterTimerEventPeriodic(udg_trigger148,.03)
call TriggerAddAction(udg_trigger148,function Trig_FalconBlitz8_Actions)
call DisableTrigger(udg_trigger149)
call TriggerRegisterTimerEventPeriodic(udg_trigger149,.03)
call TriggerAddAction(udg_trigger149,function Trig_FalconBlitz9_Actions)
call DisableTrigger(udg_trigger150)
call TriggerRegisterTimerEventPeriodic(udg_trigger150,.03)
call TriggerAddAction(udg_trigger150,function Trig_FalconBlitz10_Actions)
call DisableTrigger(udg_trigger151)
call TriggerRegisterTimerEventPeriodic(udg_trigger151,.03)
call TriggerAddAction(udg_trigger151,function Trig_FalconBlitz11_Actions)
call DisableTrigger(udg_trigger152)
call TriggerRegisterTimerEventPeriodic(udg_trigger152,.03)
call TriggerAddAction(udg_trigger152,function Trig_FalconBlitz12_Actions)
call DisableTrigger(udg_trigger154)
call TriggerAddAction(udg_trigger154,function Trig_Map_Startup_Actions)
call DisableTrigger(udg_trigger155)
call TriggerAddAction(udg_trigger155,function Trig_TeamSetup_Copy_Actions)
call DisableTrigger(udg_trigger156)
call TriggerRegisterTimerEventPeriodic(udg_trigger156,1.)
call TriggerAddAction(udg_trigger156,function Trig_Leaderboard_Actions)
call DisableTrigger(udg_trigger157)
call TriggerRegisterAnyUnitEventBJ(udg_trigger157,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger157,Condition(function Trig_GameEndByLives_Copy_Conditions))
call TriggerAddAction(udg_trigger157,function Trig_GameEndByLives_Copy_Actions)
call DisableTrigger(udg_trigger158)
call TriggerRegisterAnyUnitEventBJ(udg_trigger158,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger158,Condition(function Trig_DeathRemain_Copy_Conditions))
call TriggerAddAction(udg_trigger158,function Trig_DeathRemain_Copy_Actions)
call DisableTrigger(udg_trigger159)
call TriggerAddAction(udg_trigger159,function Trig_Team1vict_Actions)
call DisableTrigger(udg_trigger160)
call TriggerAddAction(udg_trigger160,function Trig_Team2vict_Actions)
call DisableTrigger(udg_trigger161)
call TriggerAddAction(udg_trigger161,function Trig_Team3vict_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger163,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddAction(udg_trigger163,function Trig_butterflu_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger164,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(udg_trigger164,function Trig_combo_item_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger165,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger165,Condition(function Trig_Combine_Items_Conditions))
call TriggerAddAction(udg_trigger165,function Trig_Combine_Items_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger166,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger166,Condition(function Trig_First_Blood_Conditions))
call TriggerAddAction(udg_trigger166,function Trig_First_Blood_Actions)
call DisableTrigger(udg_trigger167)
call TriggerRegisterAnyUnitEventBJ(udg_trigger167,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger167,Condition(function Trig_boss_kill_Conditions))
call TriggerAddAction(udg_trigger167,function Trig_boss_kill_Actions)
call DisableTrigger(udg_trigger168)
call TriggerRegisterTimerEventPeriodic(udg_trigger168,2)
call TriggerAddCondition(udg_trigger168,Condition(function Trig_Player_1_Conditions))
call TriggerAddAction(udg_trigger168,function Trig_Player_1_Actions)
call DisableTrigger(udg_trigger169)
call TriggerRegisterTimerEventPeriodic(udg_trigger169,2)
call TriggerAddCondition(udg_trigger169,Condition(function Trig_Player_2_Conditions))
call TriggerAddAction(udg_trigger169,function Trig_Player_2_Actions)
call DisableTrigger(udg_trigger170)
call TriggerRegisterTimerEventPeriodic(udg_trigger170,2)
call TriggerAddCondition(udg_trigger170,Condition(function Trig_Player_3_Conditions))
call TriggerAddAction(udg_trigger170,function Trig_Player_3_Actions)
call DisableTrigger(udg_trigger171)
call TriggerRegisterTimerEventPeriodic(udg_trigger171,2)
call TriggerAddCondition(udg_trigger171,Condition(function Trig_Player_4_Conditions))
call TriggerAddAction(udg_trigger171,function Trig_Player_4_Actions)
call DisableTrigger(udg_trigger172)
call TriggerRegisterTimerEventPeriodic(udg_trigger172,2)
call TriggerAddCondition(udg_trigger172,Condition(function Trig_Player_5_Conditions))
call TriggerAddAction(udg_trigger172,function Trig_Player_5_Actions)
call DisableTrigger(udg_trigger174)
call TriggerRegisterTimerEventPeriodic(udg_trigger174,2)
call TriggerAddCondition(udg_trigger174,Condition(function Trig_Player_7_Conditions))
call TriggerAddAction(udg_trigger174,function Trig_Player_7_Actions)
call DisableTrigger(udg_trigger175)
call TriggerRegisterTimerEventPeriodic(udg_trigger175,2)
call TriggerAddCondition(udg_trigger175,Condition(function Trig_Player_8_Conditions))
call TriggerAddAction(udg_trigger175,function Trig_Player_8_Actions)
call DisableTrigger(udg_trigger176)
call TriggerRegisterTimerEventPeriodic(udg_trigger176,2)
call TriggerAddCondition(udg_trigger176,Condition(function Trig_Player_9_Conditions))
call TriggerAddAction(udg_trigger176,function Trig_Player_9_Actions)
call DisableTrigger(udg_trigger177)
call TriggerRegisterTimerEventPeriodic(udg_trigger177,2)
call TriggerAddCondition(udg_trigger177,Condition(function Trig_Player_10_Conditions))
call TriggerAddAction(udg_trigger177,function Trig_Player_10_Actions)
call DisableTrigger(udg_trigger178)
call TriggerRegisterTimerEventPeriodic(udg_trigger178,2)
call TriggerAddCondition(udg_trigger178,Condition(function Trig_Player_11_Conditions))
call TriggerAddAction(udg_trigger178,function Trig_Player_11_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger180,udg_rect22)
call TriggerAddCondition(udg_trigger180,Condition(function Trig_region_25_Conditions))
call TriggerAddAction(udg_trigger180,function Trig_region_25_Actions)
call DisableTrigger(udg_trigger181)
call TriggerRegisterEnterRectSimple(udg_trigger181,udg_rect15)
call TriggerAddCondition(udg_trigger181,Condition(function Trig_region1_Conditions))
call TriggerAddAction(udg_trigger181,function Trig_region1_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger182,udg_rect32)
call TriggerRegisterEnterRectSimple(udg_trigger182,udg_rect74)
call TriggerRegisterEnterRectSimple(udg_trigger182,udg_rect39)
call TriggerAddCondition(udg_trigger182,Condition(function Trig_region7_Conditions))
call TriggerAddAction(udg_trigger182,function Trig_region7_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger183,udg_rect17)
call TriggerAddCondition(udg_trigger183,Condition(function Trig_region1_Copy_Conditions))
call TriggerAddAction(udg_trigger183,function Trig_region1_Copy_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger184,udg_rect37)
call TriggerAddCondition(udg_trigger184,Condition(function Trig_region6_Conditions))
call TriggerAddAction(udg_trigger184,function Trig_region6_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger185,udg_rect19)
call TriggerAddCondition(udg_trigger185,Condition(function Trig_region2_Conditions))
call TriggerAddAction(udg_trigger185,function Trig_region2_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger186,udg_rect21)
call TriggerAddCondition(udg_trigger186,Condition(function Trig_region22_Conditions))
call TriggerAddAction(udg_trigger186,function Trig_region22_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger187,udg_rect23)
call TriggerAddCondition(udg_trigger187,Condition(function Trig_region3_Conditions))
call TriggerAddAction(udg_trigger187,function Trig_region3_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger188,udg_rect25)
call TriggerAddCondition(udg_trigger188,Condition(function Trig_region3_Copy_Conditions))
call TriggerAddAction(udg_trigger188,function Trig_region3_Copy_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger189,udg_rect33)
call TriggerAddCondition(udg_trigger189,Condition(function Trig_region4_Conditions))
call TriggerAddAction(udg_trigger189,function Trig_region4_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger190,udg_rect36)
call TriggerAddCondition(udg_trigger190,Condition(function Trig_region5_Conditions))
call TriggerAddAction(udg_trigger190,function Trig_region5_Actions)
call DisableTrigger(udg_trigger191)
call TriggerRegisterEnterRectSimple(udg_trigger191,udg_rect76)
call TriggerAddCondition(udg_trigger191,Condition(function Trig_region10_Conditions))
call TriggerAddAction(udg_trigger191,function Trig_region10_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger192,udg_rect73)
call TriggerAddCondition(udg_trigger192,Condition(function Trig_region10_Copy_Conditions))
call TriggerAddAction(udg_trigger192,function Trig_region10_Copy_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger193,udg_rect03)
call TriggerRegisterEnterRectSimple(udg_trigger193,udg_rect39)
call TriggerAddCondition(udg_trigger193,Condition(function Trig_region8_Conditions))
call TriggerAddAction(udg_trigger193,function Trig_region8_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect34)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect26)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect22)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect72)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect30)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect31)
call TriggerRegisterEnterRectSimple(udg_trigger194,udg_rect40)
call TriggerAddAction(udg_trigger194,function Trig_region9_Actions)
call TriggerRegisterPlayerChatEvent(udg_trigger195,Player(0),"-unstuck",true)
call TriggerAddAction(udg_trigger195,function Trig_unstuckP1_Actions)
call TriggerRegisterAnyUnitEventBJ(udg_trigger196,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger196,Condition(function Trig_Emper_Houstile_Conditions))
call TriggerAddAction(udg_trigger196,function Trig_Emper_Houstile_Actions)
call DisableTrigger(udg_trigger197)
call TriggerRegisterTimerEventPeriodic(udg_trigger197,30.)
call TriggerAddAction(udg_trigger197,function Trig_P6Knightattack_Actions)
call DisableTrigger(udg_trigger198)
call TriggerRegisterTimerEventPeriodic(udg_trigger198,65.)
call TriggerAddAction(udg_trigger198,function Trig_P6crusaderattack_Actions)
call DisableTrigger(udg_trigger199)
call TriggerRegisterTimerEventPeriodic(udg_trigger199,40.)
call TriggerAddAction(udg_trigger199,function Trig_P6assattack_Actions)
call DisableTrigger(udg_trigger200)
call TriggerRegisterTimerEventPeriodic(udg_trigger200,32.)
call TriggerAddAction(udg_trigger200,function Trig_P6BS_Actions)
call DisableTrigger(udg_trigger201)
call TriggerRegisterTimerEventPeriodic(udg_trigger201,40.)
call TriggerAddAction(udg_trigger201,function Trig_P12assattack_Actions)
call DisableTrigger(udg_trigger202)
call TriggerRegisterTimerEventPeriodic(udg_trigger202,32.)
call TriggerAddAction(udg_trigger202,function Trig_P12BS_Actions)
call DisableTrigger(udg_trigger203)
call TriggerRegisterTimerEventPeriodic(udg_trigger203,30.)
call TriggerAddAction(udg_trigger203,function Trig_P12Knightattack_Actions)
call DisableTrigger(udg_trigger204)
call TriggerRegisterTimerEventPeriodic(udg_trigger204,65.)
call TriggerAddAction(udg_trigger204,function Trig_P12crusaderattack_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger205,udg_rect18)
call TriggerAddAction(udg_trigger205,function Trig_region021_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger206,udg_rect60)
call TriggerAddAction(udg_trigger206,function Trig_region064_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger207,udg_rect46)
call TriggerAddCondition(udg_trigger207,Condition(function Trig_region049_Conditions))
call TriggerAddAction(udg_trigger207,function Trig_region049_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger208,udg_rect14)
call TriggerAddCondition(udg_trigger208,Condition(function Trig_region017_Conditions))
call TriggerAddAction(udg_trigger208,function Trig_region017_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger209,udg_rect13)
call TriggerAddCondition(udg_trigger209,Condition(function Trig_region017bspawn_Conditions))
call TriggerAddAction(udg_trigger209,function Trig_region017bspawn_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger210,udg_rect47)
call TriggerAddCondition(udg_trigger210,Condition(function Trig_region050_Conditions))
call TriggerAddAction(udg_trigger210,function Trig_region050_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger211,udg_rect58)
call TriggerAddCondition(udg_trigger211,Condition(function Trig_region062_Conditions))
call TriggerAddAction(udg_trigger211,function Trig_region062_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger212,udg_rect59)
call TriggerAddCondition(udg_trigger212,Condition(function Trig_region063_Conditions))
call TriggerAddAction(udg_trigger212,function Trig_region063_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger213,udg_rect22)
call TriggerAddCondition(udg_trigger213,Condition(function Trig_region025_Conditions))
call TriggerAddAction(udg_trigger213,function Trig_region025_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger214,udg_rect56)
call TriggerAddCondition(udg_trigger214,Condition(function Trig_region059_Conditions))
call TriggerAddAction(udg_trigger214,function Trig_region059_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger215,udg_rect26)
call TriggerAddCondition(udg_trigger215,Condition(function Trig_region029_Conditions))
call TriggerAddAction(udg_trigger215,function Trig_region029_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger216,udg_rect48)
call TriggerAddCondition(udg_trigger216,Condition(function Trig_region051_Conditions))
call TriggerAddAction(udg_trigger216,function Trig_region051_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger217,udg_rect49)
call TriggerAddCondition(udg_trigger217,Condition(function Trig_region052_Conditions))
call TriggerAddAction(udg_trigger217,function Trig_region052_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger218,udg_rect50)
call TriggerAddCondition(udg_trigger218,Condition(function Trig_region053_Conditions))
call TriggerAddAction(udg_trigger218,function Trig_region053_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger219,udg_rect62)
call TriggerAddAction(udg_trigger219,function Trig_region066_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger220,udg_rect63)
call TriggerAddAction(udg_trigger220,function Trig_region067_Actions)
call TriggerRegisterLeaveRectSimple(udg_trigger221,udg_rect51)
call TriggerAddCondition(udg_trigger221,Condition(function Trig_Leaves_Conditions))
call TriggerAddAction(udg_trigger221,function Trig_Leaves_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger222,udg_rect42)
call TriggerAddCondition(udg_trigger222,Condition(function Trig_Hire_unit_Conditions))
call TriggerAddAction(udg_trigger222,function Trig_Hire_unit_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger223,udg_rect55)
call TriggerAddCondition(udg_trigger223,Condition(function Trig_Hire_unit2_Conditions))
call TriggerAddAction(udg_trigger223,function Trig_Hire_unit2_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger224,udg_rect32)
call TriggerAddAction(udg_trigger224,function Trig_reg_35_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger225,udg_rect34)
call TriggerRegisterEnterRectSimple(udg_trigger225,udg_rect74)
call TriggerAddAction(udg_trigger225,function Trig_reg_37_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger226,udg_rect33)
call TriggerRegisterEnterRectSimple(udg_trigger226,udg_rect73)
call TriggerAddAction(udg_trigger226,function Trig_reg_36_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger227,udg_rect78)
call TriggerAddAction(udg_trigger227,function Trig_reg_tadashi_Actions)
call TriggerRegisterEnterRectSimple(udg_trigger228,udg_rect87)
call TriggerAddCondition(udg_trigger228,Condition(function Trig_reg_JR_Conditions))
call TriggerAddAction(udg_trigger228,function Trig_reg_JR_Actions)
call DisableTrigger(udg_trigger229)
call TriggerRegisterTimerEventPeriodic(udg_trigger229,.5)
call TriggerAddAction(udg_trigger229,function Trig_tadashi_attack_Actions)
call DisableTrigger(udg_trigger230)
call TriggerRegisterTimerEventPeriodic(udg_trigger230,2.)
call TriggerAddAction(udg_trigger230,function Trig_JR_attak_Actions)
call ConditionalTriggerExecute(udg_trigger19)
call ConditionalTriggerExecute(udg_trigger20)
endfunction
function InitTrig_init takes nothing returns nothing
set udg_camerasetup01 = CreateCameraSetup()
set udg_trigger01 = CreateTrigger()
set udg_trigger02 = CreateTrigger()
set udg_trigger03 = CreateTrigger()
set udg_trigger04 = CreateTrigger()
set udg_trigger05 = CreateTrigger()
set udg_trigger06 = CreateTrigger()
set udg_trigger07 = CreateTrigger()
set udg_trigger08 = CreateTrigger()
set udg_trigger09 = CreateTrigger()
set udg_trigger10 = CreateTrigger()
set udg_trigger11 = CreateTrigger()
set udg_trigger12 = CreateTrigger()
set udg_trigger13 = CreateTrigger()
set udg_trigger14 = CreateTrigger()
set udg_trigger15 = CreateTrigger()
set udg_trigger16 = CreateTrigger()
set udg_trigger17 = CreateTrigger()
set udg_trigger18 = CreateTrigger()
set udg_trigger19 = CreateTrigger()
set udg_trigger20 = CreateTrigger()
set udg_trigger21 = CreateTrigger()
set udg_trigger22 = CreateTrigger()
set udg_trigger23 = CreateTrigger()
set udg_trigger24 = CreateTrigger()
set udg_trigger25 = CreateTrigger()
set udg_trigger26 = CreateTrigger()
set udg_trigger27 = CreateTrigger()
set udg_trigger28 = CreateTrigger()
set udg_trigger29 = CreateTrigger()
set udg_trigger30 = CreateTrigger()
set udg_trigger31 = CreateTrigger()
set udg_trigger32 = CreateTrigger()
set udg_trigger33 = CreateTrigger()
set udg_trigger34 = CreateTrigger()
set udg_trigger35 = CreateTrigger()
set udg_trigger36 = CreateTrigger()
set udg_trigger37 = CreateTrigger()
set udg_trigger38 = CreateTrigger()
set udg_trigger39 = CreateTrigger()
set udg_trigger40 = CreateTrigger()
set udg_trigger41 = CreateTrigger()
set udg_trigger42 = CreateTrigger()
set udg_trigger43 = CreateTrigger()
set udg_trigger44 = CreateTrigger()
set udg_trigger45 = CreateTrigger()
set udg_trigger46 = CreateTrigger()
set udg_trigger47 = CreateTrigger()
set udg_trigger48 = CreateTrigger()
set udg_trigger49 = CreateTrigger()
set udg_trigger50 = CreateTrigger()
set udg_trigger51 = CreateTrigger()
set udg_trigger52 = CreateTrigger()
set udg_trigger53 = CreateTrigger()
set udg_trigger54 = CreateTrigger()
set udg_trigger55 = CreateTrigger()
set udg_trigger56 = CreateTrigger()
set udg_trigger57 = CreateTrigger()
set udg_trigger58 = CreateTrigger()
set udg_trigger59 = CreateTrigger()
set udg_trigger60 = CreateTrigger()
set udg_trigger61 = CreateTrigger()
set udg_trigger62 = CreateTrigger()
set udg_trigger63 = CreateTrigger()
set udg_trigger64 = CreateTrigger()
set udg_trigger65 = CreateTrigger()
set udg_trigger66 = CreateTrigger()
set udg_trigger67 = CreateTrigger()
set udg_trigger68 = CreateTrigger()
set udg_trigger69 = CreateTrigger()
set udg_trigger70 = CreateTrigger()
set udg_trigger71 = CreateTrigger()
set udg_trigger72 = CreateTrigger()
set udg_trigger73 = CreateTrigger()
set udg_trigger74 = CreateTrigger()
set udg_trigger75 = CreateTrigger()
set udg_trigger76 = CreateTrigger()
set udg_trigger79 = CreateTrigger()
set udg_trigger80 = CreateTrigger()
set udg_trigger81 = CreateTrigger()
set udg_trigger82 = CreateTrigger()
set udg_trigger83 = CreateTrigger()
set udg_trigger84 = CreateTrigger()
set udg_trigger85 = CreateTrigger()
set udg_trigger86 = CreateTrigger()
set udg_trigger87 = CreateTrigger()
set udg_trigger88 = CreateTrigger()
set udg_trigger89 = CreateTrigger()
set udg_trigger90 = CreateTrigger()
set udg_trigger91 = CreateTrigger()
set udg_trigger92 = CreateTrigger()
set udg_trigger93 = CreateTrigger()
set udg_trigger94 = CreateTrigger()
set udg_trigger95 = CreateTrigger()
set udg_trigger96 = CreateTrigger()
set udg_trigger97 = CreateTrigger()
set udg_trigger98 = CreateTrigger()
set udg_trigger99 = CreateTrigger()
set udg_trigger100 = CreateTrigger()
set udg_trigger101 = CreateTrigger()
set udg_trigger102 = CreateTrigger()
set udg_trigger103 = CreateTrigger()
set udg_trigger104 = CreateTrigger()
set udg_trigger105 = CreateTrigger()
set udg_trigger106 = CreateTrigger()
set udg_trigger107 = CreateTrigger()
set udg_trigger108 = CreateTrigger()
set udg_trigger109 = CreateTrigger()
set udg_trigger110 = CreateTrigger()
set udg_trigger111 = CreateTrigger()
set udg_trigger112 = CreateTrigger()
set udg_trigger113 = CreateTrigger()
set udg_trigger114 = CreateTrigger()
set udg_trigger115 = CreateTrigger()
set udg_trigger116 = CreateTrigger()
set udg_trigger117 = CreateTrigger()
set udg_trigger118 = CreateTrigger()
set udg_trigger119 = CreateTrigger()
set udg_trigger120 = CreateTrigger()
set udg_trigger121 = CreateTrigger()
set udg_trigger122 = CreateTrigger()
set udg_trigger123 = CreateTrigger()
set udg_trigger124 = CreateTrigger()
set udg_trigger125 = CreateTrigger()
set udg_trigger126 = CreateTrigger()
set udg_trigger127 = CreateTrigger()
set udg_trigger128 = CreateTrigger()
set udg_trigger129 = CreateTrigger()
set udg_trigger130 = CreateTrigger()
set udg_trigger131 = CreateTrigger()
set udg_trigger132 = CreateTrigger()
set udg_trigger133 = CreateTrigger()
set udg_trigger134 = CreateTrigger()
set udg_trigger135 = CreateTrigger()
set udg_trigger136 = CreateTrigger()
set udg_trigger137 = CreateTrigger()
set udg_trigger138 = CreateTrigger()
set udg_trigger139 = CreateTrigger()
set udg_trigger140 = CreateTrigger()
set udg_trigger141 = CreateTrigger()
set udg_trigger142 = CreateTrigger()
set udg_trigger143 = CreateTrigger()
set udg_trigger144 = CreateTrigger()
set udg_trigger145 = CreateTrigger()
set udg_trigger146 = CreateTrigger()
set udg_trigger147 = CreateTrigger()
set udg_trigger148 = CreateTrigger()
set udg_trigger149 = CreateTrigger()
set udg_trigger150 = CreateTrigger()
set udg_trigger151 = CreateTrigger()
set udg_trigger152 = CreateTrigger()
set udg_trigger154 = CreateTrigger()
set udg_trigger155 = CreateTrigger()
set udg_trigger156 = CreateTrigger()
set udg_trigger157 = CreateTrigger()
set udg_trigger158 = CreateTrigger()
set udg_trigger159 = CreateTrigger()
set udg_trigger160 = CreateTrigger()
set udg_trigger161 = CreateTrigger()
set udg_trigger163 = CreateTrigger()
set udg_trigger164 = CreateTrigger()
set udg_trigger165 = CreateTrigger()
set udg_trigger166 = CreateTrigger()
set udg_trigger167 = CreateTrigger()
set udg_trigger168 = CreateTrigger()
set udg_trigger169 = CreateTrigger()
set udg_trigger170 = CreateTrigger()
set udg_trigger171 = CreateTrigger()
set udg_trigger172 = CreateTrigger()
set udg_trigger174 = CreateTrigger()
set udg_trigger175 = CreateTrigger()
set udg_trigger176 = CreateTrigger()
set udg_trigger177 = CreateTrigger()
set udg_trigger178 = CreateTrigger()
set udg_trigger180 = CreateTrigger()
set udg_trigger181 = CreateTrigger()
set udg_trigger182 = CreateTrigger()
set udg_trigger183 = CreateTrigger()
set udg_trigger184 = CreateTrigger()
set udg_trigger185 = CreateTrigger()
set udg_trigger186 = CreateTrigger()
set udg_trigger187 = CreateTrigger()
set udg_trigger188 = CreateTrigger()
set udg_trigger189 = CreateTrigger()
set udg_trigger190 = CreateTrigger()
set udg_trigger191 = CreateTrigger()
set udg_trigger192 = CreateTrigger()
set udg_trigger193 = CreateTrigger()
set udg_trigger194 = CreateTrigger()
set udg_trigger195 = CreateTrigger()
set udg_trigger196 = CreateTrigger()
set udg_trigger197 = CreateTrigger()
set udg_trigger198 = CreateTrigger()
set udg_trigger199 = CreateTrigger()
set udg_trigger200 = CreateTrigger()
set udg_trigger201 = CreateTrigger()
set udg_trigger202 = CreateTrigger()
set udg_trigger203 = CreateTrigger()
set udg_trigger204 = CreateTrigger()
set udg_trigger205 = CreateTrigger()
set udg_trigger206 = CreateTrigger()
set udg_trigger207 = CreateTrigger()
set udg_trigger208 = CreateTrigger()
set udg_trigger209 = CreateTrigger()
set udg_trigger210 = CreateTrigger()
set udg_trigger211 = CreateTrigger()
set udg_trigger212 = CreateTrigger()
set udg_trigger213 = CreateTrigger()
set udg_trigger214 = CreateTrigger()
set udg_trigger215 = CreateTrigger()
set udg_trigger216 = CreateTrigger()
set udg_trigger217 = CreateTrigger()
set udg_trigger218 = CreateTrigger()
set udg_trigger219 = CreateTrigger()
set udg_trigger220 = CreateTrigger()
set udg_trigger221 = CreateTrigger()
set udg_trigger222 = CreateTrigger()
set udg_trigger223 = CreateTrigger()
set udg_trigger224 = CreateTrigger()
set udg_trigger225 = CreateTrigger()
set udg_trigger226 = CreateTrigger()
set udg_trigger227 = CreateTrigger()
set udg_trigger228 = CreateTrigger()
set udg_trigger229 = CreateTrigger()
set udg_trigger230 = CreateTrigger()
call ExecuteFunc("main2")
endfunction