// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
Archer_Stronghold | button | No | |
Archer_Stronghold_Chosen | integer | No | |
Bolt1 | effect | No | |
Bolt11 | effect | No | |
Bolt2 | effect | No | |
Bolt22 | effect | No | |
Bolt3 | effect | No | |
Bolt33 | effect | No | |
Cairne | unit | No | |
CalculateWhundred | integer | No | |
CalculateZhundred | integer | No | |
Cam2Unit | unit | No | |
cam_Archers_View | camerasetup | No | |
cam_Close_In | camerasetup | No | |
cam_Initialization | camerasetup | No | |
cam_Tactical | camerasetup | No | |
Choose_Box | dialog | No | |
Defense_Mode | button | No | |
dest_LTt1_0215 | destructable | No | |
Diff_Box | dialog | No | |
Easy | button | No | |
Easy_Chosen | integer | No | |
ElapsedTime | integer | No | |
Game_Choose | dialog | No | |
GoblinMissles | group | No | |
Hard | button | No | |
Hard_Chosen | integer | No | |
Hero_Count | integer | No | |
Impossible | button | No | |
Impossible_Chosen | integer | No | |
IntegerValue | integer | Yes | |
IntegerValue1000Copy | integer | No | |
IntegerValue1000CopyW | integer | No | |
IntegerValueHundred | integer | Yes | |
IntegerValueHundredW | integer | Yes | |
IntegerValueTens | integer | Yes | |
IntegerValueTensW | integer | Yes | |
IntegerValueThousand | integer | Yes | |
IntegerValueThousandW | integer | Yes | |
IntegerValueW | integer | Yes | |
Kill_Amount | integer | No | |
kills | integer | Yes | |
KillsLeaderBoard | leaderboard | No | |
Last_Boss | integer | No | |
Letter1ofusername | string | No | |
Letter2ofusername | string | No | |
Level_Number | integer | No | |
Life_Count | integer | No | |
Life_Count_Race | integer | No | |
LightingEffect1 | lightning | No | |
LightingEffect11 | lightning | No | |
LightingEffect111 | lightning | No | |
LightingEffect2 | lightning | No | |
LightingEffect22 | lightning | No | |
LightingEffect222 | lightning | No | |
LightingEffect3 | lightning | No | |
LightingEffect33 | lightning | No | |
LightingEffect333 | lightning | No | |
Lives_Board | multiboard | No | |
Load_True | boolean | Yes | |
Most_Kills | player | No | |
Ninth_Step | button | No | |
Ninth_Step_Chosen | integer | No | |
Normal | button | No | |
Normal_Chosen | integer | No | |
P1_Code | string | No | |
P1_Death | timer | No | |
P1_Random_Team | integer | No | |
P1_Timer_Window | timerdialog | No | |
P2_Code | string | No | |
P2_Death | timer | No | |
P2_Random_Team | integer | No | |
P2_Timer_Window | timerdialog | No | |
P3_Code | string | No | |
P3_Death | timer | No | |
P3_Random_Team | integer | No | |
P3_Timer_Window | timerdialog | No | |
P4_Code | string | No | |
P4_Death | timer | No | |
P4_Random_Team | integer | No | |
P4_Timer_Window | timerdialog | No | |
P5_Code | string | No | |
P5_Death | timer | No | |
P5_Random_Team | integer | No | |
P5_Timer_Window | timerdialog | No | |
P6_Code | string | No | |
P6_Death | timer | No | |
P6_Random_Team | integer | No | |
P6_Timer_Window | timerdialog | No | |
P7_Code | string | No | |
P7_Death | timer | No | |
P7_Random_Team | integer | No | |
P7_Timer_Window | timerdialog | No | |
P8_Code | string | No | |
P8_Death | timer | No | |
P8_Random_Team | integer | No | |
P8_Timer_Window | timerdialog | No | |
Pig_Hat | effect | No | |
Race | button | No | |
Race_Archer_Chosen | integer | Yes | |
Race_Chosen | integer | No | |
Random_Numbers1 | integer | No | |
Random_Numbers2 | integer | No | |
Random_Numbers3 | integer | No | |
Random_Numbers4 | integer | No | |
Random_Numbers5 | integer | No | |
Random_Numbers6 | integer | No | |
rct_9th_Step_Archer_Revival | rect | No | |
rct_9th_Step_Archer_Spawn | rect | No | |
rct_9th_Step_Enemy_Spawn | rect | No | |
rct_9th_Step_Lose_a_Life | rect | No | |
rct_Archer_area | rect | No | |
rct_Archer_Revival | rect | No | |
rct_Archer_Spawn | rect | No | |
rct_Archer_Stronghold_Apoc | rect | No | |
rct_Caster_Area | rect | No | |
rct_Difficulty | rect | No | |
rct_Enemy_Spawn | rect | No | |
rct_Holy_Sear | rect | No | |
rct_Lose_a_Life | rect | No | |
rct_Natures_Call | rect | No | |
rct_Ninth_Step_Apoc | rect | No | |
rct_Tri_Strike_Apocalypse_1 | rect | No | |
rct_Tri_Strike_Apocalypse_2 | rect | No | |
rct_Tri_Strike_Apocalypse_3 | rect | No | |
rct_Visibility | rect | No | |
rct_Visibility_2 | rect | No | |
Save_Numbers_RandomA | string | Yes | |
Save_Numbers_RandomW | string | Yes | |
Save_Numbers_RandomY | string | Yes | |
Save_SavingCode | string | No | |
Save_X | string | Yes | |
Save_Z | string | Yes | |
Save_ZHundred | string | Yes | |
Save_ZThousand | string | Yes | |
Siege_Mode | button | No | |
snd_BackOffPunk | sound | No | |
snd_LightningBolt | sound | No | |
Solo_Initialized | integer | No | |
SPF1 | effect | No | |
SPF2 | effect | No | |
SPF3 | effect | No | |
TempLocation | rect | No | |
trg_Add_Point | trigger | No | |
trg_Advisor_Choose | trigger | No | |
trg_Advocate_Choose | trigger | No | |
trg_Air | trigger | No | |
trg_Archer_Stronghold | trigger | No | |
trg_Assassin_Choose | trigger | No | |
trg_Assassin_Info | trigger | No | |
trg_Attack_Move_1 | trigger | No | |
trg_Battlecruiser_dies | trigger | No | |
trg_Blood_Pig_dies | trigger | No | |
trg_Bonus_Removal | trigger | No | |
trg_Bonus_Removal_Ninth | trigger | No | |
trg_Boss | trigger | No | |
trg_Boss_Life_Lost | trigger | No | |
trg_Boss_Life_Lost_Ninth | trigger | No | |
trg_Boss_Life_Lost_Norm | trigger | No | |
trg_Boss_Life_Lost_Race | trigger | No | |
trg_Cairne_dies | trigger | No | |
trg_Cam_1 | trigger | No | |
trg_Cam_2 | trigger | No | |
trg_Cam_3 | trigger | No | |
trg_Cannon_Launcher_dies | trigger | No | |
trg_Commander_Choose | trigger | No | |
trg_Commander_Info | trigger | No | |
trg_Composite_Bow | trigger | No | |
trg_Contraption_dies | trigger | No | |
trg_Cycle | trigger | No | |
trg_Dawn | trigger | No | |
trg_Day | trigger | No | |
trg_Defeat | trigger | No | |
trg_Defeat_Normal | trigger | No | |
trg_Defeat_Race | trigger | No | |
trg_Defense_Mode | trigger | No | |
trg_Defense_or_Siege | trigger | No | |
trg_Deformed_Orc_dies | trigger | No | |
trg_Difficulty | trigger | No | |
trg_Dont_Attack_Teammates | trigger | No | |
trg_Dusk | trigger | No | |
trg_Easy | trigger | No | |
trg_Elapsed_2_Seconds | trigger | No | |
trg_Elementalist_Choose | trigger | No | |
trg_Elunes_Armor | trigger | No | |
trg_Elunes_Equipment | trigger | No | |
trg_Elunes_Escape | trigger | No | |
trg_Elunes_Soul | trigger | No | |
trg_End_Map | trigger | No | |
trg_End_Map_Norm | trigger | No | |
trg_End_Map_Race | trigger | No | |
trg_Engineers_die | trigger | No | |
trg_Extra_Life | trigger | No | |
trg_Feaster_dies | trigger | No | |
trg_Game_Choose | trigger | No | |
trg_Garthok_Lose_a_Life | trigger | No | |
trg_Garthok_Lose_a_Life_Ninth | trigger | No | |
trg_Garthok_Lose_a_Life_Norm | trigger | No | |
trg_Garthok_Lose_a_Life_Race | trigger | No | |
trg_Gods_Bow | trigger | No | |
trg_Hail | trigger | No | |
trg_Hail_Drops_1 | trigger | No | |
trg_Hail_Drops_2 | trigger | No | |
trg_Hail_Drops_3 | trigger | No | |
trg_Hard | trigger | No | |
trg_Heavy_Rain | trigger | No | |
trg_Heavy_Wind | trigger | No | |
trg_Hero_Death | trigger | No | |
trg_Holy_Choose | trigger | No | |
trg_Holy_Info | trigger | No | |
trg_Holy_Sear | trigger | No | |
trg_Ice_Blockade | trigger | No | |
trg_Ice_Blockade_Remove | trigger | No | |
trg_Impossible | trigger | No | |
trg_Initialization | trigger | No | |
trg_Iron_Choose | trigger | No | |
trg_Kick_P2 | trigger | No | |
trg_Kick_P3 | trigger | No | |
trg_Kick_P4 | trigger | No | |
trg_Kick_P5 | trigger | No | |
trg_Kick_P6 | trigger | No | |
trg_Kick_P7 | trigger | No | |
trg_Kick_P8 | trigger | No | |
trg_Kills_2000 | trigger | No | |
trg_Kills_250 | trigger | No | |
trg_Kills_550 | trigger | No | |
trg_Kills_999 | trigger | No | |
trg_Light_Rain | trigger | No | |
trg_Light_Wind | trigger | No | |
trg_Lives_Left | trigger | No | |
trg_Lives_Title_Norm | trigger | No | |
trg_Lives_Title_Race | trigger | No | |
trg_Load_Integer_Variable_Copy | trigger | No | |
trg_Lock | trigger | No | |
trg_Lose_a_Life | trigger | No | |
trg_Lose_a_Life_Ninth | trigger | No | |
trg_Lose_a_Life_Norm | trigger | No | |
trg_Lose_a_Life_Race | trigger | No | |
trg_Move_1 | trigger | No | |
trg_Multi_Target | trigger | No | |
trg_Naturalist_Choose | trigger | No | |
trg_Naturalist_Info | trigger | No | |
trg_Natures_Call | trigger | No | |
trg_Night | trigger | No | |
trg_Ninth_Step | trigger | No | |
trg_None | trigger | No | |
trg_Normal | trigger | No | |
trg_Orc_Machine_dies | trigger | No | |
trg_Orcish_Knight_Head_dies | trigger | No | |
trg_P1 | trigger | No | |
trg_P2 | trigger | No | |
trg_P3 | trigger | No | |
trg_P4 | trigger | No | |
trg_P5 | trigger | No | |
trg_P6 | trigger | No | |
trg_P7 | trigger | No | |
trg_P8 | trigger | No | |
trg_Pack_Leader_dies | trigger | No | |
trg_Pig_Hat_Dropage | trigger | No | |
trg_Pig_Hat_Wearage | trigger | No | |
trg_Pissed_Grunt_Leader_dies | trigger | No | |
trg_Player_Leave | trigger | No | |
trg_Quests | trigger | No | |
trg_Race | trigger | No | |
trg_Race_Move_Right_P1 | trigger | No | |
trg_Race_Move_Right_P2 | trigger | No | |
trg_Race_Move_Right_P3 | trigger | No | |
trg_Race_Move_Right_P4 | trigger | No | |
trg_Race_Move_Right_P5 | trigger | No | |
trg_Race_Move_Right_P6 | trigger | No | |
trg_Race_Move_Right_P7 | trigger | No | |
trg_Race_Move_Right_P8 | trigger | No | |
trg_Race_Revival_Move | trigger | No | |
trg_Race_Spawn | trigger | No | |
trg_Random | trigger | No | |
trg_Ranger_Choose | trigger | No | |
trg_Ranger_Info | trigger | No | |
trg_Rapid_Freak_dies | trigger | No | |
trg_Remove | trigger | No | |
trg_Repick | trigger | No | |
trg_Rogue_Choose | trigger | No | |
trg_Rogue_Info | trigger | No | |
trg_Save_Integer_Variable_Copy | trigger | No | |
trg_Sentry_Choose | trigger | No | |
trg_Sentry_Info | trigger | No | |
trg_Serpent_Warders | trigger | No | |
trg_Set_Variables | trigger | No | |
trg_Setup_Leaderboard | trigger | No | |
trg_Show_Dialog | trigger | No | |
trg_Siege_Mode | trigger | No | |
trg_Slave_Master_Dies | trigger | No | |
trg_Sunny | trigger | No | |
trg_TKer_Kill | trigger | No | |
trg_Tri_Strike_Apocalypse | trigger | No | |
trg_Tri_Strike_Apocalypse_1 | trigger | No | |
trg_Tri_Strike_Apocalypse_2 | trigger | No | |
trg_Tri_Strike_Apocalypse_3 | trigger | No | |
trg_Unlock | trigger | No | |
trg_Update_Wave | trigger | No | |
trg_Victory | trigger | No | |
trg_Victory_Norm | trigger | No | |
trg_Victory_Race | trigger | No | |
trg_Wait_01_seconds | trigger | No | |
trg_Wait_01_secs | trigger | No | |
trg_Wait_15_seconds_1 | trigger | No | |
trg_Wait_15_seconds_2 | trigger | No | |
trg_Wait_15_seconds_3 | trigger | No | |
trg_Wait_8_seconds | trigger | No | |
trg_Warchief_dies | trigger | No | |
trg_Wave_1 | trigger | No | |
trg_Wave_10 | trigger | No | |
trg_Wave_11 | trigger | No | |
trg_Wave_12_BOSS | trigger | No | |
trg_Wave_12_BOSS_Ninth | trigger | No | |
trg_Wave_13_BONUS_AIR | trigger | No | |
trg_Wave_14_MINIBOSS | trigger | No | |
trg_Wave_15 | trigger | No | |
trg_Wave_16 | trigger | No | |
trg_Wave_17_AIR | trigger | No | |
trg_Wave_18_BOSS | trigger | No | |
trg_Wave_18_BOSS_Ninth | trigger | No | |
trg_Wave_19 | trigger | No | |
trg_Wave_20_MINIBOSS | trigger | No | |
trg_Wave_21 | trigger | No | |
trg_Wave_22 | trigger | No | |
trg_Wave_23 | trigger | No | |
trg_Wave_24_BOSS | trigger | No | |
trg_Wave_24_BOSS_Ninth | trigger | No | |
trg_Wave_25 | trigger | No | |
trg_Wave_26_BONUS | trigger | No | |
trg_Wave_27_MOB | trigger | No | |
trg_Wave_28_CASTERS | trigger | No | |
trg_Wave_29_MINIBOSS | trigger | No | |
trg_Wave_2_MINIBOSS | trigger | No | |
trg_Wave_3 | trigger | No | |
trg_Wave_30_BOSS | trigger | No | |
trg_Wave_30_BOSS_Ninth | trigger | No | |
trg_Wave_31_AIR | trigger | No | |
trg_Wave_32 | trigger | No | |
trg_Wave_33_MINIBOSS | trigger | No | |
trg_Wave_33_MINIBOSS_Ninth | trigger | No | |
trg_Wave_34_ARMORED | trigger | No | |
trg_Wave_35_BOSS | trigger | No | |
trg_Wave_35_BOSS_Ninth | trigger | No | |
trg_Wave_36 | trigger | No | |
trg_Wave_37 | trigger | No | |
trg_Wave_38 | trigger | No | |
trg_Wave_39_MOB | trigger | No | |
trg_Wave_4 | trigger | No | |
trg_Wave_40_BONUS_AIR | trigger | No | |
trg_Wave_41_BOSS | trigger | No | |
trg_Wave_41_BOSS_Ninth | trigger | No | |
trg_Wave_42 | trigger | No | |
trg_Wave_43 | trigger | No | |
trg_Wave_44_MINIBOSS | trigger | No | |
trg_Wave_45 | trigger | No | |
trg_Wave_46_BOSS | trigger | No | |
trg_Wave_46_BOSS_Ninth | trigger | No | |
trg_Wave_47_BONUS_MINIBOSS | trigger | No | |
trg_Wave_48_ARMORED | trigger | No | |
trg_Wave_49_AIR | trigger | No | |
trg_Wave_5 | trigger | No | |
trg_Wave_50_LAST_BOSS | trigger | No | |
trg_Wave_50_LAST_BOSS_Left | trigger | No | |
trg_Wave_50_LAST_BOSS_Ninth | trigger | No | |
trg_Wave_50_LAST_BOSS_Right | trigger | No | |
trg_Wave_6_BOSS | trigger | No | |
trg_Wave_6_BOSS_Ninth | trigger | No | |
trg_Wave_7 | trigger | No | |
trg_Wave_8_MINIBOSS | trigger | No | |
trg_Wave_9 | trigger | No | |
trg_Youngblood_dies | trigger | No | |
Tri_Caster_1 | player | No | |
Tri_Caster_2 | player | No | |
Tri_Caster_3 | player | No | |
Tri_Strike_1 | integer | No | |
Tri_Strike_2 | integer | No | |
Tri_Strike_3 | integer | No | |
Tri_Strike_Apocalypse | integer | No | |
unit_H000_0013 | unit | No | |
unit_H001_0010 | unit | No | |
unit_H008_0014 | unit | No | |
unit_H00B_0012 | unit | No | |
unit_H00S_0011 | unit | No | |
unit_H00U_0009 | unit | No | |
unit_hsor_0026 | unit | No | |
unit_Hvwd_0015 | unit | No | |
Visibility | fogmodifier | No | |
Wait | dialog | No | |
Wave_Number | integer | No |
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function InitGlobals takes nothing returns nothing
local integer i=0
set udg_P1_Death=CreateTimer()
set udg_P2_Death=CreateTimer()
set udg_P3_Death=CreateTimer()
set udg_P4_Death=CreateTimer()
set udg_P5_Death=CreateTimer()
set udg_P6_Death=CreateTimer()
set udg_P7_Death=CreateTimer()
set udg_P8_Death=CreateTimer()
set udg_Hero_Count=0
set udg_Life_Count=0
set udg_Level_Number=0
set i=0
loop
exitwhen(i>1)
set udg_kills[i]=0
set i=i+1
endloop
set udg_Choose_Box=DialogCreate()
set udg_Wave_Number=0
set udg_Kill_Amount=0
set udg_Tri_Strike_Apocalypse=0
set udg_Tri_Strike_1=0
set udg_Tri_Strike_2=0
set udg_Tri_Strike_3=0
set udg_GoblinMissles=CreateGroup()
set udg_Last_Boss=0
set udg_Diff_Box=DialogCreate()
set udg_Game_Choose=DialogCreate()
set udg_Wait=DialogCreate()
set udg_Ninth_Step_Chosen=0
set udg_Archer_Stronghold_Chosen=0
set i=0
loop
exitwhen(i>1)
set udg_Save_Numbers_RandomY[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Save_Numbers_RandomW[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Save_Numbers_RandomA[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Save_X[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Save_ZHundred[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Save_ZThousand[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_Save_Z[i]=""
set i=i+1
endloop
set udg_Letter1ofusername=""
set udg_Letter2ofusername=""
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueHundred[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueThousand[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueTens[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValue[i]=0
set i=i+1
endloop
set udg_CalculateZhundred=0
set udg_IntegerValue1000Copy=0
set udg_Random_Numbers1=0
set udg_Save_SavingCode=""
set udg_Random_Numbers2=0
set udg_Random_Numbers3=0
set udg_Random_Numbers4=0
set udg_Random_Numbers5=0
set udg_Random_Numbers6=0
set i=0
loop
exitwhen(i>1)
set udg_Load_True[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueHundredW[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueThousandW[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueTensW[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_IntegerValueW[i]=0
set i=i+1
endloop
set udg_CalculateWhundred=0
set udg_IntegerValue1000CopyW=0
set udg_P1_Code=""
set udg_P2_Code=""
set udg_P3_Code=""
set udg_P4_Code=""
set udg_P5_Code=""
set udg_P6_Code=""
set udg_P7_Code=""
set udg_P8_Code=""
set udg_Easy_Chosen=0
set udg_Hard_Chosen=0
set udg_Impossible_Chosen=0
set udg_Normal_Chosen=0
set udg_Race_Chosen=0
set udg_Life_Count_Race=0
set udg_P1_Random_Team=0
set udg_P2_Random_Team=0
set udg_P3_Random_Team=0
set udg_P4_Random_Team=0
set udg_P5_Random_Team=0
set udg_P6_Random_Team=0
set udg_P7_Random_Team=0
set udg_P8_Random_Team=0
set i=0
loop
exitwhen(i>1)
set udg_Race_Archer_Chosen[i]=0
set i=i+1
endloop
set udg_ElapsedTime=0
set udg_Solo_Initialized=0
endfunction
//***************************************************************************
//*
//*Sounds
//*
//***************************************************************************
function InitSounds takes nothing returns nothing
set udg_snd_LightningBolt=CreateSound("Abilities\\Spells\\Orc\\LightningBolt\\LightningBolt.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_snd_LightningBolt,"LightningBolt")
call SetSoundDuration(udg_snd_LightningBolt,2136)
set udg_snd_BackOffPunk=CreateSound("Units\\Orc\\Shaman\\ShamanPissed2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_snd_BackOffPunk,"ShamanPissed")
call SetSoundDuration(udg_snd_BackOffPunk,2125)
endfunction
//***************************************************************************
//*
//*Destructable Objects
//*
//***************************************************************************
function CreateAllDestructables takes nothing returns nothing
local destructable d
local trigger t
local real life
set udg_dest_LTt1_0215=CreateDestructableZ('LTt1',896.0,960.0,251.9,90.000,1.000,0)
endfunction
//***************************************************************************
//*
//*Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateNeutralPassiveBuildings takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'n004',3520.0,2560.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n006',3840.0,2688.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',4032.0,2624.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00K',3776.0,2112.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n00K',1600.0,2816.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n004',576.0,2816.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n006',896.0,2880.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n00L',1280.0,2816.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'nfoh',1152.0,2432.0,270.000)
set u=CreateUnit(p,'nfoh',4352.0,2496.0,270.000)
endfunction
//===========================================================================
function CreateNeutralPassive takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit_H00U_0009=CreateUnit(p,'H00U',3075.9,-2686.2,240.000)
call SetHeroLevel(udg_unit_H00U_0009,100,false)
call SetUnitState(udg_unit_H00U_0009,UNIT_STATE_MANA,425)
call SetUnitAcquireRange(udg_unit_H00U_0009,200.0)
call UnitAddItemToSlotById(udg_unit_H00U_0009,'I000',0)
set udg_unit_H001_0010=CreateUnit(p,'H001',3309.2,-2874.2,240.000)
call SetHeroLevel(udg_unit_H001_0010,100,false)
call SetUnitAcquireRange(udg_unit_H001_0010,200.0)
call UnitAddItemToSlotById(udg_unit_H001_0010,'I000',0)
set udg_unit_H00S_0011=CreateUnit(p,'H00S',2861.8,-2771.7,240.000)
call SetHeroLevel(udg_unit_H00S_0011,100,false)
call SetUnitState(udg_unit_H00S_0011,UNIT_STATE_MANA,425)
call SetUnitAcquireRange(udg_unit_H00S_0011,200.0)
call UnitAddItemToSlotById(udg_unit_H00S_0011,'I000',0)
set udg_unit_H00B_0012=CreateUnit(p,'H00B',3115.8,-2939.9,240.000)
call SetHeroLevel(udg_unit_H00B_0012,100,false)
call SetUnitAcquireRange(udg_unit_H00B_0012,200.0)
call UnitAddItemToSlotById(udg_unit_H00B_0012,'I000',0)
set udg_unit_H000_0013=CreateUnit(p,'H000',2860.8,-3034.6,240.000)
call SetHeroLevel(udg_unit_H000_0013,100,false)
call SetUnitAcquireRange(udg_unit_H000_0013,200.0)
call UnitAddItemToSlotById(udg_unit_H000_0013,'I000',0)
set udg_unit_H008_0014=CreateUnit(p,'H008',3265.4,-3121.5,240.000)
call SetHeroLevel(udg_unit_H008_0014,100,false)
call SetUnitState(udg_unit_H008_0014,UNIT_STATE_MANA,425)
call SetUnitAcquireRange(udg_unit_H008_0014,200.0)
call UnitAddItemToSlotById(udg_unit_H008_0014,'I000',0)
set udg_unit_Hvwd_0015=CreateUnit(p,'Hvwd',3062.0,-3199.7,240.000)
call SetHeroLevel(udg_unit_Hvwd_0015,100,false)
call SetUnitAcquireRange(udg_unit_Hvwd_0015,200.0)
call UnitAddItemToSlotById(udg_unit_Hvwd_0015,'I000',0)
set udg_unit_hsor_0026=CreateUnit(p,'hsor',79.6,-3534.4,315.150)
call SetUnitAcquireRange(udg_unit_hsor_0026,200.0)
endfunction
//===========================================================================
function CreatePlayerBuildings takes nothing returns nothing
endfunction
//===========================================================================
function CreatePlayerUnits takes nothing returns nothing
endfunction
//===========================================================================
function CreateAllUnits takes nothing returns nothing
call CreateNeutralPassiveBuildings()
call CreatePlayerBuildings()
call CreateNeutralPassive()
call CreatePlayerUnits()
endfunction
//***************************************************************************
//*
//*Regions
//*
//***************************************************************************
function CreateRegions takes nothing returns nothing
local weathereffect we
set udg_rct_Enemy_Spawn=Rect(1024.0,-3424.0,1728.0,-2848.0)
set udg_rct_Archer_Spawn=Rect(768.0,2432.0,1280.0,2816.0)
set udg_rct_Archer_area=Rect(2208.0,-3648.0,3616.0,-2368.0)
set udg_rct_Visibility=Rect(-736.0,-1216.0,2624.0,3456.0)
set udg_rct_Archer_Revival=Rect(864.0,2464.0,1216.0,2656.0)
set udg_rct_Natures_Call=Rect(1568.0,-1760.0,1888.0,-1440.0)
set udg_rct_Lose_a_Life=Rect(768.0,2496.0,1280.0,2848.0)
set udg_rct_Difficulty=Rect(1536.0,-3584.0,1696.0,-3360.0)
set udg_rct_Tri_Strike_Apocalypse_1=Rect(608.0,-1760.0,800.0,-1568.0)
set udg_rct_Tri_Strike_Apocalypse_2=Rect(800.0,-1760.0,992.0,-1568.0)
set udg_rct_Tri_Strike_Apocalypse_3=Rect(992.0,-1760.0,1184.0,-1568.0)
set udg_rct_9th_Step_Archer_Spawn=Rect(4608.0,1952.0,4864.0,2112.0)
set udg_rct_9th_Step_Enemy_Spawn=Rect(4704.0,-3552.0,5408.0,-2976.0)
set udg_rct_9th_Step_Lose_a_Life=Rect(3520.0,2080.0,4096.0,2688.0)
set udg_rct_9th_Step_Archer_Revival=Rect(3488.0,2208.0,3744.0,2400.0)
set udg_rct_Visibility_2=Rect(3104.0,-1728.0,6432.0,3168.0)
set udg_rct_Caster_Area=Rect(-128.0,-3680.0,256.0,-3328.0)
set udg_rct_Archer_Stronghold_Apoc=Rect(-352.0,-3712.0,2400.0,3744.0)
set udg_rct_Ninth_Step_Apoc=Rect(3232.0,-3712.0,6400.0,3200.0)
set udg_rct_Holy_Sear=Rect(2560.0,-320.0,3072.0,160.0)
endfunction
//***************************************************************************
//*
//*Cameras
//*
//***************************************************************************
function CreateCameras takes nothing returns nothing
set udg_cam_Tactical=CreateCameraSetup()
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_TARGET_DISTANCE,2900.0,0.0)
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_cam_Tactical,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_cam_Tactical,1027.1,870.4,0.0)
set udg_cam_Close_In=CreateCameraSetup()
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_ZOFFSET,230.0,0.0)
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_ANGLE_OF_ATTACK,340.0,0.0)
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_TARGET_DISTANCE,750.0,0.0)
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_cam_Close_In,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_cam_Close_In,1027.1,-254.4,0.0)
set udg_cam_Initialization=CreateCameraSetup()
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_TARGET_DISTANCE,1200.0,0.0)
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_cam_Initialization,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_cam_Initialization,3305.8,-3126.3,0.0)
set udg_cam_Archers_View=CreateCameraSetup()
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_ROTATION,61.7,0.0)
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_ANGLE_OF_ATTACK,320.0,0.0)
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_TARGET_DISTANCE,1500.0,0.0)
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_cam_Archers_View,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_cam_Archers_View,3211.7,-2951.4,0.0)
endfunction
//***************************************************************************
//*
//*Triggers
//*
//***************************************************************************
//===========================================================================
//Trigger:Initialization
//
//Default melee game initialization for all players
//===========================================================================
function Trig_Initialization_Func008A takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,50)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Archer_area)
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER,1)
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,350)
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,GetEnumPlayer())
call SetPlayerHandicapXPBJ(GetEnumPlayer(),700.00)
call FogModifierStart(GetLastCreatedFogModifier())
call CameraSetupApplyForPlayer(true,udg_cam_Initialization,GetEnumPlayer(),0)
endfunction
function Trig_Initialization_Actions takes nothing returns nothing
call MeleeStartingUnits()
call KillDestructable(udg_dest_LTt1_0215)
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUT,0.00,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"TRIGSTR_246")
set udg_Life_Count=(udg_Life_Count+20)
set udg_Life_Count_Race=(udg_Life_Count_Race+20)
call ForForce(GetPlayersAll(),function Trig_Initialization_Func008A)
call SetTimeOfDay(24.00)
call TriggerSleepAction(2.00)
call SetTimeOfDayScalePercentBJ(100)
call CinematicFadeBJ(bj_CINEFADETYPE_FADEIN,1.50,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call SetUnitVertexColorBJ(udg_unit_H00U_0009,100,100,100,25.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
set udg_trg_Initialization=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Initialization,0.01)
call TriggerAddAction(udg_trg_Initialization,function Trig_Initialization_Actions)
endfunction
//===========================================================================
//Trigger:Game Choose
//===========================================================================
function Trig_Game_Choose_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_Game_Choose,"TRIGSTR_706")
call DialogAddButtonBJ(udg_Game_Choose,"TRIGSTR_707")
set udg_Archer_Stronghold=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_Game_Choose,"TRIGSTR_708")
set udg_Ninth_Step=GetLastCreatedButtonBJ()
call DialogSetMessageBJ(udg_Wait,"TRIGSTR_709")
call TriggerExecute(udg_trg_Wait_01_secs)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Game_Choose takes nothing returns nothing
set udg_trg_Game_Choose=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Game_Choose,0.50)
call TriggerAddAction(udg_trg_Game_Choose,function Trig_Game_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Archer Stronghold
//===========================================================================
function Trig_Archer_Stronghold_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Archer_Stronghold))then
return false
endif
return true
endfunction
function Trig_Archer_Stronghold_Actions takes nothing returns nothing
set udg_Archer_Stronghold_Chosen=(udg_Archer_Stronghold_Chosen+1)
call DialogDisplayBJ(false,udg_Game_Choose,Player(0))
call DialogDisplayBJ(false,udg_Wait,Player(1))
call DialogDisplayBJ(false,udg_Wait,Player(2))
call DialogDisplayBJ(false,udg_Wait,Player(3))
call DialogDisplayBJ(false,udg_Wait,Player(4))
call DialogDisplayBJ(false,udg_Wait,Player(5))
call DialogDisplayBJ(false,udg_Wait,Player(6))
call DialogDisplayBJ(false,udg_Wait,Player(7))
call TriggerExecute(udg_trg_Show_Dialog)
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(1),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(2),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(3),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(4),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(5),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(6),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(7),2.00)
call DisableTrigger(udg_trg_Ninth_Step)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Archer_Stronghold takes nothing returns nothing
set udg_trg_Archer_Stronghold=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Archer_Stronghold,udg_Game_Choose)
call TriggerAddCondition(udg_trg_Archer_Stronghold,Condition(function Trig_Archer_Stronghold_Conditions))
call TriggerAddAction(udg_trg_Archer_Stronghold,function Trig_Archer_Stronghold_Actions)
endfunction
//===========================================================================
//Trigger:Ninth Step
//===========================================================================
function Trig_Ninth_Step_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Ninth_Step))then
return false
endif
return true
endfunction
function Trig_Ninth_Step_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rct_Archer_Spawn,GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call MoveRectToLoc(udg_rct_Archer_Revival,GetRectCenter(udg_rct_9th_Step_Archer_Revival))
call MoveRectToLoc(udg_rct_Lose_a_Life,GetRectCenter(udg_rct_9th_Step_Lose_a_Life))
call MoveRectToLoc(udg_rct_Enemy_Spawn,GetRectCenter(udg_rct_9th_Step_Enemy_Spawn))
call CreateNUnitsAtLoc(1,'h00G',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call DialogDisplayBJ(false,udg_Game_Choose,Player(0))
call DialogDisplayBJ(false,udg_Wait,Player(1))
call DialogDisplayBJ(false,udg_Wait,Player(2))
call DialogDisplayBJ(false,udg_Wait,Player(3))
call DialogDisplayBJ(false,udg_Wait,Player(4))
call DialogDisplayBJ(false,udg_Wait,Player(5))
call DialogDisplayBJ(false,udg_Wait,Player(6))
call DialogDisplayBJ(false,udg_Wait,Player(7))
call TriggerExecute(udg_trg_Difficulty)
set udg_Ninth_Step_Chosen=(udg_Ninth_Step_Chosen+1)
call EnableTrigger(udg_trg_Attack_Move_1)
call DisableTrigger(udg_trg_Wave_6_BOSS)
call DisableTrigger(udg_trg_Wave_12_BOSS)
call DisableTrigger(udg_trg_Wave_18_BOSS)
call DisableTrigger(udg_trg_Wave_24_BOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS)
call DisableTrigger(udg_trg_Wave_35_BOSS)
call DisableTrigger(udg_trg_Wave_41_BOSS)
call DisableTrigger(udg_trg_Wave_46_BOSS)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS)
call EnableTrigger(udg_trg_Wave_12_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_18_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_24_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_30_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_33_MINIBOSS_Ninth)
call EnableTrigger(udg_trg_Wave_35_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_41_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_46_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_50_LAST_BOSS_Ninth)
call EnableTrigger(udg_trg_Wave_6_BOSS_Ninth)
call DisableTrigger(udg_trg_Lose_a_Life)
call DisableTrigger(udg_trg_Boss_Life_Lost)
call DisableTrigger(udg_trg_Garthok_Lose_a_Life)
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(1),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(2),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(3),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(4),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(5),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(6),2.00)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(7),2.00)
call DisableTrigger(udg_trg_Archer_Stronghold)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Ninth_Step takes nothing returns nothing
set udg_trg_Ninth_Step=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Ninth_Step,udg_Game_Choose)
call TriggerAddCondition(udg_trg_Ninth_Step,Condition(function Trig_Ninth_Step_Conditions))
call TriggerAddAction(udg_trg_Ninth_Step,function Trig_Ninth_Step_Actions)
endfunction
//===========================================================================
//Trigger:Wait 01 secs
//===========================================================================
function Trig_Wait_01_secs_Actions takes nothing returns nothing
call TriggerSleepAction(0.01)
call DialogDisplayBJ(true,udg_Game_Choose,Player(0))
call DialogDisplayBJ(true,udg_Wait,Player(1))
call DialogDisplayBJ(true,udg_Wait,Player(2))
call DialogDisplayBJ(true,udg_Wait,Player(3))
call DialogDisplayBJ(true,udg_Wait,Player(4))
call DialogDisplayBJ(true,udg_Wait,Player(5))
call DialogDisplayBJ(true,udg_Wait,Player(6))
call DialogDisplayBJ(true,udg_Wait,Player(7))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wait_01_secs takes nothing returns nothing
set udg_trg_Wait_01_secs=CreateTrigger()
call TriggerAddAction(udg_trg_Wait_01_secs,function Trig_Wait_01_secs_Actions)
endfunction
//===========================================================================
//Trigger:Difficulty
//===========================================================================
function Trig_Difficulty_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_Diff_Box,"TRIGSTR_645")
call DialogAddButtonBJ(udg_Diff_Box,"TRIGSTR_648")
set udg_Easy=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_Diff_Box,"TRIGSTR_647")
set udg_Normal=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_Diff_Box,"TRIGSTR_646")
set udg_Hard=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_Diff_Box,"TRIGSTR_694")
set udg_Impossible=GetLastCreatedButtonBJ()
call TriggerExecute(udg_trg_Wait_01_seconds)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Difficulty takes nothing returns nothing
set udg_trg_Difficulty=CreateTrigger()
call TriggerAddAction(udg_trg_Difficulty,function Trig_Difficulty_Actions)
endfunction
//===========================================================================
//Trigger:Impossible
//===========================================================================
function Trig_Impossible_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Impossible))then
return false
endif
return true
endfunction
function Trig_Impossible_Func002C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Impossible_Func003C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==0))then
return false
endif
return true
endfunction
function Trig_Impossible_Func011Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Func011Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Func011Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Func011Func004C takes nothing returns boolean
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(0))==5))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(1))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(2))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(3))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(4))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(5))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(6))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(7))==0))then
return false
endif
return true
endfunction
function Trig_Impossible_Func011C takes nothing returns boolean
if(not Trig_Impossible_Func011Func004C())then
return false
endif
return true
endfunction
function Trig_Impossible_Func013A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Func014A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Func015A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Func016A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Impossible_Actions takes nothing returns nothing
set udg_Impossible_Chosen=1
if(Trig_Impossible_Func002C())then
call CreateNUnitsAtLoc(1,'h00Q',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
else
call DoNothing()
endif
if(Trig_Impossible_Func003C())then
call CreateNUnitsAtLoc(1,'h00M',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
else
call DoNothing()
endif
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_693")
call DialogDisplayBJ(false,udg_Diff_Box,Player(0))
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(0),2.00)
call DisableTrigger(udg_trg_Normal)
call DisableTrigger(udg_trg_Easy)
call DisableTrigger(udg_trg_Hard)
if(Trig_Impossible_Func011C())then
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00G'),function Trig_Impossible_Func011Func001A)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00M'),function Trig_Impossible_Func011Func002A)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00Q'),function Trig_Impossible_Func011Func003A)
call TriggerSleepAction(0.50)
call CreateNUnitsAtLoc(1,'h017',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h01C',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,700)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_2004")
call SetPlayerHandicapXPBJ(GetEnumPlayer(),150.00)
set udg_Solo_Initialized=1
else
endif
call TriggerSleepAction(4.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('ewsp'),function Trig_Impossible_Func013A)
call ForGroupBJ(GetUnitsOfTypeIdAll('etol'),function Trig_Impossible_Func014A)
call ForGroupBJ(GetUnitsOfTypeIdAll('opeo'),function Trig_Impossible_Func015A)
call ForGroupBJ(GetUnitsOfTypeIdAll('ogre'),function Trig_Impossible_Func016A)
call ConditionalTriggerExecute(udg_trg_Lives_Left)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Impossible takes nothing returns nothing
set udg_trg_Impossible=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Impossible,udg_Diff_Box)
call TriggerAddCondition(udg_trg_Impossible,Condition(function Trig_Impossible_Conditions))
call TriggerAddAction(udg_trg_Impossible,function Trig_Impossible_Actions)
endfunction
//===========================================================================
//Trigger:Hard
//===========================================================================
function Trig_Hard_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Hard))then
return false
endif
return true
endfunction
function Trig_Hard_Func004Func003A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Visibility_2)
call FogModifierStart(GetLastCreatedFogModifier())
endfunction
function Trig_Hard_Func004C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Hard_Func005Func003A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Visibility)
call FogModifierStart(GetLastCreatedFogModifier())
endfunction
function Trig_Hard_Func005C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==0))then
return false
endif
return true
endfunction
function Trig_Hard_Func011Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Func011Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Func011Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Func011Func004C takes nothing returns boolean
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(0))==5))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(1))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(2))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(3))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(4))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(5))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(6))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(7))==0))then
return false
endif
return true
endfunction
function Trig_Hard_Func011C takes nothing returns boolean
if(not Trig_Hard_Func011Func004C())then
return false
endif
return true
endfunction
function Trig_Hard_Func013A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Func014A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Func015A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Func016A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Hard_Actions takes nothing returns nothing
set udg_Hard_Chosen=1
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_649")
call DialogDisplayBJ(false,udg_Diff_Box,Player(0))
if(Trig_Hard_Func004C())then
call CreateNUnitsAtLoc(1,'h00Q',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call ForForce(GetPlayersAll(),function Trig_Hard_Func004Func003A)
else
call DoNothing()
endif
if(Trig_Hard_Func005C())then
call CreateNUnitsAtLoc(1,'h00M',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call ForForce(GetPlayersAll(),function Trig_Hard_Func005Func003A)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(0),2.00)
call DisableTrigger(udg_trg_Easy)
call DisableTrigger(udg_trg_Impossible)
call DisableTrigger(udg_trg_Normal)
if(Trig_Hard_Func011C())then
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00G'),function Trig_Hard_Func011Func001A)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00M'),function Trig_Hard_Func011Func002A)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00Q'),function Trig_Hard_Func011Func003A)
call TriggerSleepAction(0.50)
call CreateNUnitsAtLoc(1,'h017',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h01B',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,700)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_2003")
call SetPlayerHandicapXPBJ(GetEnumPlayer(),150.00)
set udg_Solo_Initialized=1
else
endif
call TriggerSleepAction(4.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('ewsp'),function Trig_Hard_Func013A)
call ForGroupBJ(GetUnitsOfTypeIdAll('etol'),function Trig_Hard_Func014A)
call ForGroupBJ(GetUnitsOfTypeIdAll('opeo'),function Trig_Hard_Func015A)
call ForGroupBJ(GetUnitsOfTypeIdAll('ogre'),function Trig_Hard_Func016A)
call ConditionalTriggerExecute(udg_trg_Lives_Left)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Hard takes nothing returns nothing
set udg_trg_Hard=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Hard,udg_Diff_Box)
call TriggerAddCondition(udg_trg_Hard,Condition(function Trig_Hard_Conditions))
call TriggerAddAction(udg_trg_Hard,function Trig_Hard_Actions)
endfunction
//===========================================================================
//Trigger:Normal
//===========================================================================
function Trig_Normal_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Normal))then
return false
endif
return true
endfunction
function Trig_Normal_Func005Func003A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Visibility_2)
call FogModifierStart(GetLastCreatedFogModifier())
endfunction
function Trig_Normal_Func005C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Normal_Func006Func003A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Visibility)
call FogModifierStart(GetLastCreatedFogModifier())
endfunction
function Trig_Normal_Func006C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==0))then
return false
endif
return true
endfunction
function Trig_Normal_Func012Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Func012Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Func012Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Func012Func004C takes nothing returns boolean
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(0))==5))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(1))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(2))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(3))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(4))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(5))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(6))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(7))==0))then
return false
endif
return true
endfunction
function Trig_Normal_Func012C takes nothing returns boolean
if(not Trig_Normal_Func012Func004C())then
return false
endif
return true
endfunction
function Trig_Normal_Func014A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Func015A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Func016A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Func017A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Normal_Actions takes nothing returns nothing
set udg_Normal_Chosen=1
call CreateNUnitsAtLoc(1,'h00I',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_650")
call DialogDisplayBJ(false,udg_Diff_Box,Player(0))
if(Trig_Normal_Func005C())then
call CreateNUnitsAtLoc(1,'h00P',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call ForForce(GetPlayersAll(),function Trig_Normal_Func005Func003A)
else
call DoNothing()
endif
if(Trig_Normal_Func006C())then
call CreateNUnitsAtLoc(1,'h00I',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call ForForce(GetPlayersAll(),function Trig_Normal_Func006Func003A)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(0),2.00)
call DisableTrigger(udg_trg_Impossible)
call DisableTrigger(udg_trg_Easy)
call DisableTrigger(udg_trg_Hard)
if(Trig_Normal_Func012C())then
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00G'),function Trig_Normal_Func012Func001A)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00I'),function Trig_Normal_Func012Func002A)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00P'),function Trig_Normal_Func012Func003A)
call TriggerSleepAction(0.50)
call CreateNUnitsAtLoc(1,'h017',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h01A',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,700)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_2002")
call SetPlayerHandicapXPBJ(GetEnumPlayer(),150.00)
set udg_Solo_Initialized=1
else
endif
call TriggerSleepAction(4.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('ewsp'),function Trig_Normal_Func014A)
call ForGroupBJ(GetUnitsOfTypeIdAll('etol'),function Trig_Normal_Func015A)
call ForGroupBJ(GetUnitsOfTypeIdAll('opeo'),function Trig_Normal_Func016A)
call ForGroupBJ(GetUnitsOfTypeIdAll('ogre'),function Trig_Normal_Func017A)
call ConditionalTriggerExecute(udg_trg_Lives_Left)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Normal takes nothing returns nothing
set udg_trg_Normal=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Normal,udg_Diff_Box)
call TriggerAddCondition(udg_trg_Normal,Condition(function Trig_Normal_Conditions))
call TriggerAddAction(udg_trg_Normal,function Trig_Normal_Actions)
endfunction
//===========================================================================
//Trigger:Easy
//===========================================================================
function Trig_Easy_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Easy))then
return false
endif
return true
endfunction
function Trig_Easy_Func005Func002A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Visibility_2)
call FogModifierStart(GetLastCreatedFogModifier())
endfunction
function Trig_Easy_Func005C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Easy_Func006Func002A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rct_Visibility)
call FogModifierStart(GetLastCreatedFogModifier())
endfunction
function Trig_Easy_Func006C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==0))then
return false
endif
return true
endfunction
function Trig_Easy_Func012Func001C takes nothing returns boolean
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(0))==5))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(1))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(2))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(3))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(4))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(5))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(6))==0))then
return false
endif
if(not(CountLivingPlayerUnitsOfTypeId('ewsp',Player(7))==0))then
return false
endif
return true
endfunction
function Trig_Easy_Func012Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Easy_Func012C takes nothing returns boolean
if(not Trig_Easy_Func012Func001C())then
return false
endif
return true
endfunction
function Trig_Easy_Func014A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Easy_Func015A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Easy_Func016A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Easy_Func017A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Easy_Actions takes nothing returns nothing
set udg_Life_Count=25
set udg_Easy_Chosen=1
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_651")
call DialogDisplayBJ(false,udg_Diff_Box,Player(0))
if(Trig_Easy_Func005C())then
call ForForce(GetPlayersAll(),function Trig_Easy_Func005Func002A)
else
call DoNothing()
endif
if(Trig_Easy_Func006C())then
call ForForce(GetPlayersAll(),function Trig_Easy_Func006Func002A)
else
call DoNothing()
endif
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,Player(0),2.00)
call DisableTrigger(udg_trg_Impossible)
call DisableTrigger(udg_trg_Hard)
call DisableTrigger(udg_trg_Normal)
if(Trig_Easy_Func012C())then
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(8),'h00G'),function Trig_Easy_Func012Func002A)
call TriggerSleepAction(0.50)
call CreateNUnitsAtLoc(1,'h017',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h019',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,700)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1667")
call SetPlayerHandicapXPBJ(GetEnumPlayer(),150.00)
set udg_Solo_Initialized=1
else
endif
call TriggerSleepAction(4.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('ewsp'),function Trig_Easy_Func014A)
call ForGroupBJ(GetUnitsOfTypeIdAll('etol'),function Trig_Easy_Func015A)
call ForGroupBJ(GetUnitsOfTypeIdAll('opeo'),function Trig_Easy_Func016A)
call ForGroupBJ(GetUnitsOfTypeIdAll('ogre'),function Trig_Easy_Func017A)
call ConditionalTriggerExecute(udg_trg_Lives_Left)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Easy takes nothing returns nothing
set udg_trg_Easy=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Easy,udg_Diff_Box)
call TriggerAddCondition(udg_trg_Easy,Condition(function Trig_Easy_Conditions))
call TriggerAddAction(udg_trg_Easy,function Trig_Easy_Actions)
endfunction
//===========================================================================
//Trigger:Wait 01 seconds
//===========================================================================
function Trig_Wait_01_seconds_Actions takes nothing returns nothing
call TriggerSleepAction(0.01)
call DialogDisplayBJ(true,udg_Diff_Box,Player(0))
endfunction
//===========================================================================
function InitTrig_Wait_01_seconds takes nothing returns nothing
set udg_trg_Wait_01_seconds=CreateTrigger()
call TriggerAddAction(udg_trg_Wait_01_seconds,function Trig_Wait_01_seconds_Actions)
endfunction
//===========================================================================
//Trigger:Defense or Siege
//===========================================================================
function Trig_Defense_or_Siege_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_Choose_Box,"TRIGSTR_533")
call DialogAddButtonBJ(udg_Choose_Box,"TRIGSTR_535")
set udg_Siege_Mode=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_Choose_Box,"TRIGSTR_534")
set udg_Defense_Mode=GetLastCreatedButtonBJ()
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Defense_or_Siege takes nothing returns nothing
set udg_trg_Defense_or_Siege=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Defense_or_Siege,0.50)
call TriggerAddAction(udg_trg_Defense_or_Siege,function Trig_Defense_or_Siege_Actions)
endfunction
//===========================================================================
//Trigger:Show Dialog
//===========================================================================
function Trig_Show_Dialog_Actions takes nothing returns nothing
call DialogDisplayBJ(true,udg_Choose_Box,Player(0))
endfunction
//===========================================================================
function InitTrig_Show_Dialog takes nothing returns nothing
set udg_trg_Show_Dialog=CreateTrigger()
call TriggerAddAction(udg_trg_Show_Dialog,function Trig_Show_Dialog_Actions)
endfunction
//===========================================================================
//Trigger:Defense Mode
//===========================================================================
function Trig_Defense_Mode_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Defense_Mode))then
return false
endif
return true
endfunction
function Trig_Defense_Mode_Actions takes nothing returns nothing
call EnableTrigger(udg_trg_Move_1)
call DialogDisplayBJ(false,udg_Choose_Box,Player(0))
call CreateNUnitsAtLoc(1,'h00G',Player(8),GetRectCenter(udg_rct_Difficulty),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_596")
call TriggerExecute(udg_trg_Difficulty)
call DisableTrigger(udg_trg_Siege_Mode)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Defense_Mode takes nothing returns nothing
set udg_trg_Defense_Mode=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Defense_Mode,udg_Choose_Box)
call TriggerAddCondition(udg_trg_Defense_Mode,Condition(function Trig_Defense_Mode_Conditions))
call TriggerAddAction(udg_trg_Defense_Mode,function Trig_Defense_Mode_Actions)
endfunction
//===========================================================================
//Trigger:Siege Mode
//===========================================================================
function Trig_Siege_Mode_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_Siege_Mode))then
return false
endif
return true
endfunction
function Trig_Siege_Mode_Actions takes nothing returns nothing
call EnableTrigger(udg_trg_Attack_Move_1)
call DialogDisplayBJ(false,udg_Choose_Box,Player(0))
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_597")
call TriggerExecute(udg_trg_Difficulty)
call DisableTrigger(udg_trg_Defense_Mode)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Siege_Mode takes nothing returns nothing
set udg_trg_Siege_Mode=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trg_Siege_Mode,udg_Choose_Box)
call TriggerAddCondition(udg_trg_Siege_Mode,Condition(function Trig_Siege_Mode_Conditions))
call TriggerAddAction(udg_trg_Siege_Mode,function Trig_Siege_Mode_Actions)
endfunction
//===========================================================================
//Trigger:Elapsed 2 Seconds
//===========================================================================
function Trig_Elapsed_2_Seconds_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("right hand",udg_unit_H008_0014,"war3mapImported\\elven bow.mdx")
call AddSpecialEffectTargetUnitBJ("right hand",udg_unit_H00U_0009,"war3mapImported\\elven bow.mdx")
call LeaderboardDisplayBJ(true,GetLastCreatedLeaderboard())
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Elapsed_2_Seconds takes nothing returns nothing
set udg_trg_Elapsed_2_Seconds=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Elapsed_2_Seconds,2.00)
call TriggerAddAction(udg_trg_Elapsed_2_Seconds,function Trig_Elapsed_2_Seconds_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P1
//===========================================================================
function Trig_Race_Move_Right_P1_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(0)))then
return false
endif
if(not(udg_P1_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P1_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P1_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P1_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P1 takes nothing returns nothing
set udg_trg_Race_Move_Right_P1=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P1)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P1,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P1,Condition(function Trig_Race_Move_Right_P1_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P1,function Trig_Race_Move_Right_P1_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P2
//===========================================================================
function Trig_Race_Move_Right_P2_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(1)))then
return false
endif
if(not(udg_P2_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P2_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P2_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P2_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(1),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P2 takes nothing returns nothing
set udg_trg_Race_Move_Right_P2=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P2)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P2,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P2,Condition(function Trig_Race_Move_Right_P2_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P2,function Trig_Race_Move_Right_P2_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P3
//===========================================================================
function Trig_Race_Move_Right_P3_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(2)))then
return false
endif
if(not(udg_P3_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P3_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P3_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P3_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P3 takes nothing returns nothing
set udg_trg_Race_Move_Right_P3=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P3)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P3,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P3,Condition(function Trig_Race_Move_Right_P3_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P3,function Trig_Race_Move_Right_P3_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P4
//===========================================================================
function Trig_Race_Move_Right_P4_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(3)))then
return false
endif
if(not(udg_P4_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P4_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P4_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P4_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(3),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P4 takes nothing returns nothing
set udg_trg_Race_Move_Right_P4=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P4)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P4,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P4,Condition(function Trig_Race_Move_Right_P4_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P4,function Trig_Race_Move_Right_P4_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P5
//===========================================================================
function Trig_Race_Move_Right_P5_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(4)))then
return false
endif
if(not(udg_P5_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P5_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P5_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P5_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(4),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P5 takes nothing returns nothing
set udg_trg_Race_Move_Right_P5=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P5)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P5,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P5,Condition(function Trig_Race_Move_Right_P5_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P5,function Trig_Race_Move_Right_P5_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P6
//===========================================================================
function Trig_Race_Move_Right_P6_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(5)))then
return false
endif
if(not(udg_P6_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P6_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P6_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P6_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(5),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P6 takes nothing returns nothing
set udg_trg_Race_Move_Right_P6=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P6)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P6,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P6,Condition(function Trig_Race_Move_Right_P6_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P6,function Trig_Race_Move_Right_P6_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P7
//===========================================================================
function Trig_Race_Move_Right_P7_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(6)))then
return false
endif
if(not(udg_P7_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P7_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P7_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P7_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(6),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P7 takes nothing returns nothing
set udg_trg_Race_Move_Right_P7=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P7)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P7,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P7,Condition(function Trig_Race_Move_Right_P7_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P7,function Trig_Race_Move_Right_P7_Actions)
endfunction
//===========================================================================
//Trigger:Race Move Right P8
//===========================================================================
function Trig_Race_Move_Right_P8_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(7)))then
return false
endif
if(not(udg_P8_Random_Team==2))then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P8_Conditions takes nothing returns boolean
if(not Trig_Race_Move_Right_P8_Func005C())then
return false
endif
return true
endfunction
function Trig_Race_Move_Right_P8_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Spawn))
call TriggerSleepAction(1.00)
call PanCameraToTimedLocForPlayer(Player(7),GetRectCenter(udg_rct_9th_Step_Archer_Spawn),1.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Race_Move_Right_P8 takes nothing returns nothing
set udg_trg_Race_Move_Right_P8=CreateTrigger()
call DisableTrigger(udg_trg_Race_Move_Right_P8)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Move_Right_P8,udg_rct_Archer_Spawn)
call TriggerAddCondition(udg_trg_Race_Move_Right_P8,Condition(function Trig_Race_Move_Right_P8_Conditions))
call TriggerAddAction(udg_trg_Race_Move_Right_P8,function Trig_Race_Move_Right_P8_Actions)
endfunction
//===========================================================================
//Trigger:Hero Death
//===========================================================================
function Trig_Hero_Death_Func001C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
return true
endfunction
function Trig_Hero_Death_Conditions takes nothing returns boolean
if(not Trig_Hero_Death_Func001C())then
return false
endif
return true
endfunction
function Trig_Hero_Death_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_167")
call TriggerSleepAction(40.00)
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rct_Archer_Revival),true)
endfunction
//===========================================================================
function InitTrig_Hero_Death takes nothing returns nothing
set udg_trg_Hero_Death=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Hero_Death,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Hero_Death,Condition(function Trig_Hero_Death_Conditions))
call TriggerAddAction(udg_trg_Hero_Death,function Trig_Hero_Death_Actions)
endfunction
//===========================================================================
//Trigger:Race Revival Move
//===========================================================================
function Trig_Race_Revival_Move_Func002C takes nothing returns boolean
if((GetOwningPlayer(GetEnteringUnit())==Player(1)))then
return true
endif
if((GetOwningPlayer(GetEnteringUnit())==Player(3)))then
return true
endif
if((GetOwningPlayer(GetEnteringUnit())==Player(5)))then
return true
endif
if((GetOwningPlayer(GetEnteringUnit())==Player(7)))then
return true
endif
return false
endfunction
function Trig_Race_Revival_Move_Conditions takes nothing returns boolean
if(not Trig_Race_Revival_Move_Func002C())then
return false
endif
return true
endfunction
function Trig_Race_Revival_Move_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rct_9th_Step_Archer_Revival))
endfunction
//===========================================================================
function InitTrig_Race_Revival_Move takes nothing returns nothing
set udg_trg_Race_Revival_Move=CreateTrigger()
call DisableTrigger(udg_trg_Race_Revival_Move)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Revival_Move,udg_rct_Archer_Revival)
call TriggerAddCondition(udg_trg_Race_Revival_Move,Condition(function Trig_Race_Revival_Move_Conditions))
call TriggerAddAction(udg_trg_Race_Revival_Move,function Trig_Race_Revival_Move_Actions)
endfunction
//===========================================================================
//Trigger:P1
//===========================================================================
function Trig_P1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P1_Actions takes nothing returns nothing
call StartTimerBJ(udg_P1_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(0))
set udg_P1_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P1_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P1 takes nothing returns nothing
set udg_trg_P1=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P1,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P1,Condition(function Trig_P1_Conditions))
call TriggerAddAction(udg_trg_P1,function Trig_P1_Actions)
endfunction
//===========================================================================
//Trigger:P2
//===========================================================================
function Trig_P2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P2_Actions takes nothing returns nothing
call StartTimerBJ(udg_P2_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(1))
set udg_P2_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P2_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P2 takes nothing returns nothing
set udg_trg_P2=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P2,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P2,Condition(function Trig_P2_Conditions))
call TriggerAddAction(udg_trg_P2,function Trig_P2_Actions)
endfunction
//===========================================================================
//Trigger:P3
//===========================================================================
function Trig_P3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P3_Actions takes nothing returns nothing
call StartTimerBJ(udg_P3_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(2))
set udg_P3_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P3_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P3 takes nothing returns nothing
set udg_trg_P3=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P3,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P3,Condition(function Trig_P3_Conditions))
call TriggerAddAction(udg_trg_P3,function Trig_P3_Actions)
endfunction
//===========================================================================
//Trigger:P4
//===========================================================================
function Trig_P4_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P4_Actions takes nothing returns nothing
call StartTimerBJ(udg_P4_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(3))
set udg_P4_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P4_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P4 takes nothing returns nothing
set udg_trg_P4=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P4,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P4,Condition(function Trig_P4_Conditions))
call TriggerAddAction(udg_trg_P4,function Trig_P4_Actions)
endfunction
//===========================================================================
//Trigger:P5
//===========================================================================
function Trig_P5_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P5_Actions takes nothing returns nothing
call StartTimerBJ(udg_P5_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(4))
set udg_P5_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P5_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P5 takes nothing returns nothing
set udg_trg_P5=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P5,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P5,Condition(function Trig_P5_Conditions))
call TriggerAddAction(udg_trg_P5,function Trig_P5_Actions)
endfunction
//===========================================================================
//Trigger:P6
//===========================================================================
function Trig_P6_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P6_Actions takes nothing returns nothing
call StartTimerBJ(udg_P6_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(5))
set udg_P6_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P6_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P6 takes nothing returns nothing
set udg_trg_P6=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P6,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P6,Condition(function Trig_P6_Conditions))
call TriggerAddAction(udg_trg_P6,function Trig_P6_Actions)
endfunction
//===========================================================================
//Trigger:P7
//===========================================================================
function Trig_P7_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P7_Actions takes nothing returns nothing
call StartTimerBJ(udg_P7_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(6))
set udg_P7_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P7_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P7 takes nothing returns nothing
set udg_trg_P7=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P7,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P7,Condition(function Trig_P7_Conditions))
call TriggerAddAction(udg_trg_P7,function Trig_P7_Actions)
endfunction
//===========================================================================
//Trigger:P8
//===========================================================================
function Trig_P8_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_P8_Actions takes nothing returns nothing
call StartTimerBJ(udg_P8_Death,false,40.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),(GetPlayerName(GetTriggerPlayer())+" возрождается"))
call TimerDialogDisplayForPlayerBJ(true,GetLastCreatedTimerDialogBJ(),Player(7))
set udg_P8_Timer_Window=GetLastCreatedTimerDialogBJ()
call TriggerSleepAction(40.00)
call DestroyTimerDialogBJ(udg_P8_Timer_Window)
endfunction
//===========================================================================
function InitTrig_P8 takes nothing returns nothing
set udg_trg_P8=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_P8,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_P8,Condition(function Trig_P8_Conditions))
call TriggerAddAction(udg_trg_P8,function Trig_P8_Actions)
endfunction
//===========================================================================
//Trigger:Ranger Info
//===========================================================================
function Trig_Ranger_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_Hvwd_0015))then
return false
endif
return true
endfunction
function Trig_Ranger_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_Hvwd_0015,100,100,100)
call SetUnitScalePercent(udg_unit_Hvwd_0015,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_005")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_Hvwd_0015,100,100,100)
endfunction
//===========================================================================
function InitTrig_Ranger_Info takes nothing returns nothing
set udg_trg_Ranger_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Ranger_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Ranger_Info,Condition(function Trig_Ranger_Info_Conditions))
call TriggerAddAction(udg_trg_Ranger_Info,function Trig_Ranger_Info_Actions)
endfunction
//===========================================================================
//Trigger:Rogue Info
//===========================================================================
function Trig_Rogue_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_H000_0013))then
return false
endif
return true
endfunction
function Trig_Rogue_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_H000_0013,100,100,100)
call SetUnitScalePercent(udg_unit_H000_0013,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_006")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_H000_0013,100,100,100)
endfunction
//===========================================================================
function InitTrig_Rogue_Info takes nothing returns nothing
set udg_trg_Rogue_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Rogue_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Rogue_Info,Condition(function Trig_Rogue_Info_Conditions))
call TriggerAddAction(udg_trg_Rogue_Info,function Trig_Rogue_Info_Actions)
endfunction
//===========================================================================
//Trigger:Naturalist Info
//===========================================================================
function Trig_Naturalist_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_H008_0014))then
return false
endif
return true
endfunction
function Trig_Naturalist_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_H008_0014,100,100,100)
call SetUnitScalePercent(udg_unit_H008_0014,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_245")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_H008_0014,100,100,100)
endfunction
//===========================================================================
function InitTrig_Naturalist_Info takes nothing returns nothing
set udg_trg_Naturalist_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Naturalist_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Naturalist_Info,Condition(function Trig_Naturalist_Info_Conditions))
call TriggerAddAction(udg_trg_Naturalist_Info,function Trig_Naturalist_Info_Actions)
endfunction
//===========================================================================
//Trigger:Commander Info
//===========================================================================
function Trig_Commander_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_H001_0010))then
return false
endif
return true
endfunction
function Trig_Commander_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_H001_0010,100,100,100)
call SetUnitScalePercent(udg_unit_H001_0010,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_007")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_H001_0010,100,100,100)
endfunction
//===========================================================================
function InitTrig_Commander_Info takes nothing returns nothing
set udg_trg_Commander_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Commander_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Commander_Info,Condition(function Trig_Commander_Info_Conditions))
call TriggerAddAction(udg_trg_Commander_Info,function Trig_Commander_Info_Actions)
endfunction
//===========================================================================
//Trigger:Sentry Info
//===========================================================================
function Trig_Sentry_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_H00B_0012))then
return false
endif
return true
endfunction
function Trig_Sentry_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_H00B_0012,100,100,100)
call SetUnitScalePercent(udg_unit_H00B_0012,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_469")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_H00B_0012,100,100,100)
endfunction
//===========================================================================
function InitTrig_Sentry_Info takes nothing returns nothing
set udg_trg_Sentry_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Sentry_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Sentry_Info,Condition(function Trig_Sentry_Info_Conditions))
call TriggerAddAction(udg_trg_Sentry_Info,function Trig_Sentry_Info_Actions)
endfunction
//===========================================================================
//Trigger:Assassin Info
//===========================================================================
function Trig_Assassin_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_H00U_0009))then
return false
endif
return true
endfunction
function Trig_Assassin_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_H00U_0009,100,100,100)
call SetUnitScalePercent(udg_unit_H00U_0009,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_776")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_H00U_0009,100,100,100)
endfunction
//===========================================================================
function InitTrig_Assassin_Info takes nothing returns nothing
set udg_trg_Assassin_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Assassin_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Assassin_Info,Condition(function Trig_Assassin_Info_Conditions))
call TriggerAddAction(udg_trg_Assassin_Info,function Trig_Assassin_Info_Actions)
endfunction
//===========================================================================
//Trigger:Holy Info
//===========================================================================
function Trig_Holy_Info_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit_H00S_0011))then
return false
endif
return true
endfunction
function Trig_Holy_Info_Actions takes nothing returns nothing
call SetUnitScalePercent(udg_unit_H00S_0011,100,100,100)
call SetUnitScalePercent(udg_unit_H00S_0011,175.00,175.00,175.00)
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_816")
call TriggerSleepAction(2.50)
call SetUnitScalePercent(udg_unit_H00S_0011,100,100,100)
endfunction
//===========================================================================
function InitTrig_Holy_Info takes nothing returns nothing
set udg_trg_Holy_Info=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trg_Holy_Info,Player(7),true)
call TriggerAddCondition(udg_trg_Holy_Info,Condition(function Trig_Holy_Info_Conditions))
call TriggerAddAction(udg_trg_Holy_Info,function Trig_Holy_Info_Actions)
endfunction
//===========================================================================
//Trigger:Ranger Choose
//===========================================================================
function Trig_Ranger_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Ranger_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'Hvwd',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Ranger_Choose takes nothing returns nothing
set udg_trg_Ranger_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(0),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(0),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(1),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(1),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(2),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(2),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(2),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(3),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(3),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(4),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(4),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(5),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(5),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(6),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(6),"TRIGSTR_2113",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(7),"TRIGSTR_2112",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Ranger_Choose,Player(7),"TRIGSTR_2113",true)
call TriggerAddCondition(udg_trg_Ranger_Choose,Condition(function Trig_Ranger_Choose_Conditions))
call TriggerAddAction(udg_trg_Ranger_Choose,function Trig_Ranger_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Rogue Choose
//===========================================================================
function Trig_Rogue_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Rogue_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H000',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Rogue_Choose takes nothing returns nothing
set udg_trg_Rogue_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(0),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(0),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(0),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(1),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(1),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(1),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(2),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(2),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(2),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(3),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(3),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(3),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(4),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(4),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(4),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(5),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(5),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(5),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(6),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(6),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(6),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(7),"TRIGSTR_2114",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(7),"TRIGSTR_2115",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Rogue_Choose,Player(7),"TRIGSTR_2114",true)
call TriggerAddCondition(udg_trg_Rogue_Choose,Condition(function Trig_Rogue_Choose_Conditions))
call TriggerAddAction(udg_trg_Rogue_Choose,function Trig_Rogue_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Commander Choose
//===========================================================================
function Trig_Commander_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Commander_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H001',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Commander_Choose takes nothing returns nothing
set udg_trg_Commander_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(0),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(0),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(1),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(1),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(2),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(2),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(3),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(3),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(4),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(4),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(5),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(5),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(6),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(6),"TRIGSTR_2117",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(7),"TRIGSTR_2116",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Commander_Choose,Player(7),"TRIGSTR_2117",true)
call TriggerAddCondition(udg_trg_Commander_Choose,Condition(function Trig_Commander_Choose_Conditions))
call TriggerAddAction(udg_trg_Commander_Choose,function Trig_Commander_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Sentry Choose
//===========================================================================
function Trig_Sentry_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Sentry_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H00B',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Sentry_Choose takes nothing returns nothing
set udg_trg_Sentry_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(0),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(0),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(0),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(1),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(1),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(1),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(2),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(2),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(2),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(3),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(3),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(3),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(4),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(4),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(4),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(5),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(5),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(5),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(6),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(6),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(6),"TRIGSTR_2120",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(7),"TRIGSTR_2119",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(7),"TRIGSTR_2118",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sentry_Choose,Player(7),"TRIGSTR_2120",true)
call TriggerAddCondition(udg_trg_Sentry_Choose,Condition(function Trig_Sentry_Choose_Conditions))
call TriggerAddAction(udg_trg_Sentry_Choose,function Trig_Sentry_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Naturalist Choose
//===========================================================================
function Trig_Naturalist_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Naturalist_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H008',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call AddSpecialEffectTargetUnitBJ("right hand",GetLastCreatedUnit(),"war3mapImported\\elven bow.mdx")
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Naturalist_Choose takes nothing returns nothing
set udg_trg_Naturalist_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(0),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(0),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(0),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(1),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(1),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(1),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(2),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(2),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(2),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(3),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(3),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(3),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(4),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(4),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(4),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(5),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(5),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(5),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(6),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(6),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(6),"TRIGSTR_2122",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(7),"TRIGSTR_2121",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(7),"TRIGSTR_2123",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Naturalist_Choose,Player(7),"TRIGSTR_2122",true)
call TriggerAddCondition(udg_trg_Naturalist_Choose,Condition(function Trig_Naturalist_Choose_Conditions))
call TriggerAddAction(udg_trg_Naturalist_Choose,function Trig_Naturalist_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Assassin Choose
//===========================================================================
function Trig_Assassin_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Assassin_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H00T',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call AddSpecialEffectTargetUnitBJ("right hand",GetLastCreatedUnit(),"war3mapImported\\elven bow.mdx")
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
call UnitAddAbilityBJ('A01P',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Assassin_Choose takes nothing returns nothing
set udg_trg_Assassin_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(0),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(0),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(1),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(1),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(2),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(2),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(3),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(3),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(4),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(4),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(5),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(5),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(6),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(6),"TRIGSTR_2125",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(7),"TRIGSTR_2124",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Assassin_Choose,Player(7),"TRIGSTR_2125",true)
call TriggerAddCondition(udg_trg_Assassin_Choose,Condition(function Trig_Assassin_Choose_Conditions))
call TriggerAddAction(udg_trg_Assassin_Choose,function Trig_Assassin_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Holy Choose
//===========================================================================
function Trig_Holy_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Holy_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H00S',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Holy_Choose takes nothing returns nothing
set udg_trg_Holy_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(0),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(0),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(0),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(0),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(1),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(1),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(1),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(1),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(2),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(2),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(2),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(2),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(3),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(3),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(3),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(3),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(4),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(4),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(4),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(4),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(5),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(5),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(5),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(5),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(6),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(6),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(6),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(6),"TRIGSTR_2127",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(7),"TRIGSTR_2128",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(7),"TRIGSTR_2126",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(7),"TRIGSTR_2129",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Holy_Choose,Player(7),"TRIGSTR_2127",true)
call TriggerAddCondition(udg_trg_Holy_Choose,Condition(function Trig_Holy_Choose_Conditions))
call TriggerAddAction(udg_trg_Holy_Choose,function Trig_Holy_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Iron Choose
//===========================================================================
function Trig_Iron_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]>=250))then
return false
endif
return true
endfunction
function Trig_Iron_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H00Y',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Iron_Choose takes nothing returns nothing
set udg_trg_Iron_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(0),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(0),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(0),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(0),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(1),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(1),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(1),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(1),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(2),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(2),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(2),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(2),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(3),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(3),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(3),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(3),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(4),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(4),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(4),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(4),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(5),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(5),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(5),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(5),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(6),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(6),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(6),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(6),"TRIGSTR_2133",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(7),"TRIGSTR_2132",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(7),"TRIGSTR_2130",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(7),"TRIGSTR_2131",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Iron_Choose,Player(7),"TRIGSTR_2133",true)
call TriggerAddCondition(udg_trg_Iron_Choose,Condition(function Trig_Iron_Choose_Conditions))
call TriggerAddAction(udg_trg_Iron_Choose,function Trig_Iron_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Advocate Choose
//===========================================================================
function Trig_Advocate_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]>=999))then
return false
endif
return true
endfunction
function Trig_Advocate_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H00Z',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call AddSpecialEffectTargetUnitBJ("right hand",GetLastCreatedUnit(),"war3mapImported\\elven bow.mdx")
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Advocate_Choose takes nothing returns nothing
set udg_trg_Advocate_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(0),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(0),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(0),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(1),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(1),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(1),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(2),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(2),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(2),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(3),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(3),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(3),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(4),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(4),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(4),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(5),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(5),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(5),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(6),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(6),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(6),"TRIGSTR_2135",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(7),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(7),"TRIGSTR_2134",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advocate_Choose,Player(7),"TRIGSTR_2135",true)
call TriggerAddCondition(udg_trg_Advocate_Choose,Condition(function Trig_Advocate_Choose_Conditions))
call TriggerAddAction(udg_trg_Advocate_Choose,function Trig_Advocate_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Elementalist Choose
//===========================================================================
function Trig_Elementalist_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]>=550))then
return false
endif
return true
endfunction
function Trig_Elementalist_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H011',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Elementalist_Choose takes nothing returns nothing
set udg_trg_Elementalist_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(0),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(1),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(2),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(3),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(4),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(5),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(6),"TRIGSTR_2136",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Elementalist_Choose,Player(7),"TRIGSTR_2136",true)
call TriggerAddCondition(udg_trg_Elementalist_Choose,Condition(function Trig_Elementalist_Choose_Conditions))
call TriggerAddAction(udg_trg_Elementalist_Choose,function Trig_Elementalist_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Advisor Choose
//===========================================================================
function Trig_Advisor_Choose_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]>=2000))then
return false
endif
return true
endfunction
function Trig_Advisor_Choose_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,'H018',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),270.00)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Advisor_Choose takes nothing returns nothing
set udg_trg_Advisor_Choose=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(0),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(0),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(1),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(1),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(2),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(2),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(3),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(3),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(4),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(4),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(5),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(5),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(6),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(6),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(7),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Advisor_Choose,Player(7),"TRIGSTR_2137",true)
call TriggerAddCondition(udg_trg_Advisor_Choose,Condition(function Trig_Advisor_Choose_Conditions))
call TriggerAddAction(udg_trg_Advisor_Choose,function Trig_Advisor_Choose_Actions)
endfunction
//===========================================================================
//Trigger:Random
//===========================================================================
function Trig_Random_Conditions takes nothing returns boolean
if(not(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)==1))then
return false
endif
return true
endfunction
function Trig_Random_Func006Func003C takes nothing returns boolean
if((GetUnitTypeId(GetLastCreatedUnit())=='H008'))then
return true
endif
if((GetUnitTypeId(GetLastCreatedUnit())=='H00Z'))then
return true
endif
return false
endfunction
function Trig_Random_Func006C takes nothing returns boolean
if(not Trig_Random_Func006Func003C())then
return false
endif
return true
endfunction
function Trig_Random_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,0)
call CreateNUnitsAtLoc(1,GetUnitTypeId(GroupPickRandomUnit(GetUnitsInRectAll(udg_rct_Archer_area))),GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Archer_Spawn),bj_UNIT_FACING)
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.00)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rct_Archer_Spawn),1.00)
call UnitAddItemByIdSwapped('I00A',GetLastCreatedUnit())
if(Trig_Random_Func006C())then
call AddSpecialEffectTargetUnitBJ("right hand",GetLastCreatedUnit(),"war3mapImported\\elven bow.mdx")
else
call DoNothing()
endif
endfunction
//===========================================================================
function InitTrig_Random takes nothing returns nothing
set udg_trg_Random=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(0),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(1),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(2),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(3),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(4),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(5),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(6),"TRIGSTR_2137",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Random,Player(7),"TRIGSTR_2137",true)
call TriggerAddCondition(udg_trg_Random,Condition(function Trig_Random_Conditions))
call TriggerAddAction(udg_trg_Random,function Trig_Random_Actions)
endfunction
//===========================================================================
//Trigger:Repick
//===========================================================================
function Trig_Repick_Func001Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func001C takes nothing returns boolean
if(not Trig_Repick_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func002Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func002C takes nothing returns boolean
if(not Trig_Repick_Func002Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func003Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func003C takes nothing returns boolean
if(not Trig_Repick_Func003Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func004Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func004C takes nothing returns boolean
if(not Trig_Repick_Func004Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func005Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func005C takes nothing returns boolean
if(not Trig_Repick_Func005Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func006Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func006C takes nothing returns boolean
if(not Trig_Repick_Func006Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func007Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func007C takes nothing returns boolean
if(not Trig_Repick_Func007Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func008Func001C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
if(not(udg_Race_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Repick_Func008C takes nothing returns boolean
if(not Trig_Repick_Func008Func001C())then
return false
endif
return true
endfunction
function Trig_Repick_Func009A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Repick_Actions takes nothing returns nothing
if(Trig_Repick_Func001C())then
call EnableTrigger(udg_trg_Race_Move_Right_P1)
else
endif
if(Trig_Repick_Func002C())then
call EnableTrigger(udg_trg_Race_Move_Right_P2)
else
endif
if(Trig_Repick_Func003C())then
call EnableTrigger(udg_trg_Race_Move_Right_P3)
else
endif
if(Trig_Repick_Func004C())then
call EnableTrigger(udg_trg_Race_Move_Right_P4)
else
endif
if(Trig_Repick_Func005C())then
call EnableTrigger(udg_trg_Race_Move_Right_P5)
else
endif
if(Trig_Repick_Func006C())then
call EnableTrigger(udg_trg_Race_Move_Right_P6)
else
endif
if(Trig_Repick_Func007C())then
call EnableTrigger(udg_trg_Race_Move_Right_P7)
else
endif
if(Trig_Repick_Func008C())then
call EnableTrigger(udg_trg_Race_Move_Right_P8)
else
endif
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),GetTriggerPlayer()),function Trig_Repick_Func009A)
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,1)
call TriggerSleepAction(0.50)
call CameraSetupApplyForPlayer(true,udg_cam_Archers_View,GetTriggerPlayer(),0.50)
endfunction
//===========================================================================
function InitTrig_Repick takes nothing returns nothing
set udg_trg_Repick=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(0),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(1),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(2),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(3),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(4),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(5),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(6),"TRIGSTR_2139",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Repick,Player(7),"TRIGSTR_2139",true)
call TriggerAddAction(udg_trg_Repick,function Trig_Repick_Actions)
endfunction
//===========================================================================
//Trigger:Serpent Warders
//===========================================================================
function Trig_Serpent_Warders_Func002C takes nothing returns boolean
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(0)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(1)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(2)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(3)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(4)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(5)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(6)))then
return true
endif
if((GetOwningPlayer(GetAttackedUnitBJ())==Player(7)))then
return true
endif
return false
endfunction
function Trig_Serpent_Warders_Conditions takes nothing returns boolean
if(not Trig_Serpent_Warders_Func002C())then
return false
endif
return true
endfunction
function Trig_Serpent_Warders_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetAttacker(),"ward",GetUnitLoc(GetAttacker()))
endfunction
//===========================================================================
function InitTrig_Serpent_Warders takes nothing returns nothing
set udg_trg_Serpent_Warders=CreateTrigger()
call DisableTrigger(udg_trg_Serpent_Warders)
call TriggerRegisterAnyUnitEventBJ(udg_trg_Serpent_Warders,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trg_Serpent_Warders,Condition(function Trig_Serpent_Warders_Conditions))
call TriggerAddAction(udg_trg_Serpent_Warders,function Trig_Serpent_Warders_Actions)
endfunction
//===========================================================================
//Trigger:Attack Move 1
//===========================================================================
function Trig_Attack_Move_1_Actions takes nothing returns nothing
call GroupPointOrderLocBJ(GetUnitsInRectOfPlayer(udg_rct_Enemy_Spawn,Player(8)),"attack",GetRectCenter(udg_rct_Lose_a_Life))
call GroupPointOrderLocBJ(GetUnitsInRectOfPlayer(udg_rct_9th_Step_Enemy_Spawn,Player(8)),"attack",GetRectCenter(udg_rct_9th_Step_Lose_a_Life))
endfunction
//===========================================================================
function InitTrig_Attack_Move_1 takes nothing returns nothing
set udg_trg_Attack_Move_1=CreateTrigger()
call DisableTrigger(udg_trg_Attack_Move_1)
call TriggerRegisterTimerEventPeriodic(udg_trg_Attack_Move_1,4.00)
call TriggerAddAction(udg_trg_Attack_Move_1,function Trig_Attack_Move_1_Actions)
endfunction
//===========================================================================
//Trigger:Move 1
//===========================================================================
function Trig_Move_1_Actions takes nothing returns nothing
call GroupPointOrderLocBJ(GetUnitsInRectOfPlayer(udg_rct_Enemy_Spawn,Player(8)),"move",GetRectCenter(udg_rct_Lose_a_Life))
endfunction
//===========================================================================
function InitTrig_Move_1 takes nothing returns nothing
set udg_trg_Move_1=CreateTrigger()
call DisableTrigger(udg_trg_Move_1)
call TriggerRegisterTimerEventPeriodic(udg_trg_Move_1,4.00)
call TriggerAddAction(udg_trg_Move_1,function Trig_Move_1_Actions)
endfunction
//===========================================================================
//Trigger:Remove
//===========================================================================
function Trig_Remove_Actions takes nothing returns nothing
call RemoveUnit(GetEnteringUnit())
endfunction
//===========================================================================
function InitTrig_Remove takes nothing returns nothing
set udg_trg_Remove=CreateTrigger()
call DisableTrigger(udg_trg_Remove)
call TriggerRegisterEnterRectSimple(udg_trg_Remove,udg_rct_Archer_Revival)
call TriggerRegisterEnterRectSimple(udg_trg_Remove,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddAction(udg_trg_Remove,function Trig_Remove_Actions)
endfunction
//===========================================================================
//Trigger:Defeat
//===========================================================================
function Trig_Defeat_Conditions takes nothing returns boolean
if(not(udg_Life_Count<=0))then
return false
endif
return true
endfunction
function Trig_Defeat_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Defeat_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1247")
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Defeat_Func002A)
call DisableTrigger(udg_trg_Wave_12_BOSS)
call DisableTrigger(udg_trg_Wave_12_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_13_BONUS_AIR)
call DisableTrigger(udg_trg_Wave_14_MINIBOSS)
call DisableTrigger(udg_trg_Wave_15)
call DisableTrigger(udg_trg_Wave_16)
call DisableTrigger(udg_trg_Wave_17_AIR)
call DisableTrigger(udg_trg_Wave_18_BOSS)
call DisableTrigger(udg_trg_Wave_18_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_19)
call DisableTrigger(udg_trg_Wave_20_MINIBOSS)
call DisableTrigger(udg_trg_Wave_21)
call DisableTrigger(udg_trg_Wave_22)
call DisableTrigger(udg_trg_Wave_23)
call DisableTrigger(udg_trg_Wave_24_BOSS)
call DisableTrigger(udg_trg_Wave_24_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_25)
call DisableTrigger(udg_trg_Wave_26_BONUS)
call DisableTrigger(udg_trg_Wave_27_MOB)
call DisableTrigger(udg_trg_Wave_28_CASTERS)
call DisableTrigger(udg_trg_Wave_29_MINIBOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_31_AIR)
call DisableTrigger(udg_trg_Wave_32)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS_Ninth)
call DisableTrigger(udg_trg_Wave_34_ARMORED)
call DisableTrigger(udg_trg_Wave_35_BOSS)
call DisableTrigger(udg_trg_Wave_35_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_36)
call DisableTrigger(udg_trg_Wave_37)
call DisableTrigger(udg_trg_Wave_38)
call DisableTrigger(udg_trg_Wave_39_MOB)
call DisableTrigger(udg_trg_Wave_40_BONUS_AIR)
call DisableTrigger(udg_trg_Wave_41_BOSS)
call DisableTrigger(udg_trg_Wave_41_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_42)
call DisableTrigger(udg_trg_Wave_43)
call DisableTrigger(udg_trg_Wave_44_MINIBOSS)
call DisableTrigger(udg_trg_Wave_45)
call DisableTrigger(udg_trg_Wave_46_BOSS)
call DisableTrigger(udg_trg_Wave_46_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_47_BONUS_MINIBOSS)
call DisableTrigger(udg_trg_Wave_48_ARMORED)
call DisableTrigger(udg_trg_Wave_49_AIR)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Right)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Left)
call DisableTrigger(udg_trg_Victory)
call TriggerExecute(udg_trg_End_Map)
call EnableTrigger(udg_trg_Remove)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Defeat takes nothing returns nothing
set udg_trg_Defeat=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trg_Defeat,2.00)
call TriggerAddCondition(udg_trg_Defeat,Condition(function Trig_Defeat_Conditions))
call TriggerAddAction(udg_trg_Defeat,function Trig_Defeat_Actions)
endfunction
//===========================================================================
//Trigger:Defeat Normal
//===========================================================================
function Trig_Defeat_Normal_Conditions takes nothing returns boolean
if(not(udg_Life_Count<=0))then
return false
endif
return true
endfunction
function Trig_Defeat_Normal_Func007A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Defeat_Normal_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1541")
set udg_IntegerValue[2]=(udg_IntegerValue[2]+35)
set udg_IntegerValue[4]=(udg_IntegerValue[4]+35)
set udg_IntegerValue[6]=(udg_IntegerValue[6]+35)
set udg_IntegerValue[8]=(udg_IntegerValue[8]+35)
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Defeat_Normal_Func007A)
call DisableTrigger(udg_trg_Wave_12_BOSS)
call DisableTrigger(udg_trg_Wave_12_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_13_BONUS_AIR)
call DisableTrigger(udg_trg_Wave_14_MINIBOSS)
call DisableTrigger(udg_trg_Wave_15)
call DisableTrigger(udg_trg_Wave_16)
call DisableTrigger(udg_trg_Wave_17_AIR)
call DisableTrigger(udg_trg_Wave_18_BOSS)
call DisableTrigger(udg_trg_Wave_18_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_19)
call DisableTrigger(udg_trg_Wave_20_MINIBOSS)
call DisableTrigger(udg_trg_Wave_21)
call DisableTrigger(udg_trg_Wave_22)
call DisableTrigger(udg_trg_Wave_23)
call DisableTrigger(udg_trg_Wave_24_BOSS)
call DisableTrigger(udg_trg_Wave_24_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_25)
call DisableTrigger(udg_trg_Wave_26_BONUS)
call DisableTrigger(udg_trg_Wave_27_MOB)
call DisableTrigger(udg_trg_Wave_28_CASTERS)
call DisableTrigger(udg_trg_Wave_29_MINIBOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_31_AIR)
call DisableTrigger(udg_trg_Wave_32)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS_Ninth)
call DisableTrigger(udg_trg_Wave_34_ARMORED)
call DisableTrigger(udg_trg_Wave_35_BOSS)
call DisableTrigger(udg_trg_Wave_35_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_36)
call DisableTrigger(udg_trg_Wave_37)
call DisableTrigger(udg_trg_Wave_38)
call DisableTrigger(udg_trg_Wave_39_MOB)
call DisableTrigger(udg_trg_Wave_40_BONUS_AIR)
call DisableTrigger(udg_trg_Wave_41_BOSS)
call DisableTrigger(udg_trg_Wave_41_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_42)
call DisableTrigger(udg_trg_Wave_43)
call DisableTrigger(udg_trg_Wave_44_MINIBOSS)
call DisableTrigger(udg_trg_Wave_45)
call DisableTrigger(udg_trg_Wave_46_BOSS)
call DisableTrigger(udg_trg_Wave_46_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_47_BONUS_MINIBOSS)
call DisableTrigger(udg_trg_Wave_48_ARMORED)
call DisableTrigger(udg_trg_Wave_49_AIR)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Right)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Left)
call DisableTrigger(udg_trg_Victory)
call TriggerExecute(udg_trg_End_Map_Norm)
call EnableTrigger(udg_trg_Remove)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Defeat_Normal takes nothing returns nothing
set udg_trg_Defeat_Normal=CreateTrigger()
call DisableTrigger(udg_trg_Defeat_Normal)
call TriggerRegisterTimerEventPeriodic(udg_trg_Defeat_Normal,2.00)
call TriggerAddCondition(udg_trg_Defeat_Normal,Condition(function Trig_Defeat_Normal_Conditions))
call TriggerAddAction(udg_trg_Defeat_Normal,function Trig_Defeat_Normal_Actions)
endfunction
//===========================================================================
//Trigger:Defeat Race
//===========================================================================
function Trig_Defeat_Race_Conditions takes nothing returns boolean
if(not(udg_Life_Count_Race<=0))then
return false
endif
return true
endfunction
function Trig_Defeat_Race_Func007A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Defeat_Race_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1543")
set udg_IntegerValue[1]=(udg_IntegerValue[1]+35)
set udg_IntegerValue[3]=(udg_IntegerValue[3]+35)
set udg_IntegerValue[5]=(udg_IntegerValue[5]+35)
set udg_IntegerValue[7]=(udg_IntegerValue[7]+35)
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Defeat_Race_Func007A)
call DisableTrigger(udg_trg_Wave_12_BOSS)
call DisableTrigger(udg_trg_Wave_12_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_13_BONUS_AIR)
call DisableTrigger(udg_trg_Wave_14_MINIBOSS)
call DisableTrigger(udg_trg_Wave_15)
call DisableTrigger(udg_trg_Wave_16)
call DisableTrigger(udg_trg_Wave_17_AIR)
call DisableTrigger(udg_trg_Wave_18_BOSS)
call DisableTrigger(udg_trg_Wave_18_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_19)
call DisableTrigger(udg_trg_Wave_20_MINIBOSS)
call DisableTrigger(udg_trg_Wave_21)
call DisableTrigger(udg_trg_Wave_22)
call DisableTrigger(udg_trg_Wave_23)
call DisableTrigger(udg_trg_Wave_24_BOSS)
call DisableTrigger(udg_trg_Wave_24_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_25)
call DisableTrigger(udg_trg_Wave_26_BONUS)
call DisableTrigger(udg_trg_Wave_27_MOB)
call DisableTrigger(udg_trg_Wave_28_CASTERS)
call DisableTrigger(udg_trg_Wave_29_MINIBOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS)
call DisableTrigger(udg_trg_Wave_30_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_31_AIR)
call DisableTrigger(udg_trg_Wave_32)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS)
call DisableTrigger(udg_trg_Wave_33_MINIBOSS_Ninth)
call DisableTrigger(udg_trg_Wave_34_ARMORED)
call DisableTrigger(udg_trg_Wave_35_BOSS)
call DisableTrigger(udg_trg_Wave_35_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_36)
call DisableTrigger(udg_trg_Wave_37)
call DisableTrigger(udg_trg_Wave_38)
call DisableTrigger(udg_trg_Wave_39_MOB)
call DisableTrigger(udg_trg_Wave_40_BONUS_AIR)
call DisableTrigger(udg_trg_Wave_41_BOSS)
call DisableTrigger(udg_trg_Wave_41_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_42)
call DisableTrigger(udg_trg_Wave_43)
call DisableTrigger(udg_trg_Wave_44_MINIBOSS)
call DisableTrigger(udg_trg_Wave_45)
call DisableTrigger(udg_trg_Wave_46_BOSS)
call DisableTrigger(udg_trg_Wave_46_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_47_BONUS_MINIBOSS)
call DisableTrigger(udg_trg_Wave_48_ARMORED)
call DisableTrigger(udg_trg_Wave_49_AIR)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Ninth)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Right)
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Left)
call DisableTrigger(udg_trg_Victory)
call TriggerExecute(udg_trg_End_Map_Race)
call EnableTrigger(udg_trg_Remove)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Defeat_Race takes nothing returns nothing
set udg_trg_Defeat_Race=CreateTrigger()
call DisableTrigger(udg_trg_Defeat_Race)
call TriggerRegisterTimerEventPeriodic(udg_trg_Defeat_Race,2.00)
call TriggerAddCondition(udg_trg_Defeat_Race,Condition(function Trig_Defeat_Race_Conditions))
call TriggerAddAction(udg_trg_Defeat_Race,function Trig_Defeat_Race_Actions)
endfunction
//===========================================================================
//Trigger:End Map
//===========================================================================
function Trig_End_Map_Func002A takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"TRIGSTR_1354")
endfunction
function Trig_End_Map_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call ForForce(GetPlayersAll(),function Trig_End_Map_Func002A)
endfunction
//===========================================================================
function InitTrig_End_Map takes nothing returns nothing
set udg_trg_End_Map=CreateTrigger()
call DisableTrigger(udg_trg_End_Map)
call TriggerAddAction(udg_trg_End_Map,function Trig_End_Map_Actions)
endfunction
//===========================================================================
//Trigger:End Map Norm
//===========================================================================
function Trig_End_Map_Norm_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call CustomDefeatBJ(Player(0),"TRIGSTR_1378")
call CustomVictoryBJ(Player(1),true,true)
call CustomDefeatBJ(Player(2),"TRIGSTR_1379")
call CustomVictoryBJ(Player(3),true,true)
call CustomDefeatBJ(Player(4),"TRIGSTR_1380")
call CustomVictoryBJ(Player(5),true,true)
call CustomDefeatBJ(Player(6),"TRIGSTR_1381")
call CustomVictoryBJ(Player(7),true,true)
endfunction
//===========================================================================
function InitTrig_End_Map_Norm takes nothing returns nothing
set udg_trg_End_Map_Norm=CreateTrigger()
call DisableTrigger(udg_trg_End_Map_Norm)
call TriggerAddAction(udg_trg_End_Map_Norm,function Trig_End_Map_Norm_Actions)
endfunction
//===========================================================================
//Trigger:End Map Race
//===========================================================================
function Trig_End_Map_Race_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call CustomVictoryBJ(Player(0),true,true)
call CustomDefeatBJ(Player(1),"TRIGSTR_1374")
call CustomVictoryBJ(Player(2),true,true)
call CustomDefeatBJ(Player(3),"TRIGSTR_1375")
call CustomVictoryBJ(Player(4),true,true)
call CustomDefeatBJ(Player(5),"TRIGSTR_1376")
call CustomVictoryBJ(Player(6),true,true)
call CustomDefeatBJ(Player(7),"TRIGSTR_1377")
endfunction
//===========================================================================
function InitTrig_End_Map_Race takes nothing returns nothing
set udg_trg_End_Map_Race=CreateTrigger()
call DisableTrigger(udg_trg_End_Map_Race)
call TriggerAddAction(udg_trg_End_Map_Race,function Trig_End_Map_Race_Actions)
endfunction
//===========================================================================
//Trigger:Lose a Life
//===========================================================================
function Trig_Lose_a_Life_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(8)))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SAPPER)==false))then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Conditions takes nothing returns boolean
if(not Trig_Lose_a_Life_Func002C())then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-1)
call DisplayTextToForce(GetPlayersAll(),("Вы потеряли жизнь! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Lose_a_Life takes nothing returns nothing
set udg_trg_Lose_a_Life=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Lose_a_Life,udg_rct_Lose_a_Life)
call TriggerRegisterEnterRectSimple(udg_trg_Lose_a_Life,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Lose_a_Life,Condition(function Trig_Lose_a_Life_Conditions))
call TriggerAddAction(udg_trg_Lose_a_Life,function Trig_Lose_a_Life_Actions)
endfunction
//===========================================================================
//Trigger:Lose a Life Ninth
//===========================================================================
function Trig_Lose_a_Life_Ninth_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(8)))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SAPPER)==false))then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Ninth_Conditions takes nothing returns boolean
if(not Trig_Lose_a_Life_Ninth_Func002C())then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Ninth_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-1)
call DisplayTextToForce(GetPlayersAll(),("Вы потеряли жизнь! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Lose_a_Life_Ninth takes nothing returns nothing
set udg_trg_Lose_a_Life_Ninth=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Lose_a_Life_Ninth,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Lose_a_Life_Ninth,Condition(function Trig_Lose_a_Life_Ninth_Conditions))
call TriggerAddAction(udg_trg_Lose_a_Life_Ninth,function Trig_Lose_a_Life_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Lose a Life Norm
//===========================================================================
function Trig_Lose_a_Life_Norm_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(8)))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SAPPER)==false))then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Norm_Conditions takes nothing returns boolean
if(not Trig_Lose_a_Life_Norm_Func002C())then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Norm_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-1)
call DisplayTextToForce(GetPlayersAll(),("|c0016f411Левая сторона|r потеряла жизнь! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Lose_a_Life_Norm takes nothing returns nothing
set udg_trg_Lose_a_Life_Norm=CreateTrigger()
call DisableTrigger(udg_trg_Lose_a_Life_Norm)
call TriggerRegisterEnterRectSimple(udg_trg_Lose_a_Life_Norm,udg_rct_Lose_a_Life)
call TriggerAddCondition(udg_trg_Lose_a_Life_Norm,Condition(function Trig_Lose_a_Life_Norm_Conditions))
call TriggerAddAction(udg_trg_Lose_a_Life_Norm,function Trig_Lose_a_Life_Norm_Actions)
endfunction
//===========================================================================
//Trigger:Lose a Life Race
//===========================================================================
function Trig_Lose_a_Life_Race_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(8)))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SAPPER)==false))then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Race_Conditions takes nothing returns boolean
if(not Trig_Lose_a_Life_Race_Func002C())then
return false
endif
return true
endfunction
function Trig_Lose_a_Life_Race_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count_Race=(udg_Life_Count_Race-1)
call DisplayTextToForce(GetPlayersAll(),("|c00fe1830Правая сторона|r потеряла жизнь! "+(I2S(udg_Life_Count_Race)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Lose_a_Life_Race takes nothing returns nothing
set udg_trg_Lose_a_Life_Race=CreateTrigger()
call DisableTrigger(udg_trg_Lose_a_Life_Race)
call TriggerRegisterEnterRectSimple(udg_trg_Lose_a_Life_Race,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Lose_a_Life_Race,Condition(function Trig_Lose_a_Life_Race_Conditions))
call TriggerAddAction(udg_trg_Lose_a_Life_Race,function Trig_Lose_a_Life_Race_Actions)
endfunction
//===========================================================================
//Trigger:Boss Life Lost
//===========================================================================
function Trig_Boss_Life_Lost_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==true))then
return false
endif
return true
endfunction
function Trig_Boss_Life_Lost_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-3)
call DisplayTextToForce(GetPlayersAll(),("Вы потеряли 3 жизни! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Boss_Life_Lost takes nothing returns nothing
set udg_trg_Boss_Life_Lost=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Boss_Life_Lost,udg_rct_Lose_a_Life)
call TriggerRegisterEnterRectSimple(udg_trg_Boss_Life_Lost,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Boss_Life_Lost,Condition(function Trig_Boss_Life_Lost_Conditions))
call TriggerAddAction(udg_trg_Boss_Life_Lost,function Trig_Boss_Life_Lost_Actions)
endfunction
//===========================================================================
//Trigger:Boss Life Lost Ninth
//===========================================================================
function Trig_Boss_Life_Lost_Ninth_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==true))then
return false
endif
return true
endfunction
function Trig_Boss_Life_Lost_Ninth_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-3)
call DisplayTextToForce(GetPlayersAll(),("Вы потеряли 3 жизни! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Boss_Life_Lost_Ninth takes nothing returns nothing
set udg_trg_Boss_Life_Lost_Ninth=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Boss_Life_Lost_Ninth,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Boss_Life_Lost_Ninth,Condition(function Trig_Boss_Life_Lost_Ninth_Conditions))
call TriggerAddAction(udg_trg_Boss_Life_Lost_Ninth,function Trig_Boss_Life_Lost_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Boss Life Lost Norm
//===========================================================================
function Trig_Boss_Life_Lost_Norm_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==true))then
return false
endif
return true
endfunction
function Trig_Boss_Life_Lost_Norm_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-3)
call DisplayTextToForce(GetPlayersAll(),("|c0016f411Левая сторона|r потеряла 3 жизни! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Boss_Life_Lost_Norm takes nothing returns nothing
set udg_trg_Boss_Life_Lost_Norm=CreateTrigger()
call DisableTrigger(udg_trg_Boss_Life_Lost_Norm)
call TriggerRegisterEnterRectSimple(udg_trg_Boss_Life_Lost_Norm,udg_rct_Lose_a_Life)
call TriggerAddCondition(udg_trg_Boss_Life_Lost_Norm,Condition(function Trig_Boss_Life_Lost_Norm_Conditions))
call TriggerAddAction(udg_trg_Boss_Life_Lost_Norm,function Trig_Boss_Life_Lost_Norm_Actions)
endfunction
//===========================================================================
//Trigger:Boss Life Lost Race
//===========================================================================
function Trig_Boss_Life_Lost_Race_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)==true))then
return false
endif
return true
endfunction
function Trig_Boss_Life_Lost_Race_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
set udg_Life_Count_Race=(udg_Life_Count_Race-3)
call DisplayTextToForce(GetPlayersAll(),("|c00fe1830Правая сторона|r потеряла 3 жизни! "+(I2S(udg_Life_Count_Race)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Boss_Life_Lost_Race takes nothing returns nothing
set udg_trg_Boss_Life_Lost_Race=CreateTrigger()
call DisableTrigger(udg_trg_Boss_Life_Lost_Race)
call TriggerRegisterEnterRectSimple(udg_trg_Boss_Life_Lost_Race,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Boss_Life_Lost_Race,Condition(function Trig_Boss_Life_Lost_Race_Conditions))
call TriggerAddAction(udg_trg_Boss_Life_Lost_Race,function Trig_Boss_Life_Lost_Race_Actions)
endfunction
//===========================================================================
//Trigger:Garthok Lose a Life
//===========================================================================
function Trig_Garthok_Lose_a_Life_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return false
endif
return true
endfunction
function Trig_Garthok_Lose_a_Life_Actions takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-10)
call DisplayTextToForce(GetPlayersAll(),("Вы потеряли 10 жизней! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Garthok_Lose_a_Life takes nothing returns nothing
set udg_trg_Garthok_Lose_a_Life=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Garthok_Lose_a_Life,udg_rct_Lose_a_Life)
call TriggerRegisterEnterRectSimple(udg_trg_Garthok_Lose_a_Life,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Garthok_Lose_a_Life,Condition(function Trig_Garthok_Lose_a_Life_Conditions))
call TriggerAddAction(udg_trg_Garthok_Lose_a_Life,function Trig_Garthok_Lose_a_Life_Actions)
endfunction
//===========================================================================
//Trigger:Garthok Lose a Life Ninth
//===========================================================================
function Trig_Garthok_Lose_a_Life_Ninth_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00J'))then
return false
endif
return true
endfunction
function Trig_Garthok_Lose_a_Life_Ninth_Actions takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-10)
call DisplayTextToForce(GetPlayersAll(),("Вы потеряли 10 жизней! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Garthok_Lose_a_Life_Ninth takes nothing returns nothing
set udg_trg_Garthok_Lose_a_Life_Ninth=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Garthok_Lose_a_Life_Ninth,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Garthok_Lose_a_Life_Ninth,Condition(function Trig_Garthok_Lose_a_Life_Ninth_Conditions))
call TriggerAddAction(udg_trg_Garthok_Lose_a_Life_Ninth,function Trig_Garthok_Lose_a_Life_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Garthok Lose a Life Norm
//===========================================================================
function Trig_Garthok_Lose_a_Life_Norm_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return false
endif
return true
endfunction
function Trig_Garthok_Lose_a_Life_Norm_Actions takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
set udg_Life_Count=(udg_Life_Count-10)
call DisplayTextToForce(GetPlayersAll(),("|c0016f411Левая сторона|r потеряла 10 жизней! "+(I2S(udg_Life_Count)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Garthok_Lose_a_Life_Norm takes nothing returns nothing
set udg_trg_Garthok_Lose_a_Life_Norm=CreateTrigger()
call DisableTrigger(udg_trg_Garthok_Lose_a_Life_Norm)
call TriggerRegisterEnterRectSimple(udg_trg_Garthok_Lose_a_Life_Norm,udg_rct_Lose_a_Life)
call TriggerAddCondition(udg_trg_Garthok_Lose_a_Life_Norm,Condition(function Trig_Garthok_Lose_a_Life_Norm_Conditions))
call TriggerAddAction(udg_trg_Garthok_Lose_a_Life_Norm,function Trig_Garthok_Lose_a_Life_Norm_Actions)
endfunction
//===========================================================================
//Trigger:Garthok Lose a Life Race
//===========================================================================
function Trig_Garthok_Lose_a_Life_Race_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return false
endif
return true
endfunction
function Trig_Garthok_Lose_a_Life_Race_Actions takes nothing returns nothing
call ExplodeUnitBJ(GetTriggerUnit())
set udg_Life_Count_Race=(udg_Life_Count_Race-10)
call DisplayTextToForce(GetPlayersAll(),("|c00fe1830Правая сторона|r потеряла 10 жизней! "+(I2S(udg_Life_Count_Race)+" осталось!")))
call MultiboardSetTitleText(udg_Lives_Board,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Garthok_Lose_a_Life_Race takes nothing returns nothing
set udg_trg_Garthok_Lose_a_Life_Race=CreateTrigger()
call DisableTrigger(udg_trg_Garthok_Lose_a_Life_Race)
call TriggerRegisterEnterRectSimple(udg_trg_Garthok_Lose_a_Life_Race,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Garthok_Lose_a_Life_Race,Condition(function Trig_Garthok_Lose_a_Life_Race_Conditions))
call TriggerAddAction(udg_trg_Garthok_Lose_a_Life_Race,function Trig_Garthok_Lose_a_Life_Race_Actions)
endfunction
//===========================================================================
//Trigger:Bonus Removal
//===========================================================================
function Trig_Bonus_Removal_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SAPPER)==true))then
return false
endif
return true
endfunction
function Trig_Bonus_Removal_Actions takes nothing returns nothing
call ExplodeUnitBJ(GetEnteringUnit())
endfunction
//===========================================================================
function InitTrig_Bonus_Removal takes nothing returns nothing
set udg_trg_Bonus_Removal=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Bonus_Removal,udg_rct_Lose_a_Life)
call TriggerRegisterEnterRectSimple(udg_trg_Bonus_Removal,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Bonus_Removal,Condition(function Trig_Bonus_Removal_Conditions))
call TriggerAddAction(udg_trg_Bonus_Removal,function Trig_Bonus_Removal_Actions)
endfunction
//===========================================================================
//Trigger:Bonus Removal Ninth
//===========================================================================
function Trig_Bonus_Removal_Ninth_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SAPPER)==true))then
return false
endif
return true
endfunction
function Trig_Bonus_Removal_Ninth_Actions takes nothing returns nothing
call ExplodeUnitBJ(GetEnteringUnit())
endfunction
//===========================================================================
function InitTrig_Bonus_Removal_Ninth takes nothing returns nothing
set udg_trg_Bonus_Removal_Ninth=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trg_Bonus_Removal_Ninth,udg_rct_9th_Step_Lose_a_Life)
call TriggerAddCondition(udg_trg_Bonus_Removal_Ninth,Condition(function Trig_Bonus_Removal_Ninth_Conditions))
call TriggerAddAction(udg_trg_Bonus_Removal_Ninth,function Trig_Bonus_Removal_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Race Spawn
//===========================================================================
function Trig_Race_Spawn_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(8)))then
return false
endif
return true
endfunction
function Trig_Race_Spawn_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetEnteringUnit()),Player(8),GetRectCenter(udg_rct_9th_Step_Enemy_Spawn),90.00)
endfunction
//===========================================================================
function InitTrig_Race_Spawn takes nothing returns nothing
set udg_trg_Race_Spawn=CreateTrigger()
call DisableTrigger(udg_trg_Race_Spawn)
call TriggerRegisterEnterRectSimple(udg_trg_Race_Spawn,udg_rct_Enemy_Spawn)
call TriggerAddCondition(udg_trg_Race_Spawn,Condition(function Trig_Race_Spawn_Conditions))
call TriggerAddAction(udg_trg_Race_Spawn,function Trig_Race_Spawn_Actions)
endfunction
//===========================================================================
//Trigger:Wave 1
//===========================================================================
function Trig_Wave_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(10,'ogru',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_021")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_054")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(udg_trg_Repick)
call MultiboardDisplayBJ(true,GetLastCreatedMultiboard())
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_1 takes nothing returns nothing
set udg_trg_Wave_1=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_1,70.00)
call TriggerAddAction(udg_trg_Wave_1,function Trig_Wave_1_Actions)
endfunction
//===========================================================================
//Trigger:Wave 2 MINIBOSS
//===========================================================================
function Trig_Wave_2_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_2_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_2_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o000',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o005',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_022")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_512")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_2_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_2_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_2_MINIBOSS,100.00)
call TriggerAddAction(udg_trg_Wave_2_MINIBOSS,function Trig_Wave_2_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 3
//===========================================================================
function Trig_Wave_3_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_3_Actions takes nothing returns nothing
if(Trig_Wave_3_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'orai',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_023")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_640")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_3 takes nothing returns nothing
set udg_trg_Wave_3=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_3,130.00)
call TriggerAddAction(udg_trg_Wave_3,function Trig_Wave_3_Actions)
endfunction
//===========================================================================
//Trigger:Wave 4
//===========================================================================
function Trig_Wave_4_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_4_Actions takes nothing returns nothing
if(Trig_Wave_4_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o001',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_024")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_4 takes nothing returns nothing
set udg_trg_Wave_4=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_4,160.00)
call TriggerAddAction(udg_trg_Wave_4,function Trig_Wave_4_Actions)
endfunction
//===========================================================================
//Trigger:Wave 5
//===========================================================================
function Trig_Wave_5_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_5_Actions takes nothing returns nothing
if(Trig_Wave_5_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o002',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_025")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_691")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_5 takes nothing returns nothing
set udg_trg_Wave_5=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_5,190.00)
call TriggerAddAction(udg_trg_Wave_5,function Trig_Wave_5_Actions)
endfunction
//===========================================================================
//Trigger:Wave 6 BOSS
//===========================================================================
function Trig_Wave_6_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_6_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_6_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'o003',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_026")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_6_BOSS takes nothing returns nothing
set udg_trg_Wave_6_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_6_BOSS,220.00)
call TriggerAddAction(udg_trg_Wave_6_BOSS,function Trig_Wave_6_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 6 BOSS Ninth
//===========================================================================
function Trig_Wave_6_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_6_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_6_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'o00Q',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_725")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_6_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_6_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_6_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_6_BOSS_Ninth,220.00)
call TriggerAddAction(udg_trg_Wave_6_BOSS_Ninth,function Trig_Wave_6_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 7
//===========================================================================
function Trig_Wave_7_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_7_Actions takes nothing returns nothing
if(Trig_Wave_7_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n003',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_147")
call TriggerSleepAction(2)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_150")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_7 takes nothing returns nothing
set udg_trg_Wave_7=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_7,250.00)
call TriggerAddAction(udg_trg_Wave_7,function Trig_Wave_7_Actions)
endfunction
//===========================================================================
//Trigger:Wave 8 MINIBOSS
//===========================================================================
function Trig_Wave_8_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_8_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_8_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o004',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o006',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_148")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_8_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_8_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_8_MINIBOSS,280.00)
call TriggerAddAction(udg_trg_Wave_8_MINIBOSS,function Trig_Wave_8_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 9
//===========================================================================
function Trig_Wave_9_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_9_Actions takes nothing returns nothing
if(Trig_Wave_9_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n005',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_149")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_9 takes nothing returns nothing
set udg_trg_Wave_9=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_9,310.00)
call TriggerAddAction(udg_trg_Wave_9,function Trig_Wave_9_Actions)
endfunction
//===========================================================================
//Trigger:Wave 10
//===========================================================================
function Trig_Wave_10_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_10_Actions takes nothing returns nothing
if(Trig_Wave_10_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o007',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_168")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_10 takes nothing returns nothing
set udg_trg_Wave_10=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_10,340.00)
call TriggerAddAction(udg_trg_Wave_10,function Trig_Wave_10_Actions)
endfunction
//===========================================================================
//Trigger:Wave 11
//===========================================================================
function Trig_Wave_11_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_11_Actions takes nothing returns nothing
if(Trig_Wave_11_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o008',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_169")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_11 takes nothing returns nothing
set udg_trg_Wave_11=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_11,370.00)
call TriggerAddAction(udg_trg_Wave_11,function Trig_Wave_11_Actions)
endfunction
//===========================================================================
//Trigger:Wave 12 BOSS
//===========================================================================
function Trig_Wave_12_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_12_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_12_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'o009',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_170")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_12_BOSS takes nothing returns nothing
set udg_trg_Wave_12_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_12_BOSS,400.00)
call TriggerAddAction(udg_trg_Wave_12_BOSS,function Trig_Wave_12_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 12 BOSS Ninth
//===========================================================================
function Trig_Wave_12_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_12_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_12_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'o00P',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_726")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_12_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_12_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_12_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_12_BOSS_Ninth,400.00)
call TriggerAddAction(udg_trg_Wave_12_BOSS_Ninth,function Trig_Wave_12_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 13 BONUS AIR
//===========================================================================
function Trig_Wave_13_BONUS_AIR_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_13_BONUS_AIR_Actions takes nothing returns nothing
if(Trig_Wave_13_BONUS_AIR_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(15,'o00A',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_171")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_13_BONUS_AIR takes nothing returns nothing
set udg_trg_Wave_13_BONUS_AIR=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_13_BONUS_AIR,430.00)
call TriggerAddAction(udg_trg_Wave_13_BONUS_AIR,function Trig_Wave_13_BONUS_AIR_Actions)
endfunction
//===========================================================================
//Trigger:Wave 14 MINIBOSS
//===========================================================================
function Trig_Wave_14_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_14_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_14_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n007',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n008',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_536")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_14_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_14_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_14_MINIBOSS,460.00)
call TriggerAddAction(udg_trg_Wave_14_MINIBOSS,function Trig_Wave_14_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 15
//===========================================================================
function Trig_Wave_15_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_15_Actions takes nothing returns nothing
if(Trig_Wave_15_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00B',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_537")
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1619")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_15 takes nothing returns nothing
set udg_trg_Wave_15=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_15,490.00)
call TriggerAddAction(udg_trg_Wave_15,function Trig_Wave_15_Actions)
endfunction
//===========================================================================
//Trigger:Wave 16
//===========================================================================
function Trig_Wave_16_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_16_Actions takes nothing returns nothing
if(Trig_Wave_16_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00D',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_556")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_16 takes nothing returns nothing
set udg_trg_Wave_16=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_16,520.00)
call TriggerAddAction(udg_trg_Wave_16,function Trig_Wave_16_Actions)
endfunction
//===========================================================================
//Trigger:Wave 17 AIR
//===========================================================================
function Trig_Wave_17_AIR_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_17_AIR_Actions takes nothing returns nothing
if(Trig_Wave_17_AIR_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00C',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_538")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_17_AIR takes nothing returns nothing
set udg_trg_Wave_17_AIR=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_17_AIR,560.00)
call TriggerAddAction(udg_trg_Wave_17_AIR,function Trig_Wave_17_AIR_Actions)
endfunction
//===========================================================================
//Trigger:Wave 18 BOSS
//===========================================================================
function Trig_Wave_18_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_18_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_18_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'h00F',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_550")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_18_BOSS takes nothing returns nothing
set udg_trg_Wave_18_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_18_BOSS,590.00)
call TriggerAddAction(udg_trg_Wave_18_BOSS,function Trig_Wave_18_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 18 BOSS Ninth
//===========================================================================
function Trig_Wave_18_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_18_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_18_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'h00R',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_727")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_18_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_18_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_18_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_18_BOSS_Ninth,590.00)
call TriggerAddAction(udg_trg_Wave_18_BOSS_Ninth,function Trig_Wave_18_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 19
//===========================================================================
function Trig_Wave_19_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_19_Actions takes nothing returns nothing
if(Trig_Wave_19_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00E',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_557")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_19 takes nothing returns nothing
set udg_trg_Wave_19=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_19,620.00)
call TriggerAddAction(udg_trg_Wave_19,function Trig_Wave_19_Actions)
endfunction
//===========================================================================
//Trigger:Wave 20 MINIBOSS
//===========================================================================
function Trig_Wave_20_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_20_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_20_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00F',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00J',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_558")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_20_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_20_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_20_MINIBOSS,650.00)
call TriggerAddAction(udg_trg_Wave_20_MINIBOSS,function Trig_Wave_20_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 21
//===========================================================================
function Trig_Wave_21_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_21_Actions takes nothing returns nothing
if(Trig_Wave_21_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00G',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_559")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_21 takes nothing returns nothing
set udg_trg_Wave_21=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_21,680.00)
call TriggerAddAction(udg_trg_Wave_21,function Trig_Wave_21_Actions)
endfunction
//===========================================================================
//Trigger:Wave 22
//===========================================================================
function Trig_Wave_22_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_22_Actions takes nothing returns nothing
if(Trig_Wave_22_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00H',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_560")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_22 takes nothing returns nothing
set udg_trg_Wave_22=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_22,710.00)
call TriggerAddAction(udg_trg_Wave_22,function Trig_Wave_22_Actions)
endfunction
//===========================================================================
//Trigger:Wave 23
//===========================================================================
function Trig_Wave_23_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_23_Actions takes nothing returns nothing
if(Trig_Wave_23_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00I',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_561")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_23 takes nothing returns nothing
set udg_trg_Wave_23=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_23,740.00)
call TriggerAddAction(udg_trg_Wave_23,function Trig_Wave_23_Actions)
endfunction
//===========================================================================
//Trigger:Wave 24 BOSS
//===========================================================================
function Trig_Wave_24_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_24_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_24_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'u000',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_562")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_24_BOSS takes nothing returns nothing
set udg_trg_Wave_24_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_24_BOSS,770.00)
call TriggerAddAction(udg_trg_Wave_24_BOSS,function Trig_Wave_24_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 24 BOSS Ninth
//===========================================================================
function Trig_Wave_24_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_24_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_24_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'u001',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_728")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_24_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_24_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_24_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_24_BOSS_Ninth,770.00)
call TriggerAddAction(udg_trg_Wave_24_BOSS_Ninth,function Trig_Wave_24_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 25
//===========================================================================
function Trig_Wave_25_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_25_Actions takes nothing returns nothing
if(Trig_Wave_25_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n009',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_571")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_25 takes nothing returns nothing
set udg_trg_Wave_25=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_25,800.00)
call TriggerAddAction(udg_trg_Wave_25,function Trig_Wave_25_Actions)
endfunction
//===========================================================================
//Trigger:Wave 26 BONUS
//===========================================================================
function Trig_Wave_26_BONUS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_26_BONUS_Actions takes nothing returns nothing
if(Trig_Wave_26_BONUS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00A',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_572")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_26_BONUS takes nothing returns nothing
set udg_trg_Wave_26_BONUS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_26_BONUS,830.00)
call TriggerAddAction(udg_trg_Wave_26_BONUS,function Trig_Wave_26_BONUS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 27 MOB
//===========================================================================
function Trig_Wave_27_MOB_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_27_MOB_Actions takes nothing returns nothing
if(Trig_Wave_27_MOB_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(15,'n00B',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_573")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_27_MOB takes nothing returns nothing
set udg_trg_Wave_27_MOB=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_27_MOB,860.00)
call TriggerAddAction(udg_trg_Wave_27_MOB,function Trig_Wave_27_MOB_Actions)
endfunction
//===========================================================================
//Trigger:Wave 28 CASTERS
//===========================================================================
function Trig_Wave_28_CASTERS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_28_CASTERS_Actions takes nothing returns nothing
if(Trig_Wave_28_CASTERS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00K',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_574")
call EnableTrigger(udg_trg_Serpent_Warders)
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_28_CASTERS takes nothing returns nothing
set udg_trg_Wave_28_CASTERS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_28_CASTERS,890.00)
call TriggerAddAction(udg_trg_Wave_28_CASTERS,function Trig_Wave_28_CASTERS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 29 MINIBOSS
//===========================================================================
function Trig_Wave_29_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_29_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_29_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00C',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00D',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_575")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_29_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_29_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_29_MINIBOSS,920.00)
call TriggerAddAction(udg_trg_Wave_29_MINIBOSS,function Trig_Wave_29_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 30 BOSS
//===========================================================================
function Trig_Wave_30_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_30_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_30_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n00E',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
set udg_Cairne=GetLastCreatedUnit()
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_576")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_30_BOSS takes nothing returns nothing
set udg_trg_Wave_30_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_30_BOSS,950.00)
call TriggerAddAction(udg_trg_Wave_30_BOSS,function Trig_Wave_30_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 30 BOSS Ninth
//===========================================================================
function Trig_Wave_30_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_30_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_30_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n00I',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_729")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_30_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_30_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_30_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_30_BOSS_Ninth,950.00)
call TriggerAddAction(udg_trg_Wave_30_BOSS_Ninth,function Trig_Wave_30_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 31 AIR
//===========================================================================
function Trig_Wave_31_AIR_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_31_AIR_Func004A takes nothing returns nothing
call DoNothing()
endfunction
function Trig_Wave_31_AIR_Func007001002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())!=Player(8))
endfunction
function Trig_Wave_31_AIR_Func007A takes nothing returns nothing
call DoNothing()
endfunction
function Trig_Wave_31_AIR_Actions takes nothing returns nothing
if(Trig_Wave_31_AIR_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00M',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_641")
call ForGroupBJ(GetUnitsInRectAll(udg_rct_Enemy_Spawn),function Trig_Wave_31_AIR_Func004A)
set udg_GoblinMissles=GetLastCreatedGroup()
call TriggerSleepAction(0.50)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Wave_31_AIR_Func007001002)),function Trig_Wave_31_AIR_Func007A)
call GroupTargetOrderBJ(udg_GoblinMissles,"unstableconcoction",GroupPickRandomUnit(GetLastCreatedGroup()))
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_31_AIR takes nothing returns nothing
set udg_trg_Wave_31_AIR=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_31_AIR,980.00)
call TriggerAddAction(udg_trg_Wave_31_AIR,function Trig_Wave_31_AIR_Actions)
endfunction
//===========================================================================
//Trigger:Wave 32
//===========================================================================
function Trig_Wave_32_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_32_Actions takes nothing returns nothing
if(Trig_Wave_32_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00F',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_658")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_32 takes nothing returns nothing
set udg_trg_Wave_32=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_32,1010.00)
call TriggerAddAction(udg_trg_Wave_32,function Trig_Wave_32_Actions)
endfunction
//===========================================================================
//Trigger:Wave 33 MINIBOSS
//===========================================================================
function Trig_Wave_33_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_33_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_33_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00N',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00O',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_659")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_33_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_33_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_33_MINIBOSS,1040.00)
call TriggerAddAction(udg_trg_Wave_33_MINIBOSS,function Trig_Wave_33_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 33 MINIBOSS Ninth
//===========================================================================
function Trig_Wave_33_MINIBOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_33_MINIBOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_33_MINIBOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'o00R',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00S',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_771")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_33_MINIBOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_33_MINIBOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_33_MINIBOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_33_MINIBOSS_Ninth,1040.00)
call TriggerAddAction(udg_trg_Wave_33_MINIBOSS_Ninth,function Trig_Wave_33_MINIBOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 34 ARMORED
//===========================================================================
function Trig_Wave_34_ARMORED_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_34_ARMORED_Actions takes nothing returns nothing
if(Trig_Wave_34_ARMORED_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00G',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_660")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_34_ARMORED takes nothing returns nothing
set udg_trg_Wave_34_ARMORED=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_34_ARMORED,1070.00)
call TriggerAddAction(udg_trg_Wave_34_ARMORED,function Trig_Wave_34_ARMORED_Actions)
endfunction
//===========================================================================
//Trigger:Wave 35 BOSS
//===========================================================================
function Trig_Wave_35_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_35_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_35_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(2,'n00S',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1462")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_35_BOSS takes nothing returns nothing
set udg_trg_Wave_35_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_35_BOSS,1100.00)
call TriggerAddAction(udg_trg_Wave_35_BOSS,function Trig_Wave_35_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 35 BOSS Ninth
//===========================================================================
function Trig_Wave_35_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_35_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_35_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(2,'n00T',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1464")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_35_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_35_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_35_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_35_BOSS_Ninth,1100.00)
call TriggerAddAction(udg_trg_Wave_35_BOSS_Ninth,function Trig_Wave_35_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 36
//===========================================================================
function Trig_Wave_36_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_36_Actions takes nothing returns nothing
if(Trig_Wave_36_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00O',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1409")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_36 takes nothing returns nothing
set udg_trg_Wave_36=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_36,1130.00)
call TriggerAddAction(udg_trg_Wave_36,function Trig_Wave_36_Actions)
endfunction
//===========================================================================
//Trigger:Wave 37
//===========================================================================
function Trig_Wave_37_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_37_Actions takes nothing returns nothing
if(Trig_Wave_37_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00P',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1411")
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1620")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_37 takes nothing returns nothing
set udg_trg_Wave_37=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_37,1160.00)
call TriggerAddAction(udg_trg_Wave_37,function Trig_Wave_37_Actions)
endfunction
//===========================================================================
//Trigger:Wave 38
//===========================================================================
function Trig_Wave_38_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_38_Actions takes nothing returns nothing
if(Trig_Wave_38_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00Q',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1413")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_38 takes nothing returns nothing
set udg_trg_Wave_38=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_38,1190.00)
call TriggerAddAction(udg_trg_Wave_38,function Trig_Wave_38_Actions)
endfunction
//===========================================================================
//Trigger:Wave 39 MOB
//===========================================================================
function Trig_Wave_39_MOB_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_39_MOB_Actions takes nothing returns nothing
if(Trig_Wave_39_MOB_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(17,'n00R',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1415")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_39_MOB takes nothing returns nothing
set udg_trg_Wave_39_MOB=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_39_MOB,1220.00)
call TriggerAddAction(udg_trg_Wave_39_MOB,function Trig_Wave_39_MOB_Actions)
endfunction
//===========================================================================
//Trigger:Wave 40 BONUS AIR
//===========================================================================
function Trig_Wave_40_BONUS_AIR_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_40_BONUS_AIR_Actions takes nothing returns nothing
if(Trig_Wave_40_BONUS_AIR_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(40,'o00T',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1417")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_40_BONUS_AIR takes nothing returns nothing
set udg_trg_Wave_40_BONUS_AIR=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_40_BONUS_AIR,1250.00)
call TriggerAddAction(udg_trg_Wave_40_BONUS_AIR,function Trig_Wave_40_BONUS_AIR_Actions)
endfunction
//===========================================================================
//Trigger:Wave 41 BOSS
//===========================================================================
function Trig_Wave_41_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_41_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_41_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n00Z',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1473")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_41_BOSS takes nothing returns nothing
set udg_trg_Wave_41_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_41_BOSS,1280.00)
call TriggerAddAction(udg_trg_Wave_41_BOSS,function Trig_Wave_41_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 41 BOSS Ninth
//===========================================================================
function Trig_Wave_41_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_41_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_41_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n012',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1493")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_41_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_41_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_41_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_41_BOSS_Ninth,1280.00)
call TriggerAddAction(udg_trg_Wave_41_BOSS_Ninth,function Trig_Wave_41_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 42
//===========================================================================
function Trig_Wave_42_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_42_Actions takes nothing returns nothing
if(Trig_Wave_42_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00U',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1465")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_42 takes nothing returns nothing
set udg_trg_Wave_42=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_42,1310.00)
call TriggerAddAction(udg_trg_Wave_42,function Trig_Wave_42_Actions)
endfunction
//===========================================================================
//Trigger:Wave 43
//===========================================================================
function Trig_Wave_43_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_43_Actions takes nothing returns nothing
if(Trig_Wave_43_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00V',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1467")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_43 takes nothing returns nothing
set udg_trg_Wave_43=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_43,1340.00)
call TriggerAddAction(udg_trg_Wave_43,function Trig_Wave_43_Actions)
endfunction
//===========================================================================
//Trigger:Wave 44 MINIBOSS
//===========================================================================
function Trig_Wave_44_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_44_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_44_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00W',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00X',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1469")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_44_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_44_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_44_MINIBOSS,1370.00)
call TriggerAddAction(udg_trg_Wave_44_MINIBOSS,function Trig_Wave_44_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 45
//===========================================================================
function Trig_Wave_45_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_45_Actions takes nothing returns nothing
if(Trig_Wave_45_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n00Y',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1471")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_45 takes nothing returns nothing
set udg_trg_Wave_45=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_45,1400.00)
call TriggerAddAction(udg_trg_Wave_45,function Trig_Wave_45_Actions)
endfunction
//===========================================================================
//Trigger:Wave 46 BOSS
//===========================================================================
function Trig_Wave_46_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_46_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_46_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n010',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1475")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_46_BOSS takes nothing returns nothing
set udg_trg_Wave_46_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_46_BOSS,1430.00)
call TriggerAddAction(udg_trg_Wave_46_BOSS,function Trig_Wave_46_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 46 BOSS Ninth
//===========================================================================
function Trig_Wave_46_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_46_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_46_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n011',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1492")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_46_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_46_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_46_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_46_BOSS_Ninth,1430.00)
call TriggerAddAction(udg_trg_Wave_46_BOSS_Ninth,function Trig_Wave_46_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 47 BONUS MINIBOSS
//===========================================================================
function Trig_Wave_47_BONUS_MINIBOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_47_BONUS_MINIBOSS_Actions takes nothing returns nothing
if(Trig_Wave_47_BONUS_MINIBOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n015',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n016',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1477")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_47_BONUS_MINIBOSS takes nothing returns nothing
set udg_trg_Wave_47_BONUS_MINIBOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_47_BONUS_MINIBOSS,1460.00)
call TriggerAddAction(udg_trg_Wave_47_BONUS_MINIBOSS,function Trig_Wave_47_BONUS_MINIBOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 48 ARMORED
//===========================================================================
function Trig_Wave_48_ARMORED_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_48_ARMORED_Actions takes nothing returns nothing
if(Trig_Wave_48_ARMORED_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n013',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1494")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_48_ARMORED takes nothing returns nothing
set udg_trg_Wave_48_ARMORED=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_48_ARMORED,1490.00)
call TriggerAddAction(udg_trg_Wave_48_ARMORED,function Trig_Wave_48_ARMORED_Actions)
endfunction
//===========================================================================
//Trigger:Wave 49 AIR
//===========================================================================
function Trig_Wave_49_AIR_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_49_AIR_Actions takes nothing returns nothing
if(Trig_Wave_49_AIR_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(10,'n014',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1505")
call TriggerExecute(udg_trg_Update_Wave)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1506")
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_49_AIR takes nothing returns nothing
set udg_trg_Wave_49_AIR=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_49_AIR,1520.00)
call TriggerAddAction(udg_trg_Wave_49_AIR,function Trig_Wave_49_AIR_Actions)
endfunction
//===========================================================================
//Trigger:Wave 50 LAST BOSS
//===========================================================================
function Trig_Wave_50_LAST_BOSS_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_50_LAST_BOSS_Actions takes nothing returns nothing
if(Trig_Wave_50_LAST_BOSS_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n00H',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_661")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(udg_trg_Boss_Life_Lost)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_50_LAST_BOSS takes nothing returns nothing
set udg_trg_Wave_50_LAST_BOSS=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Wave_50_LAST_BOSS,1550.00)
call TriggerAddAction(udg_trg_Wave_50_LAST_BOSS,function Trig_Wave_50_LAST_BOSS_Actions)
endfunction
//===========================================================================
//Trigger:Wave 50 LAST BOSS Ninth
//===========================================================================
function Trig_Wave_50_LAST_BOSS_Ninth_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_50_LAST_BOSS_Ninth_Actions takes nothing returns nothing
if(Trig_Wave_50_LAST_BOSS_Ninth_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call CreateNUnitsAtLoc(1,'n00J',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_730")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(udg_trg_Boss_Life_Lost)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_50_LAST_BOSS_Ninth takes nothing returns nothing
set udg_trg_Wave_50_LAST_BOSS_Ninth=CreateTrigger()
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Ninth)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_50_LAST_BOSS_Ninth,1550.00)
call TriggerAddAction(udg_trg_Wave_50_LAST_BOSS_Ninth,function Trig_Wave_50_LAST_BOSS_Ninth_Actions)
endfunction
//===========================================================================
//Trigger:Wave 50 LAST BOSS Left
//===========================================================================
function Trig_Wave_50_LAST_BOSS_Left_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_50_LAST_BOSS_Left_Actions takes nothing returns nothing
if(Trig_Wave_50_LAST_BOSS_Left_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call DisableTrigger(udg_trg_Race_Spawn)
call CreateNUnitsAtLoc(1,'n00M',Player(8),GetRectCenter(udg_rct_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1402")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(udg_trg_Boss_Life_Lost)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_50_LAST_BOSS_Left takes nothing returns nothing
set udg_trg_Wave_50_LAST_BOSS_Left=CreateTrigger()
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Left)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_50_LAST_BOSS_Left,1550.00)
call TriggerAddAction(udg_trg_Wave_50_LAST_BOSS_Left,function Trig_Wave_50_LAST_BOSS_Left_Actions)
endfunction
//===========================================================================
//Trigger:Wave 50 LAST BOSS Right
//===========================================================================
function Trig_Wave_50_LAST_BOSS_Right_Func001C takes nothing returns boolean
if(not(udg_Solo_Initialized==1))then
return false
endif
return true
endfunction
function Trig_Wave_50_LAST_BOSS_Right_Actions takes nothing returns nothing
if(Trig_Wave_50_LAST_BOSS_Right_Func001C())then
call TriggerSleepAction(45.00)
else
endif
call DisableTrigger(udg_trg_Race_Spawn)
call CreateNUnitsAtLoc(1,'n00N',Player(8),GetRectCenter(udg_rct_9th_Step_Enemy_Spawn),bj_UNIT_FACING)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1403")
call TriggerExecute(udg_trg_Update_Wave)
call DisableTrigger(udg_trg_Boss_Life_Lost)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Wave_50_LAST_BOSS_Right takes nothing returns nothing
set udg_trg_Wave_50_LAST_BOSS_Right=CreateTrigger()
call DisableTrigger(udg_trg_Wave_50_LAST_BOSS_Right)
call TriggerRegisterTimerEventSingle(udg_trg_Wave_50_LAST_BOSS_Right,1550.00)
call TriggerAddAction(udg_trg_Wave_50_LAST_BOSS_Right,function Trig_Wave_50_LAST_BOSS_Right_Actions)
endfunction
//===========================================================================
//Trigger:Victory
//===========================================================================
function Trig_Victory_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n00J'))then
return true
endif
return false
endfunction
function Trig_Victory_Conditions takes nothing returns boolean
if(not Trig_Victory_Func001C())then
return false
endif
return true
endfunction
function Trig_Victory_Func008A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_Victory_Actions takes nothing returns nothing
set udg_Most_Kills=LeaderboardGetIndexedPlayerBJ(1,GetLastCreatedLeaderboard())
set udg_Kill_Amount=GetPlayerScore(udg_Most_Kills,PLAYER_SCORE_UNITS_KILLED)
call DisplayTextToForce(GetPlayersAll(),("Поздравляем! Победитель - "+(GetPlayerName(udg_Most_Kills)+(", уничтоживший "+(I2S(udg_Kill_Amount)+" противников!")))))
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1248")
call TriggerSleepAction(60.00)
call ForForce(GetPlayersAll(),function Trig_Victory_Func008A)
endfunction
//===========================================================================
function InitTrig_Victory takes nothing returns nothing
set udg_trg_Victory=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Victory,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Victory,Condition(function Trig_Victory_Conditions))
call TriggerAddAction(udg_trg_Victory,function Trig_Victory_Actions)
endfunction
//===========================================================================
//Trigger:Victory Norm
//===========================================================================
function Trig_Victory_Norm_Func003C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00M'))then
return true
endif
return false
endfunction
function Trig_Victory_Norm_Conditions takes nothing returns boolean
if(not Trig_Victory_Norm_Func003C())then
return false
endif
return true
endfunction
function Trig_Victory_Norm_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Victory_Norm_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1389")
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Victory_Norm_Func002A)
set udg_Most_Kills=LeaderboardGetIndexedPlayerBJ(1,GetLastCreatedLeaderboard())
set udg_Kill_Amount=GetPlayerScore(udg_Most_Kills,PLAYER_SCORE_UNITS_KILLED)
call DisplayTextToForce(GetPlayersAll(),("Поздравляем! Победитель - "+(GetPlayerName(udg_Most_Kills)+(", уничтоживший "+(I2S(udg_Kill_Amount)+" противников!")))))
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1388")
call TriggerSleepAction(60.00)
call CustomVictoryBJ(Player(0),true,true)
call CustomDefeatBJ(Player(1),"TRIGSTR_1398")
call CustomVictoryBJ(Player(2),true,true)
call CustomDefeatBJ(Player(3),"TRIGSTR_1399")
call CustomVictoryBJ(Player(4),true,true)
call CustomDefeatBJ(Player(5),"TRIGSTR_1400")
call CustomVictoryBJ(Player(6),true,true)
call CustomDefeatBJ(Player(7),"TRIGSTR_1401")
endfunction
//===========================================================================
function InitTrig_Victory_Norm takes nothing returns nothing
set udg_trg_Victory_Norm=CreateTrigger()
call DisableTrigger(udg_trg_Victory_Norm)
call TriggerRegisterAnyUnitEventBJ(udg_trg_Victory_Norm,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Victory_Norm,Condition(function Trig_Victory_Norm_Conditions))
call TriggerAddAction(udg_trg_Victory_Norm,function Trig_Victory_Norm_Actions)
endfunction
//===========================================================================
//Trigger:Victory Race
//===========================================================================
function Trig_Victory_Race_Func003C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00N'))then
return true
endif
return false
endfunction
function Trig_Victory_Race_Conditions takes nothing returns boolean
if(not Trig_Victory_Race_Func003C())then
return false
endif
return true
endfunction
function Trig_Victory_Race_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Victory_Race_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1392")
call ForGroupBJ(GetUnitsInRectAll(GetPlayableMapRect()),function Trig_Victory_Race_Func002A)
set udg_Most_Kills=LeaderboardGetIndexedPlayerBJ(1,GetLastCreatedLeaderboard())
set udg_Kill_Amount=GetPlayerScore(udg_Most_Kills,PLAYER_SCORE_UNITS_KILLED)
call DisplayTextToForce(GetPlayersAll(),("Поздравляем! Победитель - "+(GetPlayerName(udg_Most_Kills)+(", уничтоживший "+(I2S(udg_Kill_Amount)+" противников!")))))
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1391")
call TriggerSleepAction(60.00)
call CustomDefeatBJ(Player(0),"TRIGSTR_1393")
call CustomVictoryBJ(Player(1),true,true)
call CustomDefeatBJ(Player(2),"TRIGSTR_1394")
call CustomVictoryBJ(Player(3),true,true)
call CustomDefeatBJ(Player(4),"TRIGSTR_1396")
call CustomVictoryBJ(Player(5),true,true)
call CustomDefeatBJ(Player(6),"TRIGSTR_1395")
call CustomVictoryBJ(Player(7),true,true)
endfunction
//===========================================================================
function InitTrig_Victory_Race takes nothing returns nothing
set udg_trg_Victory_Race=CreateTrigger()
call DisableTrigger(udg_trg_Victory_Race)
call TriggerRegisterAnyUnitEventBJ(udg_trg_Victory_Race,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Victory_Race,Condition(function Trig_Victory_Race_Conditions))
call TriggerAddAction(udg_trg_Victory_Race,function Trig_Victory_Race_Actions)
endfunction
//===========================================================================
//Trigger:Lives Left
//===========================================================================
function Trig_Lives_Left_Func001Func003C takes nothing returns boolean
if((udg_Ninth_Step_Chosen==1))then
return true
endif
if((udg_Archer_Stronghold_Chosen==1))then
return true
endif
return false
endfunction
function Trig_Lives_Left_Func001C takes nothing returns boolean
if(not Trig_Lives_Left_Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Lives_Left_Func002Func003C takes nothing returns boolean
if((udg_Race_Chosen==1))then
return true
endif
return false
endfunction
function Trig_Lives_Left_Func002C takes nothing returns boolean
if(not Trig_Lives_Left_Func002Func003C())then
return false
endif
return true
endfunction
function Trig_Lives_Left_Actions takes nothing returns nothing
if(Trig_Lives_Left_Func001C())then
call TriggerExecute(udg_trg_Lives_Title_Norm)
else
call DoNothing()
endif
if(Trig_Lives_Left_Func002C())then
call TriggerExecute(udg_trg_Lives_Title_Race)
else
call DoNothing()
endif
set udg_Lives_Board=GetLastCreatedMultiboard()
call MultiboardSetTitleTextColorBJ(GetLastCreatedMultiboard(),0.00,100.00,0.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,1,100,0.00,0.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,2,0.00,0.00,100.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,3,0.00,100.00,100.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,4,75.00,0.00,100.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,5,100.00,100.00,0.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,6,100.00,75.00,0.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,7,0.00,100.00,0.00,0)
call MultiboardSetItemColorBJ(udg_Lives_Board,1,8,100.00,0.00,100.00,0)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,1,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,2,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,3,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,4,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,5,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,6,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,7,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,8,true,false)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,1,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,2,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,3,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,4,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,5,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,6,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,7,11.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,8,11.00)
call MultiboardDisplayBJ(true,GetLastCreatedMultiboard())
call MultiboardMinimizeBJ(true,GetLastCreatedMultiboard())
endfunction
//===========================================================================
function InitTrig_Lives_Left takes nothing returns nothing
set udg_trg_Lives_Left=CreateTrigger()
call TriggerAddAction(udg_trg_Lives_Left,function Trig_Lives_Left_Actions)
endfunction
//===========================================================================
//Trigger:Lives Title Norm
//===========================================================================
function Trig_Lives_Title_Norm_Actions takes nothing returns nothing
call CreateMultiboardBJ(1,8,(" Жизней осталось: "+(I2S(udg_Life_Count)+" ")))
endfunction
//===========================================================================
function InitTrig_Lives_Title_Norm takes nothing returns nothing
set udg_trg_Lives_Title_Norm=CreateTrigger()
call DisableTrigger(udg_trg_Lives_Title_Norm)
call TriggerAddAction(udg_trg_Lives_Title_Norm,function Trig_Lives_Title_Norm_Actions)
endfunction
//===========================================================================
//Trigger:Lives Title Race
//===========================================================================
function Trig_Lives_Title_Race_Actions takes nothing returns nothing
call CreateMultiboardBJ(1,8,("Жизней слева: "+(I2S(udg_Life_Count)+(" "+("Жизней справа: "+I2S(udg_Life_Count_Race))))))
endfunction
//===========================================================================
function InitTrig_Lives_Title_Race takes nothing returns nothing
set udg_trg_Lives_Title_Race=CreateTrigger()
call DisableTrigger(udg_trg_Lives_Title_Race)
call TriggerAddAction(udg_trg_Lives_Title_Race,function Trig_Lives_Title_Race_Actions)
endfunction
//===========================================================================
//Trigger:Setup Leaderboard
//===========================================================================
function Trig_Setup_Leaderboard_Func002001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Setup_Leaderboard_Func002002 takes nothing returns nothing
call LeaderboardAddItemBJ(GetEnumPlayer(),GetLastCreatedLeaderboard(),GetPlayerName(GetEnumPlayer()),0)
endfunction
function Trig_Setup_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ(GetPlayersAll(),("Крепость лучников--ур. "+I2S(udg_Wave_Number)))
call ForForce(GetPlayersMatching(Condition(function Trig_Setup_Leaderboard_Func002001001)),function Trig_Setup_Leaderboard_Func002002)
call LeaderboardRemovePlayerItemBJ(Player(8),GetLastCreatedLeaderboard())
call LeaderboardDisplayBJ(true,GetLastCreatedLeaderboard())
set udg_KillsLeaderBoard=GetLastCreatedLeaderboard()
endfunction
//===========================================================================
function InitTrig_Setup_Leaderboard takes nothing returns nothing
set udg_trg_Setup_Leaderboard=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trg_Setup_Leaderboard,2.00)
call TriggerAddAction(udg_trg_Setup_Leaderboard,function Trig_Setup_Leaderboard_Actions)
endfunction
//===========================================================================
//Trigger:Add Point
//===========================================================================
function Trig_Add_Point_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=GetOwningPlayer(GetKillingUnitBJ())))then
return false
endif
return true
endfunction
function Trig_Add_Point_Actions takes nothing returns nothing
set udg_IntegerValue[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_IntegerValue[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
call TriggerSleepAction(0.01)
call LeaderboardSetPlayerItemValueBJ(GetOwningPlayer(GetKillingUnitBJ()),udg_KillsLeaderBoard,udg_IntegerValue[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])
call LeaderboardSortItemsBJ(GetLastCreatedLeaderboard(),bj_SORTTYPE_SORTBYVALUE,false)
endfunction
//===========================================================================
function InitTrig_Add_Point takes nothing returns nothing
set udg_trg_Add_Point=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Add_Point,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Add_Point,Condition(function Trig_Add_Point_Conditions))
call TriggerAddAction(udg_trg_Add_Point,function Trig_Add_Point_Actions)
endfunction
//===========================================================================
//Trigger:Update Wave
//===========================================================================
function Trig_Update_Wave_Func003A takes nothing returns nothing
call AdjustPlayerStateBJ(125,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)+1))
endfunction
function Trig_Update_Wave_Actions takes nothing returns nothing
set udg_Wave_Number=(udg_Wave_Number+1)
call LeaderboardSetLabelBJ(GetLastCreatedLeaderboard(),("Крепость лучников--ур. "+I2S(udg_Wave_Number)))
call ForForce(GetPlayersAll(),function Trig_Update_Wave_Func003A)
endfunction
//===========================================================================
function InitTrig_Update_Wave takes nothing returns nothing
set udg_trg_Update_Wave=CreateTrigger()
call DisableTrigger(udg_trg_Update_Wave)
call TriggerAddAction(udg_trg_Update_Wave,function Trig_Update_Wave_Actions)
endfunction
//===========================================================================
//Trigger:Tri Strike Apocalypse 1
//===========================================================================
function Trig_Tri_Strike_Apocalypse_1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00G'))then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_1_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rct_Tri_Strike_Apocalypse_1,GetUnitLoc(GetTriggerUnit()))
set udg_Tri_Caster_1=GetTriggerPlayer()
set udg_Tri_Strike_1=1
call AddSpecialEffectLocBJ(GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
set udg_SPF1=GetLastCreatedEffectBJ()
call ConditionalTriggerExecute(udg_trg_Wait_15_seconds_1)
call TriggerSleepAction(0.01)
call EnableTrigger(udg_trg_Tri_Strike_Apocalypse_2)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Tri_Strike_Apocalypse_1 takes nothing returns nothing
set udg_trg_Tri_Strike_Apocalypse_1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Tri_Strike_Apocalypse_1,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trg_Tri_Strike_Apocalypse_1,Condition(function Trig_Tri_Strike_Apocalypse_1_Conditions))
call TriggerAddAction(udg_trg_Tri_Strike_Apocalypse_1,function Trig_Tri_Strike_Apocalypse_1_Actions)
endfunction
//===========================================================================
//Trigger:Wait 15 seconds 1
//===========================================================================
function Trig_Wait_15_seconds_1_Actions takes nothing returns nothing
call TriggerSleepAction(15.00)
call DestroyEffectBJ(udg_SPF1)
set udg_Tri_Strike_1=0
endfunction
//===========================================================================
function InitTrig_Wait_15_seconds_1 takes nothing returns nothing
set udg_trg_Wait_15_seconds_1=CreateTrigger()
call DisableTrigger(udg_trg_Wait_15_seconds_1)
call TriggerAddAction(udg_trg_Wait_15_seconds_1,function Trig_Wait_15_seconds_1_Actions)
endfunction
//===========================================================================
//Trigger:Tri Strike Apocalypse 2
//===========================================================================
function Trig_Tri_Strike_Apocalypse_2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00G'))then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_2_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rct_Tri_Strike_Apocalypse_2,GetUnitLoc(GetTriggerUnit()))
set udg_Tri_Caster_2=GetTriggerPlayer()
set udg_Tri_Strike_2=1
call AddSpecialEffectLocBJ(GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
set udg_SPF2=GetLastCreatedEffectBJ()
call ConditionalTriggerExecute(udg_trg_Wait_15_seconds_2)
call TriggerSleepAction(0.01)
call EnableTrigger(udg_trg_Tri_Strike_Apocalypse_3)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Tri_Strike_Apocalypse_2 takes nothing returns nothing
set udg_trg_Tri_Strike_Apocalypse_2=CreateTrigger()
call DisableTrigger(udg_trg_Tri_Strike_Apocalypse_2)
call TriggerRegisterAnyUnitEventBJ(udg_trg_Tri_Strike_Apocalypse_2,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trg_Tri_Strike_Apocalypse_2,Condition(function Trig_Tri_Strike_Apocalypse_2_Conditions))
call TriggerAddAction(udg_trg_Tri_Strike_Apocalypse_2,function Trig_Tri_Strike_Apocalypse_2_Actions)
endfunction
//===========================================================================
//Trigger:Wait 15 seconds 2
//===========================================================================
function Trig_Wait_15_seconds_2_Actions takes nothing returns nothing
call TriggerSleepAction(15.00)
call DestroyEffectBJ(udg_SPF2)
set udg_Tri_Strike_2=0
endfunction
//===========================================================================
function InitTrig_Wait_15_seconds_2 takes nothing returns nothing
set udg_trg_Wait_15_seconds_2=CreateTrigger()
call DisableTrigger(udg_trg_Wait_15_seconds_2)
call TriggerAddAction(udg_trg_Wait_15_seconds_2,function Trig_Wait_15_seconds_2_Actions)
endfunction
//===========================================================================
//Trigger:Tri Strike Apocalypse 3
//===========================================================================
function Trig_Tri_Strike_Apocalypse_3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00G'))then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_3_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rct_Tri_Strike_Apocalypse_3,GetUnitLoc(GetTriggerUnit()))
set udg_Tri_Caster_3=GetTriggerPlayer()
set udg_Tri_Strike_3=1
call AddSpecialEffectLocBJ(GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
set udg_SPF3=GetLastCreatedEffectBJ()
call ConditionalTriggerExecute(udg_trg_Wait_15_seconds_3)
call TriggerSleepAction(0.01)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Tri_Strike_Apocalypse_3 takes nothing returns nothing
set udg_trg_Tri_Strike_Apocalypse_3=CreateTrigger()
call DisableTrigger(udg_trg_Tri_Strike_Apocalypse_3)
call TriggerRegisterAnyUnitEventBJ(udg_trg_Tri_Strike_Apocalypse_3,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trg_Tri_Strike_Apocalypse_3,Condition(function Trig_Tri_Strike_Apocalypse_3_Conditions))
call TriggerAddAction(udg_trg_Tri_Strike_Apocalypse_3,function Trig_Tri_Strike_Apocalypse_3_Actions)
endfunction
//===========================================================================
//Trigger:Wait 15 seconds 3
//===========================================================================
function Trig_Wait_15_seconds_3_Actions takes nothing returns nothing
call TriggerSleepAction(15.00)
call DestroyEffectBJ(udg_SPF3)
set udg_Tri_Strike_3=0
endfunction
//===========================================================================
function InitTrig_Wait_15_seconds_3 takes nothing returns nothing
set udg_trg_Wait_15_seconds_3=CreateTrigger()
call DisableTrigger(udg_trg_Wait_15_seconds_3)
call TriggerAddAction(udg_trg_Wait_15_seconds_3,function Trig_Wait_15_seconds_3_Actions)
endfunction
//===========================================================================
//Trigger:Tri Strike Apocalypse
//===========================================================================
function Trig_Tri_Strike_Apocalypse_Func017C takes nothing returns boolean
if(not(udg_Tri_Strike_1==1))then
return false
endif
if(not(udg_Tri_Strike_2==1))then
return false
endif
if(not(udg_Tri_Strike_3==1))then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Conditions takes nothing returns boolean
if(not Trig_Tri_Strike_Apocalypse_Func017C())then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Func092C takes nothing returns boolean
if(not(udg_Archer_Stronghold_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Func093C takes nothing returns boolean
if(not(udg_Ninth_Step_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Func094Func001Func002C takes nothing returns boolean
if((udg_Tri_Caster_1==Player(0)))then
return true
endif
if((udg_Tri_Caster_1==Player(2)))then
return true
endif
if((udg_Tri_Caster_1==Player(4)))then
return true
endif
if((udg_Tri_Caster_1==Player(6)))then
return true
endif
return false
endfunction
function Trig_Tri_Strike_Apocalypse_Func094Func001Func003C takes nothing returns boolean
if((udg_Tri_Caster_2==Player(0)))then
return true
endif
if((udg_Tri_Caster_2==Player(2)))then
return true
endif
if((udg_Tri_Caster_2==Player(4)))then
return true
endif
if((udg_Tri_Caster_2==Player(6)))then
return true
endif
return false
endfunction
function Trig_Tri_Strike_Apocalypse_Func094Func001Func004C takes nothing returns boolean
if((udg_Tri_Caster_3==Player(0)))then
return true
endif
if((udg_Tri_Caster_3==Player(2)))then
return true
endif
if((udg_Tri_Caster_3==Player(4)))then
return true
endif
if((udg_Tri_Caster_3==Player(6)))then
return true
endif
return false
endfunction
function Trig_Tri_Strike_Apocalypse_Func094Func001C takes nothing returns boolean
if(not(udg_Race_Chosen==1))then
return false
endif
if(not Trig_Tri_Strike_Apocalypse_Func094Func001Func002C())then
return false
endif
if(not Trig_Tri_Strike_Apocalypse_Func094Func001Func003C())then
return false
endif
if(not Trig_Tri_Strike_Apocalypse_Func094Func001Func004C())then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Func094C takes nothing returns boolean
if(not Trig_Tri_Strike_Apocalypse_Func094Func001C())then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Func095Func001Func002C takes nothing returns boolean
if((udg_Tri_Caster_1==Player(1)))then
return true
endif
if((udg_Tri_Caster_1==Player(3)))then
return true
endif
if((udg_Tri_Caster_1==Player(5)))then
return true
endif
if((udg_Tri_Caster_1==Player(7)))then
return true
endif
return false
endfunction
function Trig_Tri_Strike_Apocalypse_Func095Func001Func003C takes nothing returns boolean
if((udg_Tri_Caster_2==Player(1)))then
return true
endif
if((udg_Tri_Caster_2==Player(3)))then
return true
endif
if((udg_Tri_Caster_2==Player(5)))then
return true
endif
if((udg_Tri_Caster_2==Player(7)))then
return true
endif
return false
endfunction
function Trig_Tri_Strike_Apocalypse_Func095Func001Func004C takes nothing returns boolean
if((udg_Tri_Caster_3==Player(1)))then
return true
endif
if((udg_Tri_Caster_3==Player(3)))then
return true
endif
if((udg_Tri_Caster_3==Player(5)))then
return true
endif
if((udg_Tri_Caster_3==Player(7)))then
return true
endif
return false
endfunction
function Trig_Tri_Strike_Apocalypse_Func095Func001C takes nothing returns boolean
if(not(udg_Race_Chosen==1))then
return false
endif
if(not Trig_Tri_Strike_Apocalypse_Func095Func001Func002C())then
return false
endif
if(not Trig_Tri_Strike_Apocalypse_Func095Func001Func003C())then
return false
endif
if(not Trig_Tri_Strike_Apocalypse_Func095Func001Func004C())then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Func095C takes nothing returns boolean
if(not Trig_Tri_Strike_Apocalypse_Func095Func001C())then
return false
endif
return true
endfunction
function Trig_Tri_Strike_Apocalypse_Actions takes nothing returns nothing
set udg_Tri_Strike_1=0
set udg_Tri_Strike_2=0
set udg_Tri_Strike_3=0
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call AddLightningLoc("DRAL",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2))
set udg_LightingEffect1=GetLastCreatedLightningBJ()
call AddLightningLoc("DRAM",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2))
set udg_LightingEffect11=GetLastCreatedLightningBJ()
call AddLightningLoc("DRAB",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2))
set udg_LightingEffect111=GetLastCreatedLightningBJ()
call TriggerSleepAction(0.50)
call AddLightningLoc("DRAL",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3))
set udg_LightingEffect2=GetLastCreatedLightningBJ()
call AddLightningLoc("DRAM",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3))
set udg_LightingEffect22=GetLastCreatedLightningBJ()
call AddLightningLoc("DRAB",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3))
set udg_LightingEffect222=GetLastCreatedLightningBJ()
call TriggerSleepAction(0.50)
call AddLightningLoc("DRAL",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1))
set udg_LightingEffect3=GetLastCreatedLightningBJ()
call AddLightningLoc("DRAM",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1))
set udg_LightingEffect33=GetLastCreatedLightningBJ()
call AddLightningLoc("DRAB",GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1))
set udg_LightingEffect333=GetLastCreatedLightningBJ()
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(13.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_1),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(13.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(13.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_2),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(13.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(13.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(udg_rct_Tri_Strike_Apocalypse_3),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(13.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h00N',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
if(Trig_Tri_Strike_Apocalypse_Func092C())then
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
else
endif
if(Trig_Tri_Strike_Apocalypse_Func093C())then
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
else
endif
if(Trig_Tri_Strike_Apocalypse_Func094C())then
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Archer_Stronghold_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
else
endif
if(Trig_Tri_Strike_Apocalypse_Func095C())then
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_1,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_2,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e003',udg_Tri_Caster_3,GetRandomLocInRect(udg_rct_Ninth_Step_Apoc),bj_UNIT_FACING)
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"locustswarm")
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRandomLocInRect(udg_rct_Ninth_Step_Apoc))
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
else
endif
call TriggerSleepAction(13.00)
call DestroyLightningBJ(udg_LightingEffect1)
call DestroyLightningBJ(udg_LightingEffect11)
call DestroyLightningBJ(udg_LightingEffect111)
call DestroyLightningBJ(udg_LightingEffect2)
call DestroyLightningBJ(udg_LightingEffect22)
call DestroyLightningBJ(udg_LightingEffect222)
call DestroyLightningBJ(udg_LightingEffect3)
call DestroyLightningBJ(udg_LightingEffect33)
call DestroyLightningBJ(udg_LightingEffect333)
call DestroyEffectBJ(udg_Bolt1)
call DestroyEffectBJ(udg_Bolt11)
call DestroyEffectBJ(udg_Bolt2)
call DestroyEffectBJ(udg_Bolt22)
call DestroyEffectBJ(udg_Bolt3)
call DestroyEffectBJ(udg_Bolt33)
call TriggerSleepAction(2)
call EnableTrigger(udg_trg_Tri_Strike_Apocalypse_1)
set udg_Tri_Strike_1=0
set udg_Tri_Strike_2=0
set udg_Tri_Strike_3=0
endfunction
//===========================================================================
function InitTrig_Tri_Strike_Apocalypse takes nothing returns nothing
set udg_trg_Tri_Strike_Apocalypse=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trg_Tri_Strike_Apocalypse,2.00)
call TriggerAddCondition(udg_trg_Tri_Strike_Apocalypse,Condition(function Trig_Tri_Strike_Apocalypse_Conditions))
call TriggerAddAction(udg_trg_Tri_Strike_Apocalypse,function Trig_Tri_Strike_Apocalypse_Actions)
endfunction
//===========================================================================
//Trigger:Cam 1
//===========================================================================
function Trig_Cam_1_Actions takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_cam_Tactical,GetTriggerPlayer(),1.50)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetCameraTargetPositionLoc(),0.00)
endfunction
//===========================================================================
function InitTrig_Cam_1 takes nothing returns nothing
set udg_trg_Cam_1=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(0),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(0),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(1),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(1),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(2),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(2),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(3),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(3),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(4),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(4),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(5),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(5),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(6),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(6),"TRIGSTR_2141",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(7),"TRIGSTR_2140",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_1,Player(7),"TRIGSTR_2141",true)
call TriggerAddAction(udg_trg_Cam_1,function Trig_Cam_1_Actions)
endfunction
//===========================================================================
//Trigger:Cam 2
//===========================================================================
function Trig_Cam_2_Actions takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_cam_Close_In,GetTriggerPlayer(),1.50)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetCameraTargetPositionLoc(),0.00)
endfunction
//===========================================================================
function InitTrig_Cam_2 takes nothing returns nothing
set udg_trg_Cam_2=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(0),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(0),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(1),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(1),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(2),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(2),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(3),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(3),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(4),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(4),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(5),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(5),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(6),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(6),"TRIGSTR_2143",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(7),"TRIGSTR_2142",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_2,Player(7),"TRIGSTR_2143",true)
call TriggerAddAction(udg_trg_Cam_2,function Trig_Cam_2_Actions)
endfunction
//===========================================================================
//Trigger:Cam 3
//===========================================================================
function Trig_Cam_3_Actions takes nothing returns nothing
call ResetToGameCameraForPlayer(GetTriggerPlayer(),1.50)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetCameraTargetPositionLoc(),0.00)
endfunction
//===========================================================================
function InitTrig_Cam_3 takes nothing returns nothing
set udg_trg_Cam_3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(0),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(0),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(1),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(1),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(2),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(2),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(3),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(3),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(4),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(4),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(5),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(5),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(6),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(6),"TRIGSTR_2144",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(7),"TRIGSTR_2145",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cam_3,Player(7),"TRIGSTR_2144",true)
call TriggerAddAction(udg_trg_Cam_3,function Trig_Cam_3_Actions)
endfunction
//===========================================================================
//Trigger:Set Variables
//
//******CODE STRUCTURE******
//~~~~A WW Zii A^Wii YY Wi A ZZ XX*Zi A~~~~
//Variables:
//Y:Completly Random;no impact------><(must contain a correct variant of the Random Number in entrance of code)
//X:Completly Random;no impact------><(must contain a correct variant of the Random Number in entrance of code)
//A:Completly Random;no impact------><(must contain a correct variant of the Random Number in entrance of code)
//Z:Specific Number Code;Required
//Zi:Specific Number Code(100-999);Required
//Zii:Specific Number Code(1000-9999);Required
//W:Specific Number Code;Required
//Wi:Specific Number Code(100-999);Required
//Wii:Specific Number Code(1000-9999);Required
//"*"(See Diagram):First letter of user name
//"^"(See Diagram):Second letter of user name
//===========================================================================
function Trig_Set_Variables_Actions takes nothing returns nothing
//"Y"
set udg_Save_Numbers_RandomY[1]="F8"
set udg_Save_Numbers_RandomY[2]="L1"
set udg_Save_Numbers_RandomY[3]="GW"
set udg_Save_Numbers_RandomY[4]="nm"
set udg_Save_Numbers_RandomY[5]="yt"
set udg_Save_Numbers_RandomY[6]="98"
set udg_Save_Numbers_RandomY[7]="de"
set udg_Save_Numbers_RandomY[8]="1z"
set udg_Save_Numbers_RandomY[9]="ol"
//A
set udg_Save_Numbers_RandomA[0]="8"
set udg_Save_Numbers_RandomA[1]="X"
set udg_Save_Numbers_RandomA[2]="U"
set udg_Save_Numbers_RandomA[3]="W"
set udg_Save_Numbers_RandomA[4]="1"
set udg_Save_Numbers_RandomA[5]="V"
set udg_Save_Numbers_RandomA[6]="i"
set udg_Save_Numbers_RandomA[7]="L"
set udg_Save_Numbers_RandomA[8]="Z"
set udg_Save_Numbers_RandomA[9]="f"
set udg_Save_Numbers_RandomA[10]="7"
set udg_Save_Numbers_RandomA[11]="h"
set udg_Save_Numbers_RandomA[12]="9"
set udg_Save_Numbers_RandomA[13]="u"
set udg_Save_Numbers_RandomA[14]="2"
set udg_Save_Numbers_RandomA[15]="t"
//XX
set udg_Save_X[1]="V5"
set udg_Save_X[2]="Ew"
set udg_Save_X[3]="X5"
set udg_Save_X[4]="Wt"
set udg_Save_X[5]="Ri"
set udg_Save_X[6]="kG"
set udg_Save_X[7]="1g"
set udg_Save_X[8]="Ka"
set udg_Save_X[9]="rA"
set udg_Save_X[10]="Rf"
set udg_Save_X[11]="R1"
set udg_Save_X[12]="sD"
//Z(Hundred)(Same as W)
set udg_Save_ZHundred[0]="i"
set udg_Save_ZHundred[1]="h"
set udg_Save_ZHundred[2]="n"
set udg_Save_ZHundred[3]="z"
set udg_Save_ZHundred[4]="3"
set udg_Save_ZHundred[5]="t"
set udg_Save_ZHundred[6]="d"
set udg_Save_ZHundred[6]="s"
set udg_Save_ZHundred[7]="x"
set udg_Save_ZHundred[8]="q"
set udg_Save_ZHundred[9]="2"
//Z(Thousand)(Same as W)
set udg_Save_ZThousand[0]="j"
set udg_Save_ZThousand[1]="a"
set udg_Save_ZThousand[2]="9"
set udg_Save_ZThousand[3]="w"
set udg_Save_ZThousand[4]="5"
set udg_Save_ZThousand[5]="y"
set udg_Save_ZThousand[6]="s"
set udg_Save_ZThousand[7]="u"
set udg_Save_ZThousand[8]="k"
set udg_Save_ZThousand[9]="7"
//ZZZ(Same as W)
set udg_Save_Z[0]="A4"
set udg_Save_Z[1]="z7"
set udg_Save_Z[2]="c7"
set udg_Save_Z[3]="A1"
set udg_Save_Z[4]="y3"
set udg_Save_Z[5]="Fx"
set udg_Save_Z[6]="GA"
set udg_Save_Z[7]="k6"
set udg_Save_Z[8]="hy"
set udg_Save_Z[9]="93"
set udg_Save_Z[10]="Wk"
set udg_Save_Z[11]="a9"
set udg_Save_Z[12]="fV"
set udg_Save_Z[13]="98"
set udg_Save_Z[14]="Yg"
set udg_Save_Z[15]="aB"
set udg_Save_Z[16]="7b"
set udg_Save_Z[17]="9v"
set udg_Save_Z[18]="yF"
set udg_Save_Z[19]="b2"
set udg_Save_Z[20]="71"
set udg_Save_Z[21]="Gj"
set udg_Save_Z[22]="7c"
set udg_Save_Z[23]="Ja"
set udg_Save_Z[24]="1s"
set udg_Save_Z[25]="Yc"
set udg_Save_Z[26]="7x"
set udg_Save_Z[27]="7A"
set udg_Save_Z[28]="Au"
set udg_Save_Z[29]="zX"
set udg_Save_Z[30]="VY"
set udg_Save_Z[31]="6w"
set udg_Save_Z[32]="d2"
set udg_Save_Z[33]="G4"
set udg_Save_Z[34]="k2"
set udg_Save_Z[35]="b5"
set udg_Save_Z[36]="X2"
set udg_Save_Z[37]="wv"
set udg_Save_Z[38]="L8"
set udg_Save_Z[39]="J2"
set udg_Save_Z[40]="Hx"
set udg_Save_Z[41]="Wa"
set udg_Save_Z[42]="h7"
set udg_Save_Z[43]="jw"
set udg_Save_Z[44]="Za"
set udg_Save_Z[45]="UL"
set udg_Save_Z[46]="68"
set udg_Save_Z[47]="JH"
set udg_Save_Z[48]="Uw"
set udg_Save_Z[49]="2c"
set udg_Save_Z[50]="Vm"
set udg_Save_Z[51]="Vg"
set udg_Save_Z[52]="Px"
set udg_Save_Z[53]="1q"
set udg_Save_Z[54]="Qt"
set udg_Save_Z[55]="eT"
set udg_Save_Z[56]="ia"
set udg_Save_Z[57]="Ni"
set udg_Save_Z[58]="J5"
set udg_Save_Z[59]="81"
set udg_Save_Z[60]="Bc"
set udg_Save_Z[61]="D8"
set udg_Save_Z[62]="M3"
set udg_Save_Z[63]="O4"
set udg_Save_Z[64]="Uc"
set udg_Save_Z[65]="p1"
set udg_Save_Z[66]="ig"
set udg_Save_Z[67]="Ur"
set udg_Save_Z[68]="Ez"
set udg_Save_Z[69]="f1"
set udg_Save_Z[70]="Vv"
set udg_Save_Z[71]="Qz"
set udg_Save_Z[72]="5N"
set udg_Save_Z[73]="Rb"
set udg_Save_Z[74]="8x"
set udg_Save_Z[75]="rQ"
set udg_Save_Z[76]="SN"
set udg_Save_Z[77]="cK"
set udg_Save_Z[78]="SA"
set udg_Save_Z[79]="Dw"
set udg_Save_Z[80]="Lq"
set udg_Save_Z[81]="2X"
set udg_Save_Z[82]="r9"
set udg_Save_Z[83]="Ta"
set udg_Save_Z[84]="5L"
set udg_Save_Z[85]="t2"
set udg_Save_Z[86]="im"
set udg_Save_Z[87]="Bq"
set udg_Save_Z[88]="kH"
set udg_Save_Z[89]="Ca"
set udg_Save_Z[90]="H1"
set udg_Save_Z[91]="q6"
set udg_Save_Z[92]="kc"
set udg_Save_Z[93]="n7"
set udg_Save_Z[94]="sx"
set udg_Save_Z[95]="tu"
set udg_Save_Z[96]="v6"
set udg_Save_Z[97]="is"
set udg_Save_Z[98]="Mb"
set udg_Save_Z[99]="j2"
endfunction
//===========================================================================
function InitTrig_Set_Variables takes nothing returns nothing
set udg_trg_Set_Variables=CreateTrigger()
call TriggerAddAction(udg_trg_Set_Variables,function Trig_Set_Variables_Actions)
endfunction
//===========================================================================
//Trigger:Save Integer Variable Copy
//
//For information on how the saving of the numbers work and other stuff,see Save Integer Variable(which is under"The Saving (1 Variable)").
//This trigger is identical to its 1 variable counterpart,except it saves 2 variables,instead of one,and its save code is slightly different.There really isn't too much to explain here.The only confusing part might be that"IntegerValue"and IntegerValueW" save the same "Z"values for storage.That is to save game space,and to avoid needless re-setting of variables.The trigger works fine without the need of creating another set of triggers.
//TIP-In Save/lOAD Integer Code III,there is an added anti-crack feature:the deletion of save code displays before another appears.If a player types-save two times in a row,before the second code appears the screen will be cleared for roughly 1.5 seconds.This helps prevent"Code Comparing",a strategy that can be used to find out where vital pieces of information are stored in the code.
//===========================================================================
function Trig_Save_Integer_Variable_Copy_Func001C takes nothing returns boolean
if(not(udg_Normal_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func002C takes nothing returns boolean
if(not(udg_Hard_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func003C takes nothing returns boolean
if(not(udg_Impossible_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func020C takes nothing returns boolean
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]<=99))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func021C takes nothing returns boolean
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]>=100))then
return false
endif
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]<=999))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func022C takes nothing returns boolean
if(not(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]>=1000))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func024C takes nothing returns boolean
if(not(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]<=99))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func025C takes nothing returns boolean
if(not(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]>=100))then
return false
endif
if(not(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]<=999))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func026C takes nothing returns boolean
if(not(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]>=1000))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func028C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func032C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func034C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func037C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func040C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func043C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func047C takes nothing returns boolean
if(not(GetPlayerSlotState(GetTriggerPlayer())==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func050001001 takes nothing returns boolean
return(GetTriggerPlayer()==GetFilterPlayer())
endfunction
function Trig_Save_Integer_Variable_Copy_Func051001001 takes nothing returns boolean
return(GetTriggerPlayer()==GetFilterPlayer())
endfunction
function Trig_Save_Integer_Variable_Copy_Func052C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(0)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func053C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(1)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func054C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(2)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func055C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(3)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func056C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(4)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func057C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(5)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func058C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(6)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func059C takes nothing returns boolean
if(not(GetTriggerPlayer()==Player(7)))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func060C takes nothing returns boolean
if(not(udg_Normal_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func061C takes nothing returns boolean
if(not(udg_Hard_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Func062C takes nothing returns boolean
if(not(udg_Impossible_Chosen==1))then
return false
endif
return true
endfunction
function Trig_Save_Integer_Variable_Copy_Actions takes nothing returns nothing
if(Trig_Save_Integer_Variable_Copy_Func001C())then
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]+20)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func002C())then
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]+35)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func003C())then
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]+55)
else
call DoNothing()
endif
set udg_Letter1ofusername=SubStringBJ(GetPlayerName(GetTriggerPlayer()),1,1)
set udg_Letter2ofusername=SubStringBJ(GetPlayerName(GetTriggerPlayer()),2,2)
call ClearTextMessagesBJ(GetPlayersAll())
//Factor VariableZ(10/100/1000)
if(Trig_Save_Integer_Variable_Copy_Func020C())then
set udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]=0
set udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]=0
set udg_IntegerValueTens[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-(udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]*100))
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func021C())then
set udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]/100)
set udg_IntegerValueTens[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-(udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]*100))
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func022C())then
//Value of 1000's Place
set udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]/1000)
set udg_CalculateZhundred=(udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]*1000)
set udg_IntegerValue1000Copy=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-udg_CalculateZhundred)
//Value of 100's Place
set udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue1000Copy/100)
//Value of 10's Place
set udg_IntegerValueTens[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-((udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]*1000)+(udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]*100)))
else
call DoNothing()
endif
//Factor VariableW(10/100/1000)
if(Trig_Save_Integer_Variable_Copy_Func024C())then
set udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]=0
set udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]=0
set udg_IntegerValueTensW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]-(udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]*100))
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func025C())then
set udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]/100)
set udg_IntegerValueTensW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]-(udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]*100))
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func026C())then
//Value of 1000's Place
set udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]/1000)
set udg_CalculateWhundred=(udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]*1000)
set udg_IntegerValue1000CopyW=(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]-udg_CalculateWhundred)
//Value of 100's Place
set udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue1000CopyW/100)
//Value of 10's Place
set udg_IntegerValueTensW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]-((udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]*1000)+(udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]*100)))
else
call DoNothing()
endif
//------Random(A)------
if(Trig_Save_Integer_Variable_Copy_Func028C())then
set udg_Random_Numbers1=GetRandomInt(1,15)
else
call DoNothing()
endif
//----The Numbers(WW)SEE TOP TRIGGERS----
//Zii(Thousands Place)SEE TOP TRIGGERS
//------Random(A)------
if(Trig_Save_Integer_Variable_Copy_Func032C())then
set udg_Random_Numbers2=GetRandomInt(1,15)
else
call DoNothing()
endif
//Username Letters(#2)
if(Trig_Save_Integer_Variable_Copy_Func034C())then
else
call DoNothing()
endif
//Wii(Thousands Place)SEE TOP TRIGGERS
//------Random(YY)------
if(Trig_Save_Integer_Variable_Copy_Func037C())then
set udg_Random_Numbers3=GetRandomInt(1,9)
set udg_Save_SavingCode=(udg_Save_X[udg_Random_Numbers1]+(udg_Save_Numbers_RandomA[udg_Random_Numbers2]+(SubStringBJ(GetPlayerName(GetTriggerPlayer()),2,2)+(udg_Save_Numbers_RandomY[udg_Random_Numbers3]+""))))
else
call DoNothing()
endif
//Wi(Hundreds Place)SEE TOP TRIGGERS
//------Random(A)------
if(Trig_Save_Integer_Variable_Copy_Func040C())then
set udg_Random_Numbers4=GetRandomInt(1,15)
else
call DoNothing()
endif
//----The Numbers(ZZ)SEE TOP TRIGGERS----
//------Random(XXX)------
if(Trig_Save_Integer_Variable_Copy_Func043C())then
set udg_Random_Numbers5=GetRandomInt(1,12)
else
call DoNothing()
endif
//Username Letters(#1)
//Zi(Hundreds Place)SEE TOP TRIGGERS
//------Random(A)------
if(Trig_Save_Integer_Variable_Copy_Func047C())then
set udg_Random_Numbers6=GetRandomInt(1,15)
else
call DoNothing()
endif
set udg_Save_SavingCode=(udg_Save_Numbers_RandomA[udg_Random_Numbers1]+(udg_Save_Z[udg_IntegerValueTensW[GetConvertedPlayerId(GetTriggerPlayer())]]+(udg_Save_ZThousand[udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]]+(udg_Save_Numbers_RandomA[udg_Random_Numbers2]+(SubStringBJ(GetPlayerName(GetTriggerPlayer()),2,2)+(udg_Save_ZThousand[udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]]+(udg_Save_Numbers_RandomY[udg_Random_Numbers3]+(udg_Save_ZHundred[udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]]+(udg_Save_Numbers_RandomA[udg_Random_Numbers4]+(udg_Save_Z[udg_IntegerValueTens[GetConvertedPlayerId(GetTriggerPlayer())]]+(udg_Save_X[udg_Random_Numbers5]+(SubStringBJ(GetPlayerName(GetTriggerPlayer()),1,1)+(udg_Save_ZHundred[udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]]+udg_Save_Numbers_RandomA[udg_Random_Numbers6])))))))))))))
call TriggerSleepAction(1.75)
call DisplayTimedTextToForce(GetPlayersMatching(Condition(function Trig_Save_Integer_Variable_Copy_Func050001001)),240.00,udg_Save_SavingCode)
call DisplayTextToForce(GetPlayersMatching(Condition(function Trig_Save_Integer_Variable_Copy_Func051001001)),"TRIGSTR_1997")
if(Trig_Save_Integer_Variable_Copy_Func052C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,1,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func053C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,2,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func054C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,3,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func055C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,4,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func056C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,5,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func057C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,6,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func058C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,7,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func059C())then
call MultiboardSetItemValueBJ(udg_Lives_Board,1,8,udg_Save_SavingCode)
call MultiboardMinimizeBJ(false,udg_Lives_Board)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func060C())then
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-20)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func061C())then
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-35)
else
call DoNothing()
endif
if(Trig_Save_Integer_Variable_Copy_Func062C())then
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]-55)
else
call DoNothing()
endif
endfunction
//===========================================================================
function InitTrig_Save_Integer_Variable_Copy takes nothing returns nothing
set udg_trg_Save_Integer_Variable_Copy=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(0),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(1),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(2),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(3),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(4),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(5),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(6),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(7),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(8),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(9),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(10),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(10),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(10),"TRIGSTR_2111",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Save_Integer_Variable_Copy,Player(11),"TRIGSTR_2111",true)
call TriggerAddAction(udg_trg_Save_Integer_Variable_Copy,function Trig_Save_Integer_Variable_Copy_Actions)
endfunction
//===========================================================================
//Trigger:Load Integer Variable Copy
//
//Here are the chat substring numbers for each letter(IGNORE ALL SPACES,EXCEPT 1 SPACE BETWEEN"LOAD"AND THE CODE).Each letter,space,symbol and number all count as one space.In the code,the"If"Conditions check to make sure the specific part of the code matches one of the specific part's Variable options.
//23 4 5 7 8 9 10 12 14 16 18 20 22 24
//"- l o a d A WW Zii A ^ Wii Y Y Wi A Z Z XX * Zi A "
//1 6 11 13 15 17 19 21 23
//(To see how this works,see Load Integer Variable,which is under"The Saving (1 Variable)"Trigger folder)
//------------------THE NUMBERS-----------------
//Now that the numbers have been extracted and spread throughout the code,this trigger must re-compile them and create a number out of them.It's quite simple,compared to the extraction process.Here is what the trigger does to compile the numbers(only happens if code is correct):
//IntegerThousand x 1000+IntegerHundred x 100+Integer Tens.If the number we saved was equal to 2195,this would look like(2 x1000)+(1 x 100)+95.It's that simple.The code will take the other values(IntegerThousandW,IntegerHundredW,and IntegerTensW)and calculate the exact same thing.It is quite simple once you understand it.
//===========================================================================
function Trig_Load_Integer_Variable_Copy_Func001Func001C takes nothing returns boolean
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func002Func001C takes nothing returns boolean
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func004Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),7,7)==udg_Save_Numbers_RandomA[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func006Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),8,9)==udg_Save_Z[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func008Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),10,10)==udg_Save_ZThousand[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func010Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),11,11)==udg_Save_Numbers_RandomA[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func012C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),12,12)==udg_Letter2ofusername))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func014Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),13,13)==udg_Save_ZThousand[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func016Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),14,15)==udg_Save_Numbers_RandomY[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func018Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),16,16)==udg_Save_ZHundred[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func020Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),17,17)==udg_Save_Numbers_RandomA[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func022Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),18,19)==udg_Save_Z[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func024Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),20,21)==udg_Save_X[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func026C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),22,22)==udg_Letter1ofusername))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func028Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),23,23)==udg_Save_ZHundred[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func030Func001C takes nothing returns boolean
if(not(SubStringBJ(GetEventPlayerChatString(),24,24)==udg_Save_Numbers_RandomA[GetForLoopIndexB()]))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func032001001 takes nothing returns boolean
return(GetTriggerPlayer()==GetFilterPlayer())
endfunction
function Trig_Load_Integer_Variable_Copy_Func034Func001001001 takes nothing returns boolean
return(GetTriggerPlayer()==GetFilterPlayer())
endfunction
function Trig_Load_Integer_Variable_Copy_Func034Func002001001 takes nothing returns boolean
return(GetTriggerPlayer()==GetFilterPlayer())
endfunction
function Trig_Load_Integer_Variable_Copy_Func034Func004001001 takes nothing returns boolean
return(GetTriggerPlayer()==GetFilterPlayer())
endfunction
function Trig_Load_Integer_Variable_Copy_Func034Func006C takes nothing returns boolean
if(not(udg_Load_True[1]==true))then
return false
endif
if(not(udg_Load_True[2]==true))then
return false
endif
if(not(udg_Load_True[3]==true))then
return false
endif
if(not(udg_Load_True[4]==true))then
return false
endif
if(not(udg_Load_True[6]==true))then
return false
endif
if(not(udg_Load_True[5]==true))then
return false
endif
if(not(udg_Load_True[7]==true))then
return false
endif
if(not(udg_Load_True[9]==true))then
return false
endif
if(not(udg_Load_True[10]==true))then
return false
endif
if(not(udg_Load_True[11]==true))then
return false
endif
if(not(udg_Load_True[12]==true))then
return false
endif
if(not(udg_Load_True[13]==true))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func034Func007Func029C takes nothing returns boolean
if(not(udg_Load_True[1]==true))then
return false
endif
if(not(udg_Load_True[2]==true))then
return false
endif
if(not(udg_Load_True[3]==true))then
return false
endif
if(not(udg_Load_True[4]==true))then
return false
endif
if(not(udg_Load_True[5]==true))then
return false
endif
if(not(udg_Load_True[6]==true))then
return false
endif
if(not(udg_Load_True[7]==true))then
return false
endif
if(not(udg_Load_True[8]==true))then
return false
endif
if(not(udg_Load_True[9]==true))then
return false
endif
if(not(udg_Load_True[10]==true))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func034Func007C takes nothing returns boolean
if(not Trig_Load_Integer_Variable_Copy_Func034Func007Func029C())then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Func034C takes nothing returns boolean
if(not(udg_Load_True[5]==true))then
return false
endif
if(not(udg_Load_True[12]==true))then
return false
endif
return true
endfunction
function Trig_Load_Integer_Variable_Copy_Actions takes nothing returns nothing
set udg_Letter2ofusername=SubStringBJ(GetPlayerName(GetTriggerPlayer()),2,2)
set udg_Letter1ofusername=SubStringBJ(GetPlayerName(GetTriggerPlayer()),1,1)
//-----A-----
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=15
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func004Func001C())then
set udg_Load_True[1]=true
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//Score(WW)
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=99
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func006Func001C())then
set udg_Load_True[2]=true
set udg_IntegerValueTensW[GetConvertedPlayerId(GetTriggerPlayer())]=GetForLoopIndexB()
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//Score(Zii)(Thousands)
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=9
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func008Func001C())then
set udg_Load_True[3]=true
set udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]=GetForLoopIndexB()
set udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]*1000)
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//-----A-----
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=15
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func010Func001C())then
set udg_Load_True[4]=true
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//Ltr 2 of user name
if(Trig_Load_Integer_Variable_Copy_Func012C())then
set udg_Load_True[5]=true
else
endif
//Score(Wii)(Thousands)
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=9
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func014Func001C())then
set udg_Load_True[6]=true
set udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]=GetForLoopIndexB()
set udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]*1000)
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//------YY------
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=9
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func016Func001C())then
set udg_Load_True[7]=true
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//Score(Wi)(Hundreds)
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=9
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func018Func001C())then
set udg_Load_True[8]=true
set udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]=GetForLoopIndexB()
set udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]*100)
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//-----A-----
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=15
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func020Func001C())then
set udg_Load_True[9]=true
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//Score(ZZ)
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=99
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func022Func001C())then
set udg_Load_True[10]=true
set udg_IntegerValueTens[GetConvertedPlayerId(GetTriggerPlayer())]=GetForLoopIndexB()
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//------XX------
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func024Func001C())then
set udg_Load_True[11]=true
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//Ltr 1 of user name
if(Trig_Load_Integer_Variable_Copy_Func026C())then
set udg_Load_True[12]=true
else
endif
//Score(Zi)(Hundreds)
set bj_forLoopBIndex=0
set bj_forLoopBIndexEnd=9
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func028Func001C())then
set udg_Load_True[13]=true
set udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]=GetForLoopIndexB()
set udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]*100)
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//------A------
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=15
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_Load_Integer_Variable_Copy_Func030Func001C())then
set udg_Load_True[14]=true
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
//------Check if all Code is true,else do nothing------
call DisplayTextToForce(GetPlayersMatching(Condition(function Trig_Load_Integer_Variable_Copy_Func032001001)),"TRIGSTR_758")
call TriggerSleepAction(1.50)
if(Trig_Load_Integer_Variable_Copy_Func034C())then
call DisplayTextToForce(GetPlayersMatching(Condition(function Trig_Load_Integer_Variable_Copy_Func034Func002001001)),"TRIGSTR_760")
call TriggerSleepAction(0.50)
call DisplayTextToForce(GetPlayersMatching(Condition(function Trig_Load_Integer_Variable_Copy_Func034Func004001001)),"TRIGSTR_761")
call TriggerSleepAction(1.50)
if(Trig_Load_Integer_Variable_Copy_Func034Func006C())then
call TriggerSleepAction(0.50)
call DisplayTextToForce(bj_FORCE_PLAYER[0],"TRIGSTR_763")
else
call TriggerSleepAction(0.50)
call DisplayTextToForce(bj_FORCE_PLAYER[0],"TRIGSTR_762")
endif
if(Trig_Load_Integer_Variable_Copy_Func034Func007C())then
call TriggerSleepAction(0.50)
call DisplayTextToForce(bj_FORCE_PLAYER[0],"TRIGSTR_765")
set udg_Load_True[1]=false
set udg_Load_True[2]=false
set udg_Load_True[3]=false
set udg_Load_True[4]=false
set udg_Load_True[5]=false
set udg_Load_True[6]=false
set udg_Load_True[7]=false
set udg_Load_True[8]=false
set udg_Load_True[9]=false
set udg_Load_True[10]=false
set udg_Load_True[11]=false
set udg_Load_True[12]=false
set udg_Load_True[13]=false
set udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueThousand[GetConvertedPlayerId(GetTriggerPlayer())]+(udg_IntegerValueHundred[GetConvertedPlayerId(GetTriggerPlayer())]+udg_IntegerValueTens[GetConvertedPlayerId(GetTriggerPlayer())]))
set udg_IntegerValueW[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_IntegerValueThousandW[GetConvertedPlayerId(GetTriggerPlayer())]+(udg_IntegerValueHundredW[GetConvertedPlayerId(GetTriggerPlayer())]+udg_IntegerValueTensW[GetConvertedPlayerId(GetTriggerPlayer())]))
call LeaderboardSetPlayerItemValueBJ(GetTriggerPlayer(),GetLastCreatedLeaderboard(),udg_IntegerValue[GetConvertedPlayerId(GetTriggerPlayer())])
else
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_764")
set udg_Load_True[1]=false
set udg_Load_True[2]=false
set udg_Load_True[3]=false
set udg_Load_True[4]=false
set udg_Load_True[5]=false
set udg_Load_True[6]=false
set udg_Load_True[7]=false
set udg_Load_True[8]=false
set udg_Load_True[9]=false
endif
else
call DisplayTextToForce(GetPlayersMatching(Condition(function Trig_Load_Integer_Variable_Copy_Func034Func001001001)),"TRIGSTR_759")
endif
endfunction
//===========================================================================
function InitTrig_Load_Integer_Variable_Copy takes nothing returns nothing
set udg_trg_Load_Integer_Variable_Copy=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(0),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(1),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(2),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(3),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(4),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(5),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(6),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(7),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(8),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(9),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(10),"TRIGSTR_2146",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Load_Integer_Variable_Copy,Player(11),"TRIGSTR_2146",false)
call TriggerAddAction(udg_trg_Load_Integer_Variable_Copy,function Trig_Load_Integer_Variable_Copy_Actions)
endfunction
//===========================================================================
//Trigger:Composite Bow
//===========================================================================
function Trig_Composite_Bow_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I002')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I003')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_Composite_Bow_Conditions takes nothing returns boolean
if(not Trig_Composite_Bow_Func005C())then
return false
endif
return true
endfunction
function Trig_Composite_Bow_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I002'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I003'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00C',GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_Composite_Bow takes nothing returns nothing
set udg_trg_Composite_Bow=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Composite_Bow,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Composite_Bow,Condition(function Trig_Composite_Bow_Conditions))
call TriggerAddAction(udg_trg_Composite_Bow,function Trig_Composite_Bow_Actions)
endfunction
//===========================================================================
//Trigger:Elunes Escape
//===========================================================================
function Trig_Elunes_Escape_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I006')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I007')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_Elunes_Escape_Conditions takes nothing returns boolean
if(not Trig_Elunes_Escape_Func005C())then
return false
endif
return true
endfunction
function Trig_Elunes_Escape_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I006'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I007'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00G',GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_Elunes_Escape takes nothing returns nothing
set udg_trg_Elunes_Escape=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Elunes_Escape,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Elunes_Escape,Condition(function Trig_Elunes_Escape_Conditions))
call TriggerAddAction(udg_trg_Elunes_Escape,function Trig_Elunes_Escape_Actions)
endfunction
//===========================================================================
//Trigger:Elunes Soul
//===========================================================================
function Trig_Elunes_Soul_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I009')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_Elunes_Soul_Conditions takes nothing returns boolean
if(not Trig_Elunes_Soul_Func005C())then
return false
endif
return true
endfunction
function Trig_Elunes_Soul_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00K',GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_Elunes_Soul takes nothing returns nothing
set udg_trg_Elunes_Soul=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Elunes_Soul,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Elunes_Soul,Condition(function Trig_Elunes_Soul_Conditions))
call TriggerAddAction(udg_trg_Elunes_Soul,function Trig_Elunes_Soul_Actions)
endfunction
//===========================================================================
//Trigger:Elunes Armor
//===========================================================================
function Trig_Elunes_Armor_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I001')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I005')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I008')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_Elunes_Armor_Conditions takes nothing returns boolean
if(not Trig_Elunes_Armor_Func006C())then
return false
endif
return true
endfunction
function Trig_Elunes_Armor_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I005'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I008'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I001'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00M',GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_Elunes_Armor takes nothing returns nothing
set udg_trg_Elunes_Armor=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Elunes_Armor,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Elunes_Armor,Condition(function Trig_Elunes_Armor_Conditions))
call TriggerAddAction(udg_trg_Elunes_Armor,function Trig_Elunes_Armor_Actions)
endfunction
//===========================================================================
//Trigger:Elunes Equipment
//===========================================================================
function Trig_Elunes_Equipment_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00K')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_Elunes_Equipment_Conditions takes nothing returns boolean
if(not Trig_Elunes_Equipment_Func006C())then
return false
endif
return true
endfunction
function Trig_Elunes_Equipment_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00M'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00O',GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_Elunes_Equipment takes nothing returns nothing
set udg_trg_Elunes_Equipment=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Elunes_Equipment,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Elunes_Equipment,Condition(function Trig_Elunes_Equipment_Conditions))
call TriggerAddAction(udg_trg_Elunes_Equipment,function Trig_Elunes_Equipment_Actions)
endfunction
//===========================================================================
//Trigger:Gods Bow
//===========================================================================
function Trig_Gods_Bow_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00C')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I009')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_Gods_Bow_Conditions takes nothing returns boolean
if(not Trig_Gods_Bow_Func005C())then
return false
endif
return true
endfunction
function Trig_Gods_Bow_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00C'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00N',GetTriggerUnit())
endfunction
//===========================================================================
function InitTrig_Gods_Bow takes nothing returns nothing
set udg_trg_Gods_Bow=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Gods_Bow,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Gods_Bow,Condition(function Trig_Gods_Bow_Conditions))
call TriggerAddAction(udg_trg_Gods_Bow,function Trig_Gods_Bow_Actions)
endfunction
//===========================================================================
//Trigger:Ice Blockade
//===========================================================================
function Trig_Ice_Blockade_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01E'))then
return false
endif
return true
endfunction
function Trig_Ice_Blockade_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01E',GetSpellAbilityUnit())<=2))then
return false
endif
return true
endfunction
function Trig_Ice_Blockade_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01E',GetSpellAbilityUnit())==3))then
return false
endif
return true
endfunction
function Trig_Ice_Blockade_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01E',GetSpellAbilityUnit())==4))then
return false
endif
return true
endfunction
function Trig_Ice_Blockade_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01E',GetSpellAbilityUnit())==5))then
return false
endif
return true
endfunction
function Trig_Ice_Blockade_Actions takes nothing returns nothing
if(Trig_Ice_Blockade_Func001C())then
call CreateNUnitsAtLoc(1,'h009',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(12.00,'BTLF',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_Ice_Blockade_Func002C())then
call CreateNUnitsAtLoc(1,'h012',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(22.00,'BTLF',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_Ice_Blockade_Func003C())then
call CreateNUnitsAtLoc(1,'h012',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(22.00,'BTLF',GetLastCreatedUnit())
else
call DoNothing()
endif
if(Trig_Ice_Blockade_Func004C())then
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(GetSpellAbilityUnit()),GetSpellTargetLoc(),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(35.00,'BTLF',GetLastCreatedUnit())
else
call DoNothing()
endif
call EnableTrigger(udg_trg_Ice_Blockade_Remove)
endfunction
//===========================================================================
function InitTrig_Ice_Blockade takes nothing returns nothing
set udg_trg_Ice_Blockade=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Ice_Blockade,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trg_Ice_Blockade,Condition(function Trig_Ice_Blockade_Conditions))
call TriggerAddAction(udg_trg_Ice_Blockade,function Trig_Ice_Blockade_Actions)
endfunction
//===========================================================================
//Trigger:Ice Blockade Remove
//===========================================================================
function Trig_Ice_Blockade_Remove_Func005C takes nothing returns boolean
if((GetUnitTypeId(GetDyingUnit())=='h009'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='h012'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='h013'))then
return true
endif
return false
endfunction
function Trig_Ice_Blockade_Remove_Conditions takes nothing returns boolean
if(not Trig_Ice_Blockade_Remove_Func005C())then
return false
endif
return true
endfunction
function Trig_Ice_Blockade_Remove_Actions takes nothing returns nothing
call RemoveUnit(GetDyingUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call TriggerSleepAction(1.00)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
function InitTrig_Ice_Blockade_Remove takes nothing returns nothing
set udg_trg_Ice_Blockade_Remove=CreateTrigger()
call DisableTrigger(udg_trg_Ice_Blockade_Remove)
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Ice_Blockade_Remove,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Ice_Blockade_Remove,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Ice_Blockade_Remove,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Ice_Blockade_Remove,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Ice_Blockade_Remove,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Ice_Blockade_Remove,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Ice_Blockade_Remove,Condition(function Trig_Ice_Blockade_Remove_Conditions))
call TriggerAddAction(udg_trg_Ice_Blockade_Remove,function Trig_Ice_Blockade_Remove_Actions)
endfunction
//===========================================================================
//Trigger:Multi Target
//===========================================================================
function Trig_Multi_Target_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A017'))then
return false
endif
return true
endfunction
function Trig_Multi_Target_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A017',GetTriggerUnit())==1))then
return false
endif
return true
endfunction
function Trig_Multi_Target_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A017',GetTriggerUnit())==2))then
return false
endif
return true
endfunction
function Trig_Multi_Target_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A017',GetTriggerUnit())==3))then
return false
endif
return true
endfunction
function Trig_Multi_Target_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A017',GetTriggerUnit())==4))then
return false
endif
return true
endfunction
function Trig_Multi_Target_Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A017',GetTriggerUnit())==5))then
return false
endif
return true
endfunction
function Trig_Multi_Target_Actions takes nothing returns nothing
if(Trig_Multi_Target_Func001C())then
call UnitAddAbilityBJ('A00Y',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Multi_Target_Func002C())then
call UnitRemoveAbilityBJ('A00Y',GetTriggerUnit())
call UnitAddAbilityBJ('A018',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Multi_Target_Func003C())then
call UnitRemoveAbilityBJ('A018',GetTriggerUnit())
call UnitAddAbilityBJ('A019',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Multi_Target_Func004C())then
call UnitRemoveAbilityBJ('A019',GetTriggerUnit())
call UnitAddAbilityBJ('A01Q',GetTriggerUnit())
else
call DoNothing()
endif
if(Trig_Multi_Target_Func005C())then
call UnitRemoveAbilityBJ('A01Q',GetTriggerUnit())
call UnitAddAbilityBJ('A01R',GetTriggerUnit())
else
call DoNothing()
endif
endfunction
//===========================================================================
function InitTrig_Multi_Target takes nothing returns nothing
set udg_trg_Multi_Target=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Multi_Target,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trg_Multi_Target,Condition(function Trig_Multi_Target_Conditions))
call TriggerAddAction(udg_trg_Multi_Target,function Trig_Multi_Target_Actions)
endfunction
//===========================================================================
//Trigger:Natures Call
//===========================================================================
function Trig_Natures_Call_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A006'))then
return false
endif
return true
endfunction
function Trig_Natures_Call_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rct_Natures_Call,GetSpellTargetLoc())
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Natures_Call),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(7.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(2.50)
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
//===========================================================================
function InitTrig_Natures_Call takes nothing returns nothing
set udg_trg_Natures_Call=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Natures_Call,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trg_Natures_Call,Condition(function Trig_Natures_Call_Conditions))
call TriggerAddAction(udg_trg_Natures_Call,function Trig_Natures_Call_Actions)
endfunction
//===========================================================================
//Trigger:Holy Sear
//===========================================================================
function Trig_Holy_Sear_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01A'))then
return false
endif
return true
endfunction
function Trig_Holy_Sear_Actions takes nothing returns nothing
call MoveRectToLoc(udg_rct_Holy_Sear,GetSpellTargetLoc())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(0.75)
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(0.75)
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(0.75)
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),GetRandomLocInRect(udg_rct_Holy_Sear),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Holy_Sear takes nothing returns nothing
set udg_trg_Holy_Sear=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Holy_Sear,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trg_Holy_Sear,Condition(function Trig_Holy_Sear_Conditions))
call TriggerAddAction(udg_trg_Holy_Sear,function Trig_Holy_Sear_Actions)
endfunction
//===========================================================================
//Trigger:Night
//===========================================================================
function Trig_Night_Actions takes nothing returns nothing
call SetTimeOfDay(24.00)
call SetTimeOfDayScalePercentBJ(0.00)
endfunction
//===========================================================================
function InitTrig_Night takes nothing returns nothing
set udg_trg_Night=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(0),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(1),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(2),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(3),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(4),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(5),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(6),"TRIGSTR_2147",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Night,Player(7),"TRIGSTR_2147",true)
call TriggerAddAction(udg_trg_Night,function Trig_Night_Actions)
endfunction
//===========================================================================
//Trigger:Dusk
//===========================================================================
function Trig_Dusk_Actions takes nothing returns nothing
call SetTimeOfDay(18.00)
call SetTimeOfDayScalePercentBJ(0.00)
endfunction
//===========================================================================
function InitTrig_Dusk takes nothing returns nothing
set udg_trg_Dusk=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(0),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(1),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(2),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(3),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(4),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(5),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(6),"TRIGSTR_2148",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dusk,Player(7),"TRIGSTR_2148",true)
call TriggerAddAction(udg_trg_Dusk,function Trig_Dusk_Actions)
endfunction
//===========================================================================
//Trigger:Day
//===========================================================================
function Trig_Day_Actions takes nothing returns nothing
call SetTimeOfDay(12.00)
call SetTimeOfDayScalePercentBJ(0.00)
endfunction
//===========================================================================
function InitTrig_Day takes nothing returns nothing
set udg_trg_Day=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(0),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(1),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(2),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(3),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(4),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(5),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(6),"TRIGSTR_2149",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Day,Player(7),"TRIGSTR_2149",true)
call TriggerAddAction(udg_trg_Day,function Trig_Day_Actions)
endfunction
//===========================================================================
//Trigger:Dawn
//===========================================================================
function Trig_Dawn_Actions takes nothing returns nothing
call SetTimeOfDay(6.00)
call SetTimeOfDayScalePercentBJ(0.00)
endfunction
//===========================================================================
function InitTrig_Dawn takes nothing returns nothing
set udg_trg_Dawn=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(0),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(1),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(2),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(3),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(4),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(5),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(6),"TRIGSTR_2150",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Dawn,Player(7),"TRIGSTR_2150",true)
call TriggerAddAction(udg_trg_Dawn,function Trig_Dawn_Actions)
endfunction
//===========================================================================
//Trigger:Cycle
//===========================================================================
function Trig_Cycle_Actions takes nothing returns nothing
call UseTimeOfDayBJ(true)
call SetTimeOfDayScalePercentBJ(100)
endfunction
//===========================================================================
function InitTrig_Cycle takes nothing returns nothing
set udg_trg_Cycle=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(0),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(1),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(2),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(3),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(4),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(5),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(6),"TRIGSTR_2151",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Cycle,Player(7),"TRIGSTR_2151",true)
call TriggerAddAction(udg_trg_Cycle,function Trig_Cycle_Actions)
endfunction
//===========================================================================
//Trigger:Light Rain
//===========================================================================
function Trig_Light_Rain_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'RLlr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
endfunction
//===========================================================================
function InitTrig_Light_Rain takes nothing returns nothing
set udg_trg_Light_Rain=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(0),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(0),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(1),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(1),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(2),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(2),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(3),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(3),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(4),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(4),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(5),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(5),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(6),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(6),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(7),"TRIGSTR_2152",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Rain,Player(7),"TRIGSTR_2152",true)
call TriggerAddAction(udg_trg_Light_Rain,function Trig_Light_Rain_Actions)
endfunction
//===========================================================================
//Trigger:Heavy Rain
//===========================================================================
function Trig_Heavy_Rain_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'RLhr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
endfunction
//===========================================================================
function InitTrig_Heavy_Rain takes nothing returns nothing
set udg_trg_Heavy_Rain=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(0),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(0),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(1),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(1),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(2),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(2),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(3),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(3),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(4),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(4),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(5),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(5),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(6),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(6),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(7),"TRIGSTR_2153",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Rain,Player(7),"TRIGSTR_2153",true)
call TriggerAddAction(udg_trg_Heavy_Rain,function Trig_Heavy_Rain_Actions)
endfunction
//===========================================================================
//Trigger:Sunny
//===========================================================================
function Trig_Sunny_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'LRaa')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
endfunction
//===========================================================================
function InitTrig_Sunny takes nothing returns nothing
set udg_trg_Sunny=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(0),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(1),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(2),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(3),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(4),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(5),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(6),"TRIGSTR_2154",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Sunny,Player(7),"TRIGSTR_2154",true)
call TriggerAddAction(udg_trg_Sunny,function Trig_Sunny_Actions)
endfunction
//===========================================================================
//Trigger:Heavy Wind
//===========================================================================
function Trig_Heavy_Wind_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'WNcw')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
endfunction
//===========================================================================
function InitTrig_Heavy_Wind takes nothing returns nothing
set udg_trg_Heavy_Wind=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(0),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(0),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(1),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(1),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(2),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(2),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(3),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(3),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(4),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(4),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(5),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(5),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(6),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(6),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(7),"TRIGSTR_2155",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Heavy_Wind,Player(7),"TRIGSTR_2155",true)
call TriggerAddAction(udg_trg_Heavy_Wind,function Trig_Heavy_Wind_Actions)
endfunction
//===========================================================================
//Trigger:Light Wind
//===========================================================================
function Trig_Light_Wind_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'WOlw')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
endfunction
//===========================================================================
function InitTrig_Light_Wind takes nothing returns nothing
set udg_trg_Light_Wind=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(0),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(0),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(1),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(1),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(2),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(2),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(3),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(3),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(4),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(4),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(5),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(5),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(6),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(6),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(7),"TRIGSTR_2156",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Light_Wind,Player(7),"TRIGSTR_2156",true)
call TriggerAddAction(udg_trg_Light_Wind,function Trig_Light_Wind_Actions)
endfunction
//===========================================================================
//Trigger:Hail
//===========================================================================
function Trig_Hail_Actions takes nothing returns nothing
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'RAhr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
call EnableTrigger(udg_trg_Hail_Drops_1)
call EnableTrigger(udg_trg_Hail_Drops_2)
call EnableTrigger(udg_trg_Hail_Drops_3)
endfunction
//===========================================================================
function InitTrig_Hail takes nothing returns nothing
set udg_trg_Hail=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(0),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(1),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(2),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(3),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(4),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(5),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(6),"TRIGSTR_2157",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Hail,Player(7),"TRIGSTR_2157",true)
call TriggerAddAction(udg_trg_Hail,function Trig_Hail_Actions)
endfunction
//===========================================================================
//Trigger:Hail Drops 1
//===========================================================================
function Trig_Hail_Drops_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Hail_Drops_1 takes nothing returns nothing
set udg_trg_Hail_Drops_1=CreateTrigger()
call DisableTrigger(udg_trg_Hail_Drops_1)
call TriggerRegisterTimerEventPeriodic(udg_trg_Hail_Drops_1,GetRandomReal(2.00,4.00))
call TriggerAddAction(udg_trg_Hail_Drops_1,function Trig_Hail_Drops_1_Actions)
endfunction
//===========================================================================
//Trigger:Hail Drops 2
//===========================================================================
function Trig_Hail_Drops_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Hail_Drops_2 takes nothing returns nothing
set udg_trg_Hail_Drops_2=CreateTrigger()
call DisableTrigger(udg_trg_Hail_Drops_2)
call TriggerRegisterTimerEventPeriodic(udg_trg_Hail_Drops_2,GetRandomReal(2.00,4.00))
call TriggerAddAction(udg_trg_Hail_Drops_2,function Trig_Hail_Drops_2_Actions)
endfunction
//===========================================================================
//Trigger:Hail Drops 3
//===========================================================================
function Trig_Hail_Drops_3_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'h016',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(GetPlayableMapRect()),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
endfunction
//===========================================================================
function InitTrig_Hail_Drops_3 takes nothing returns nothing
set udg_trg_Hail_Drops_3=CreateTrigger()
call DisableTrigger(udg_trg_Hail_Drops_3)
call TriggerRegisterTimerEventPeriodic(udg_trg_Hail_Drops_3,GetRandomReal(2.00,4.00))
call TriggerAddAction(udg_trg_Hail_Drops_3,function Trig_Hail_Drops_3_Actions)
endfunction
//===========================================================================
//Trigger:None
//===========================================================================
function Trig_None_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call RemoveWeatherEffectBJ(GetLastCreatedWeatherEffect())
endfunction
//===========================================================================
function InitTrig_None takes nothing returns nothing
set udg_trg_None=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(0),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(1),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(2),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(3),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(4),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(5),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(6),"TRIGSTR_2158",true)
call TriggerRegisterPlayerChatEvent(udg_trg_None,Player(7),"TRIGSTR_2158",true)
call TriggerAddAction(udg_trg_None,function Trig_None_Actions)
endfunction
//===========================================================================
//Trigger:Lock
//===========================================================================
function Trig_Lock_Actions takes nothing returns nothing
call DisableTrigger(udg_trg_Light_Rain)
call DisableTrigger(udg_trg_Heavy_Rain)
call DisableTrigger(udg_trg_Sunny)
call DisableTrigger(udg_trg_Hail)
call DisableTrigger(udg_trg_Hail_Drops_1)
call DisableTrigger(udg_trg_Hail_Drops_2)
call DisableTrigger(udg_trg_Hail_Drops_3)
call DisableTrigger(udg_trg_Heavy_Wind)
call DisableTrigger(udg_trg_Light_Wind)
endfunction
//===========================================================================
function InitTrig_Lock takes nothing returns nothing
set udg_trg_Lock=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Lock,Player(0),"TRIGSTR_2159",true)
call TriggerAddAction(udg_trg_Lock,function Trig_Lock_Actions)
endfunction
//===========================================================================
//Trigger:Unlock
//===========================================================================
function Trig_Unlock_Actions takes nothing returns nothing
call EnableTrigger(udg_trg_Light_Rain)
call EnableTrigger(udg_trg_Heavy_Rain)
call EnableTrigger(udg_trg_Sunny)
call EnableTrigger(udg_trg_Hail)
call EnableTrigger(udg_trg_Heavy_Wind)
call EnableTrigger(udg_trg_Light_Wind)
endfunction
//===========================================================================
function InitTrig_Unlock takes nothing returns nothing
set udg_trg_Unlock=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Unlock,Player(0),"TRIGSTR_2160",true)
call TriggerAddAction(udg_trg_Unlock,function Trig_Unlock_Actions)
endfunction
//===========================================================================
//Trigger:Air
//===========================================================================
function Trig_Air_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_1511")
endfunction
//===========================================================================
function InitTrig_Air takes nothing returns nothing
set udg_trg_Air=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(0),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(0),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(1),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(1),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(2),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(2),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(3),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(3),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(4),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(4),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(5),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(5),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(6),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(6),"TRIGSTR_2162",false)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(7),"TRIGSTR_2161",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Air,Player(7),"TRIGSTR_2162",false)
call TriggerAddAction(udg_trg_Air,function Trig_Air_Actions)
endfunction
//===========================================================================
//Trigger:Boss
//===========================================================================
function Trig_Boss_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),"TRIGSTR_1512")
endfunction
//===========================================================================
function InitTrig_Boss takes nothing returns nothing
set udg_trg_Boss=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(0),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(1),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(2),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(3),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(4),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(5),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(6),"TRIGSTR_2163",true)
call TriggerRegisterPlayerChatEvent(udg_trg_Boss,Player(7),"TRIGSTR_2163",true)
call TriggerAddAction(udg_trg_Boss,function Trig_Boss_Actions)
endfunction
//===========================================================================
//Trigger:Kick P2
//===========================================================================
function Trig_Kick_P2_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P2_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(1),"TRIGSTR_1239")
endfunction
//===========================================================================
function InitTrig_Kick_P2 takes nothing returns nothing
set udg_trg_Kick_P2=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P2,Player(0),"TRIGSTR_2164",true)
call TriggerAddCondition(udg_trg_Kick_P2,Condition(function Trig_Kick_P2_Conditions))
call TriggerAddAction(udg_trg_Kick_P2,function Trig_Kick_P2_Actions)
endfunction
//===========================================================================
//Trigger:Kick P3
//===========================================================================
function Trig_Kick_P3_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P3_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(2),"TRIGSTR_1240")
endfunction
//===========================================================================
function InitTrig_Kick_P3 takes nothing returns nothing
set udg_trg_Kick_P3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P3,Player(0),"TRIGSTR_2165",true)
call TriggerAddCondition(udg_trg_Kick_P3,Condition(function Trig_Kick_P3_Conditions))
call TriggerAddAction(udg_trg_Kick_P3,function Trig_Kick_P3_Actions)
endfunction
//===========================================================================
//Trigger:Kick P4
//===========================================================================
function Trig_Kick_P4_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P4_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(3),"TRIGSTR_1241")
endfunction
//===========================================================================
function InitTrig_Kick_P4 takes nothing returns nothing
set udg_trg_Kick_P4=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P4,Player(0),"TRIGSTR_2166",true)
call TriggerAddCondition(udg_trg_Kick_P4,Condition(function Trig_Kick_P4_Conditions))
call TriggerAddAction(udg_trg_Kick_P4,function Trig_Kick_P4_Actions)
endfunction
//===========================================================================
//Trigger:Kick P5
//===========================================================================
function Trig_Kick_P5_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P5_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(4),"TRIGSTR_1242")
endfunction
//===========================================================================
function InitTrig_Kick_P5 takes nothing returns nothing
set udg_trg_Kick_P5=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P5,Player(0),"TRIGSTR_2167",true)
call TriggerAddCondition(udg_trg_Kick_P5,Condition(function Trig_Kick_P5_Conditions))
call TriggerAddAction(udg_trg_Kick_P5,function Trig_Kick_P5_Actions)
endfunction
//===========================================================================
//Trigger:Kick P6
//===========================================================================
function Trig_Kick_P6_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P6_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(5),"TRIGSTR_1243")
endfunction
//===========================================================================
function InitTrig_Kick_P6 takes nothing returns nothing
set udg_trg_Kick_P6=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P6,Player(0),"TRIGSTR_2168",true)
call TriggerAddCondition(udg_trg_Kick_P6,Condition(function Trig_Kick_P6_Conditions))
call TriggerAddAction(udg_trg_Kick_P6,function Trig_Kick_P6_Actions)
endfunction
//===========================================================================
//Trigger:Kick P7
//===========================================================================
function Trig_Kick_P7_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P7_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(6),"TRIGSTR_1244")
endfunction
//===========================================================================
function InitTrig_Kick_P7 takes nothing returns nothing
set udg_trg_Kick_P7=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P7,Player(0),"TRIGSTR_2169",true)
call TriggerAddCondition(udg_trg_Kick_P7,Condition(function Trig_Kick_P7_Conditions))
call TriggerAddAction(udg_trg_Kick_P7,function Trig_Kick_P7_Actions)
endfunction
//===========================================================================
//Trigger:Kick P8
//===========================================================================
function Trig_Kick_P8_Conditions takes nothing returns boolean
if(not(GetPlayerName(Player(0))=="Garthok"))then
return false
endif
return true
endfunction
function Trig_Kick_P8_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(7),"TRIGSTR_1245")
endfunction
//===========================================================================
function InitTrig_Kick_P8 takes nothing returns nothing
set udg_trg_Kick_P8=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trg_Kick_P8,Player(0),"TRIGSTR_2170",true)
call TriggerAddCondition(udg_trg_Kick_P8,Condition(function Trig_Kick_P8_Conditions))
call TriggerAddAction(udg_trg_Kick_P8,function Trig_Kick_P8_Actions)
endfunction
//===========================================================================
//Trigger:Pig Hat Wearage
//===========================================================================
function Trig_Pig_Hat_Wearage_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00S'))then
return false
endif
return true
endfunction
function Trig_Pig_Hat_Wearage_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",GetManipulatingUnit(),"units\\critters\\Felboar\\Felboar.mdl")
set udg_Pig_Hat=GetLastCreatedEffectBJ()
endfunction
//===========================================================================
function InitTrig_Pig_Hat_Wearage takes nothing returns nothing
set udg_trg_Pig_Hat_Wearage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Pig_Hat_Wearage,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trg_Pig_Hat_Wearage,Condition(function Trig_Pig_Hat_Wearage_Conditions))
call TriggerAddAction(udg_trg_Pig_Hat_Wearage,function Trig_Pig_Hat_Wearage_Actions)
endfunction
//===========================================================================
//Trigger:Pig Hat Dropage
//===========================================================================
function Trig_Pig_Hat_Dropage_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00S'))then
return false
endif
return true
endfunction
function Trig_Pig_Hat_Dropage_Actions takes nothing returns nothing
call DestroyEffectBJ(udg_Pig_Hat)
endfunction
//===========================================================================
function InitTrig_Pig_Hat_Dropage takes nothing returns nothing
set udg_trg_Pig_Hat_Dropage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Pig_Hat_Dropage,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerRegisterAnyUnitEventBJ(udg_trg_Pig_Hat_Dropage,EVENT_PLAYER_UNIT_PAWN_ITEM)
call TriggerAddCondition(udg_trg_Pig_Hat_Dropage,Condition(function Trig_Pig_Hat_Dropage_Conditions))
call TriggerAddAction(udg_trg_Pig_Hat_Dropage,function Trig_Pig_Hat_Dropage_Actions)
endfunction
//===========================================================================
//Trigger:Pissed Grunt Leader dies
//===========================================================================
function Trig_Pissed_Grunt_Leader_dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='o005'))then
return false
endif
return true
endfunction
function Trig_Pissed_Grunt_Leader_dies_Actions takes nothing returns nothing
call CreateItemLoc('tdex',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Pissed_Grunt_Leader_dies takes nothing returns nothing
set udg_trg_Pissed_Grunt_Leader_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Pissed_Grunt_Leader_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Pissed_Grunt_Leader_dies,Condition(function Trig_Pissed_Grunt_Leader_dies_Conditions))
call TriggerAddAction(udg_trg_Pissed_Grunt_Leader_dies,function Trig_Pissed_Grunt_Leader_dies_Actions)
endfunction
//===========================================================================
//Trigger:Warchief dies
//===========================================================================
function Trig_Warchief_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='o003'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='o00Q'))then
return true
endif
return false
endfunction
function Trig_Warchief_dies_Conditions takes nothing returns boolean
if(not Trig_Warchief_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Warchief_dies_Actions takes nothing returns nothing
call CreateItemLoc('gcel',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Warchief_dies takes nothing returns nothing
set udg_trg_Warchief_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Warchief_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Warchief_dies,Condition(function Trig_Warchief_dies_Conditions))
call TriggerAddAction(udg_trg_Warchief_dies,function Trig_Warchief_dies_Actions)
endfunction
//===========================================================================
//Trigger:Orcish Knight Head dies
//===========================================================================
function Trig_Orcish_Knight_Head_dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='o006'))then
return false
endif
return true
endfunction
function Trig_Orcish_Knight_Head_dies_Actions takes nothing returns nothing
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Orcish_Knight_Head_dies takes nothing returns nothing
set udg_trg_Orcish_Knight_Head_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Orcish_Knight_Head_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Orcish_Knight_Head_dies,Condition(function Trig_Orcish_Knight_Head_dies_Conditions))
call TriggerAddAction(udg_trg_Orcish_Knight_Head_dies,function Trig_Orcish_Knight_Head_dies_Actions)
endfunction
//===========================================================================
//Trigger:Contraption dies
//===========================================================================
function Trig_Contraption_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='o009'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='o00P'))then
return true
endif
return false
endfunction
function Trig_Contraption_dies_Conditions takes nothing returns boolean
if(not Trig_Contraption_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Contraption_dies_Actions takes nothing returns nothing
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Contraption_dies takes nothing returns nothing
set udg_trg_Contraption_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Contraption_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Contraption_dies,Condition(function Trig_Contraption_dies_Conditions))
call TriggerAddAction(udg_trg_Contraption_dies,function Trig_Contraption_dies_Actions)
endfunction
//===========================================================================
//Trigger:Rapid Freak dies
//===========================================================================
function Trig_Rapid_Freak_dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n008'))then
return false
endif
return true
endfunction
function Trig_Rapid_Freak_dies_Actions takes nothing returns nothing
call CreateItemLoc('manh',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('manh',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('manh',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Rapid_Freak_dies takes nothing returns nothing
set udg_trg_Rapid_Freak_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Rapid_Freak_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Rapid_Freak_dies,Condition(function Trig_Rapid_Freak_dies_Conditions))
call TriggerAddAction(udg_trg_Rapid_Freak_dies,function Trig_Rapid_Freak_dies_Actions)
endfunction
//===========================================================================
//Trigger:Cannon Launcher dies
//===========================================================================
function Trig_Cannon_Launcher_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='h00F'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='h00R'))then
return true
endif
return false
endfunction
function Trig_Cannon_Launcher_dies_Conditions takes nothing returns boolean
if(not Trig_Cannon_Launcher_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Cannon_Launcher_dies_Actions takes nothing returns nothing
call CreateItemLoc('tkno',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tkno',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tkno',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Cannon_Launcher_dies takes nothing returns nothing
set udg_trg_Cannon_Launcher_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Cannon_Launcher_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Cannon_Launcher_dies,Condition(function Trig_Cannon_Launcher_dies_Conditions))
call TriggerAddAction(udg_trg_Cannon_Launcher_dies,function Trig_Cannon_Launcher_dies_Actions)
endfunction
//===========================================================================
//Trigger:Slave Master Dies
//===========================================================================
function Trig_Slave_Master_Dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='o00J'))then
return false
endif
return true
endfunction
function Trig_Slave_Master_Dies_Actions takes nothing returns nothing
call CreateItemLoc('I003',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Slave_Master_Dies takes nothing returns nothing
set udg_trg_Slave_Master_Dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Slave_Master_Dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Slave_Master_Dies,Condition(function Trig_Slave_Master_Dies_Conditions))
call TriggerAddAction(udg_trg_Slave_Master_Dies,function Trig_Slave_Master_Dies_Actions)
endfunction
//===========================================================================
//Trigger:Deformed Orc dies
//===========================================================================
function Trig_Deformed_Orc_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='u000'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='u001'))then
return true
endif
return false
endfunction
function Trig_Deformed_Orc_dies_Conditions takes nothing returns boolean
if(not Trig_Deformed_Orc_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Deformed_Orc_dies_Actions takes nothing returns nothing
call CreateItemLoc('tkno',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('I002',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('I001',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Deformed_Orc_dies takes nothing returns nothing
set udg_trg_Deformed_Orc_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Deformed_Orc_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Deformed_Orc_dies,Condition(function Trig_Deformed_Orc_dies_Conditions))
call TriggerAddAction(udg_trg_Deformed_Orc_dies,function Trig_Deformed_Orc_dies_Actions)
endfunction
//===========================================================================
//Trigger:Orc Machine dies
//===========================================================================
function Trig_Orc_Machine_dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00D'))then
return false
endif
return true
endfunction
function Trig_Orc_Machine_dies_Actions takes nothing returns nothing
call CreateItemLoc('mnsf',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Orc_Machine_dies takes nothing returns nothing
set udg_trg_Orc_Machine_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Orc_Machine_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Orc_Machine_dies,Condition(function Trig_Orc_Machine_dies_Conditions))
call TriggerAddAction(udg_trg_Orc_Machine_dies,function Trig_Orc_Machine_dies_Actions)
endfunction
//===========================================================================
//Trigger:Cairne dies
//===========================================================================
function Trig_Cairne_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00E'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n00I'))then
return true
endif
return false
endfunction
function Trig_Cairne_dies_Conditions takes nothing returns boolean
if(not Trig_Cairne_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Cairne_dies_Actions takes nothing returns nothing
call CreateItemLoc('ankh',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Cairne_dies takes nothing returns nothing
set udg_trg_Cairne_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Cairne_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Cairne_dies,Condition(function Trig_Cairne_dies_Conditions))
call TriggerAddAction(udg_trg_Cairne_dies,function Trig_Cairne_dies_Actions)
endfunction
//===========================================================================
//Trigger:Battlecruiser dies
//===========================================================================
function Trig_Battlecruiser_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='o00S'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='o00O'))then
return true
endif
return false
endfunction
function Trig_Battlecruiser_dies_Conditions takes nothing returns boolean
if(not Trig_Battlecruiser_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Battlecruiser_dies_Actions takes nothing returns nothing
call CreateItemLoc('I00P',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Battlecruiser_dies takes nothing returns nothing
set udg_trg_Battlecruiser_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Battlecruiser_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Battlecruiser_dies,Condition(function Trig_Battlecruiser_dies_Conditions))
call TriggerAddAction(udg_trg_Battlecruiser_dies,function Trig_Battlecruiser_dies_Actions)
endfunction
//===========================================================================
//Trigger:Engineers die
//===========================================================================
function Trig_Engineers_die_Func003C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00S'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n00T'))then
return true
endif
return false
endfunction
function Trig_Engineers_die_Conditions takes nothing returns boolean
if(not Trig_Engineers_die_Func003C())then
return false
endif
return true
endfunction
function Trig_Engineers_die_Func002A takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)+300))
endfunction
function Trig_Engineers_die_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_1514")
call ForForce(GetPlayersAll(),function Trig_Engineers_die_Func002A)
endfunction
//===========================================================================
function InitTrig_Engineers_die takes nothing returns nothing
set udg_trg_Engineers_die=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Engineers_die,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Engineers_die,Condition(function Trig_Engineers_die_Conditions))
call TriggerAddAction(udg_trg_Engineers_die,function Trig_Engineers_die_Actions)
endfunction
//===========================================================================
//Trigger:Feaster dies
//===========================================================================
function Trig_Feaster_dies_Func008C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n00Z'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n012'))then
return true
endif
return false
endfunction
function Trig_Feaster_dies_Conditions takes nothing returns boolean
if(not Trig_Feaster_dies_Func008C())then
return false
endif
return true
endfunction
function Trig_Feaster_dies_Actions takes nothing returns nothing
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call CreateItemLoc('tdx2',GetUnitLoc(GetTriggerUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Feaster_dies takes nothing returns nothing
set udg_trg_Feaster_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Feaster_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Feaster_dies,Condition(function Trig_Feaster_dies_Conditions))
call TriggerAddAction(udg_trg_Feaster_dies,function Trig_Feaster_dies_Actions)
endfunction
//===========================================================================
//Trigger:Pack Leader dies
//===========================================================================
function Trig_Pack_Leader_dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00X'))then
return false
endif
return true
endfunction
function Trig_Pack_Leader_dies_Actions takes nothing returns nothing
call CreateItemLoc('I00Q',GetUnitLoc(GetDyingUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Pack_Leader_dies takes nothing returns nothing
set udg_trg_Pack_Leader_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Pack_Leader_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Pack_Leader_dies,Condition(function Trig_Pack_Leader_dies_Conditions))
call TriggerAddAction(udg_trg_Pack_Leader_dies,function Trig_Pack_Leader_dies_Actions)
endfunction
//===========================================================================
//Trigger:Youngblood dies
//===========================================================================
function Trig_Youngblood_dies_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='n010'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='n011'))then
return true
endif
return false
endfunction
function Trig_Youngblood_dies_Conditions takes nothing returns boolean
if(not Trig_Youngblood_dies_Func001C())then
return false
endif
return true
endfunction
function Trig_Youngblood_dies_Actions takes nothing returns nothing
call CreateItemLoc('I00R',GetUnitLoc(GetDyingUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Youngblood_dies takes nothing returns nothing
set udg_trg_Youngblood_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Youngblood_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Youngblood_dies,Condition(function Trig_Youngblood_dies_Conditions))
call TriggerAddAction(udg_trg_Youngblood_dies,function Trig_Youngblood_dies_Actions)
endfunction
//===========================================================================
//Trigger:Blood Pig dies
//===========================================================================
function Trig_Blood_Pig_dies_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n016'))then
return false
endif
return true
endfunction
function Trig_Blood_Pig_dies_Actions takes nothing returns nothing
call CreateItemLoc('I00S',GetUnitLoc(GetDyingUnit()))
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Blood_Pig_dies takes nothing returns nothing
set udg_trg_Blood_Pig_dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Blood_Pig_dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_Blood_Pig_dies,Condition(function Trig_Blood_Pig_dies_Conditions))
call TriggerAddAction(udg_trg_Blood_Pig_dies,function Trig_Blood_Pig_dies_Actions)
endfunction
//===========================================================================
//Trigger:Kills 250
//===========================================================================
function Trig_Kills_250_Func001C takes nothing returns boolean
if(not(udg_IntegerValue[1]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func002C takes nothing returns boolean
if(not(udg_IntegerValue[2]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func003C takes nothing returns boolean
if(not(udg_IntegerValue[3]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func004C takes nothing returns boolean
if(not(udg_IntegerValue[4]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func005C takes nothing returns boolean
if(not(udg_IntegerValue[5]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func006C takes nothing returns boolean
if(not(udg_IntegerValue[6]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func007C takes nothing returns boolean
if(not(udg_IntegerValue[7]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Func008C takes nothing returns boolean
if(not(udg_IntegerValue[8]==250))then
return false
endif
return true
endfunction
function Trig_Kills_250_Actions takes nothing returns nothing
if(Trig_Kills_250_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],30,"TRIGSTR_974")
else
call DoNothing()
endif
if(Trig_Kills_250_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],30,"TRIGSTR_975")
else
call DoNothing()
endif
if(Trig_Kills_250_Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],30,"TRIGSTR_976")
else
call DoNothing()
endif
if(Trig_Kills_250_Func004C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],30,"TRIGSTR_977")
else
call DoNothing()
endif
if(Trig_Kills_250_Func005C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],30,"TRIGSTR_978")
else
call DoNothing()
endif
if(Trig_Kills_250_Func006C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],30,"TRIGSTR_979")
else
call DoNothing()
endif
if(Trig_Kills_250_Func007C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],30,"TRIGSTR_980")
else
call DoNothing()
endif
if(Trig_Kills_250_Func008C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],30,"TRIGSTR_981")
else
call DoNothing()
endif
call TriggerExecute(udg_trg_Wait_8_seconds)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Kills_250 takes nothing returns nothing
set udg_trg_Kills_250=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Kills_250,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trg_Kills_250,function Trig_Kills_250_Actions)
endfunction
//===========================================================================
//Trigger:Kills 550
//===========================================================================
function Trig_Kills_550_Func001C takes nothing returns boolean
if(not(udg_IntegerValue[1]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func002C takes nothing returns boolean
if(not(udg_IntegerValue[2]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func003C takes nothing returns boolean
if(not(udg_IntegerValue[3]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func004C takes nothing returns boolean
if(not(udg_IntegerValue[4]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func005C takes nothing returns boolean
if(not(udg_IntegerValue[5]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func006C takes nothing returns boolean
if(not(udg_IntegerValue[6]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func007C takes nothing returns boolean
if(not(udg_IntegerValue[7]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Func008C takes nothing returns boolean
if(not(udg_IntegerValue[8]==550))then
return false
endif
return true
endfunction
function Trig_Kills_550_Actions takes nothing returns nothing
if(Trig_Kills_550_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],30,"TRIGSTR_1314")
else
call DoNothing()
endif
if(Trig_Kills_550_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],30,"TRIGSTR_1322")
else
call DoNothing()
endif
if(Trig_Kills_550_Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],30,"TRIGSTR_1323")
else
call DoNothing()
endif
if(Trig_Kills_550_Func004C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],30,"TRIGSTR_1324")
else
call DoNothing()
endif
if(Trig_Kills_550_Func005C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],30,"TRIGSTR_1325")
else
call DoNothing()
endif
if(Trig_Kills_550_Func006C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],30,"TRIGSTR_1326")
else
call DoNothing()
endif
if(Trig_Kills_550_Func007C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],30,"TRIGSTR_1327")
else
call DoNothing()
endif
if(Trig_Kills_550_Func008C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],30,"TRIGSTR_1328")
else
call DoNothing()
endif
call TriggerExecute(udg_trg_Wait_8_seconds)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Kills_550 takes nothing returns nothing
set udg_trg_Kills_550=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Kills_550,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trg_Kills_550,function Trig_Kills_550_Actions)
endfunction
//===========================================================================
//Trigger:Kills 999
//===========================================================================
function Trig_Kills_999_Func001C takes nothing returns boolean
if(not(udg_IntegerValue[1]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func002C takes nothing returns boolean
if(not(udg_IntegerValue[2]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func003C takes nothing returns boolean
if(not(udg_IntegerValue[3]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func004C takes nothing returns boolean
if(not(udg_IntegerValue[4]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func005C takes nothing returns boolean
if(not(udg_IntegerValue[5]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func006C takes nothing returns boolean
if(not(udg_IntegerValue[6]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func007C takes nothing returns boolean
if(not(udg_IntegerValue[7]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Func008C takes nothing returns boolean
if(not(udg_IntegerValue[8]==999))then
return false
endif
return true
endfunction
function Trig_Kills_999_Actions takes nothing returns nothing
if(Trig_Kills_999_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],30,"TRIGSTR_1032")
else
call DoNothing()
endif
if(Trig_Kills_999_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],30,"TRIGSTR_1040")
else
call DoNothing()
endif
if(Trig_Kills_999_Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],30,"TRIGSTR_1041")
else
call DoNothing()
endif
if(Trig_Kills_999_Func004C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],30,"TRIGSTR_1042")
else
call DoNothing()
endif
if(Trig_Kills_999_Func005C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],30,"TRIGSTR_1043")
else
call DoNothing()
endif
if(Trig_Kills_999_Func006C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],30,"TRIGSTR_1044")
else
call DoNothing()
endif
if(Trig_Kills_999_Func007C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],30,"TRIGSTR_1045")
else
call DoNothing()
endif
if(Trig_Kills_999_Func008C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],30,"TRIGSTR_1046")
else
call DoNothing()
endif
call TriggerExecute(udg_trg_Wait_8_seconds)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Kills_999 takes nothing returns nothing
set udg_trg_Kills_999=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Kills_999,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trg_Kills_999,function Trig_Kills_999_Actions)
endfunction
//===========================================================================
//Trigger:Kills 2000
//===========================================================================
function Trig_Kills_2000_Func001C takes nothing returns boolean
if(not(udg_IntegerValue[1]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func002C takes nothing returns boolean
if(not(udg_IntegerValue[2]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func003C takes nothing returns boolean
if(not(udg_IntegerValue[3]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func004C takes nothing returns boolean
if(not(udg_IntegerValue[4]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func005C takes nothing returns boolean
if(not(udg_IntegerValue[5]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func006C takes nothing returns boolean
if(not(udg_IntegerValue[6]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func007C takes nothing returns boolean
if(not(udg_IntegerValue[7]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Func008C takes nothing returns boolean
if(not(udg_IntegerValue[8]==2000))then
return false
endif
return true
endfunction
function Trig_Kills_2000_Actions takes nothing returns nothing
if(Trig_Kills_2000_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],30,"TRIGSTR_1880")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],30,"TRIGSTR_1888")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],30,"TRIGSTR_1889")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func004C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],30,"TRIGSTR_1890")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func005C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],30,"TRIGSTR_1891")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func006C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],30,"TRIGSTR_1892")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func007C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],30,"TRIGSTR_1893")
else
call DoNothing()
endif
if(Trig_Kills_2000_Func008C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],30,"TRIGSTR_1894")
else
call DoNothing()
endif
call TriggerExecute(udg_trg_Wait_8_seconds)
call DisableTrigger(GetTriggeringTrigger())
endfunction
//===========================================================================
function InitTrig_Kills_2000 takes nothing returns nothing
set udg_trg_Kills_2000=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trg_Kills_2000,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trg_Kills_2000,function Trig_Kills_2000_Actions)
endfunction
//===========================================================================
//Trigger:Wait 8 seconds
//===========================================================================
function Trig_Wait_8_seconds_Actions takes nothing returns nothing
call TriggerSleepAction(8.00)
call EnableTrigger(udg_trg_Kills_250)
call EnableTrigger(udg_trg_Kills_550)
call EnableTrigger(udg_trg_Kills_999)
call EnableTrigger(udg_trg_Kills_2000)
endfunction
//===========================================================================
function InitTrig_Wait_8_seconds takes nothing returns nothing
set udg_trg_Wait_8_seconds=CreateTrigger()
call TriggerAddAction(udg_trg_Wait_8_seconds,function Trig_Wait_8_seconds_Actions)
endfunction
//===========================================================================
//Trigger:Quests
//===========================================================================
function Trig_Quests_Actions takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_601","TRIGSTR_602","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_603","TRIGSTR_604","ReplaceableTextures\\CommandButtons\\BTNBansheeAdept.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_605","TRIGSTR_606","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_607","TRIGSTR_608","ReplaceableTextures\\CommandButtons\\BTNBansheeAdept.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_638","TRIGSTR_639","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_1047","TRIGSTR_1048","ReplaceableTextures\\CommandButtons\\BTNBansheeAdept.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"TRIGSTR_1993","TRIGSTR_1994","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"TRIGSTR_1187","TRIGSTR_1188","ReplaceableTextures\\CommandButtons\\BTNBansheeAdept.blp")
endfunction
//===========================================================================
function InitTrig_Quests takes nothing returns nothing
set udg_trg_Quests=CreateTrigger()
call TriggerAddAction(udg_trg_Quests,function Trig_Quests_Actions)
endfunction
//===========================================================================
//Trigger:Dont Attack Teammates
//===========================================================================
function Trig_Dont_Attack_Teammates_Func001C takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetAttacker())!=Player(8)))then
return false
endif
if(not(GetOwningPlayer(GetAttackedUnitBJ())!=Player(8)))then
return false
endif
return true
endfunction
function Trig_Dont_Attack_Teammates_Conditions takes nothing returns boolean
if(not Trig_Dont_Attack_Teammates_Func001C())then
return false
endif
return true
endfunction
function Trig_Dont_Attack_Teammates_Actions takes nothing returns nothing
call IssueTargetOrderBJ(udg_unit_hsor_0026,"polymorph",GetAttacker())
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetAttacker()))+" |c00bc0315пытался атаковать союзника!|r"))
call PlaySoundOnUnitBJ(udg_snd_BackOffPunk,100,GetAttackedUnitBJ())
endfunction
//===========================================================================
function InitTrig_Dont_Attack_Teammates takes nothing returns nothing
set udg_trg_Dont_Attack_Teammates=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_Dont_Attack_Teammates,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trg_Dont_Attack_Teammates,Condition(function Trig_Dont_Attack_Teammates_Conditions))
call TriggerAddAction(udg_trg_Dont_Attack_Teammates,function Trig_Dont_Attack_Teammates_Actions)
endfunction
//===========================================================================
//Trigger:TKer Kill
//===========================================================================
function Trig_TKer_Kill_Func007C takes nothing returns boolean
if(not(IsUnitType(GetKillingUnitBJ(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())!=Player(8)))then
return false
endif
return true
endfunction
function Trig_TKer_Kill_Conditions takes nothing returns boolean
if(not Trig_TKer_Kill_Func007C())then
return false
endif
return true
endfunction
function Trig_TKer_Kill_Actions takes nothing returns nothing
call CreateTextTagLocBJ((GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" - новоявленный убийца союзников!"),GetUnitLoc(GetKillingUnitBJ()),0,8.00,100,100,100,0)
call TriggerSleepAction(0.01)
call KillUnit(GetKillingUnitBJ())
call DisplayTextToForce(GetForceOfPlayer(GetOwningPlayer(GetAttacker())),"TRIGSTR_1459")
call TriggerSleepAction(9.00)
call DestroyTextTagBJ(GetLastCreatedTextTag())
endfunction
//===========================================================================
function InitTrig_TKer_Kill takes nothing returns nothing
set udg_trg_TKer_Kill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trg_TKer_Kill,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trg_TKer_Kill,Condition(function Trig_TKer_Kill_Conditions))
call TriggerAddAction(udg_trg_TKer_Kill,function Trig_TKer_Kill_Actions)
endfunction
//===========================================================================
//Trigger:Player Leave
//===========================================================================
function Trig_Player_Leave_Conditions takes nothing returns boolean
if(not(GetPlayerController(GetTriggerPlayer())==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_Player_Leave_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+" покинул игру."))
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_2030")
endfunction
//===========================================================================
function InitTrig_Player_Leave takes nothing returns nothing
set udg_trg_Player_Leave=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trg_Player_Leave,Player(7))
call TriggerAddCondition(udg_trg_Player_Leave,Condition(function Trig_Player_Leave_Conditions))
call TriggerAddAction(udg_trg_Player_Leave,function Trig_Player_Leave_Actions)
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Initialization()
call InitTrig_Game_Choose()
call InitTrig_Archer_Stronghold()
call InitTrig_Ninth_Step()
call InitTrig_Wait_01_secs()
call InitTrig_Difficulty()
call InitTrig_Impossible()
call InitTrig_Hard()
call InitTrig_Normal()
call InitTrig_Easy()
call InitTrig_Wait_01_seconds()
call InitTrig_Defense_or_Siege()
call InitTrig_Show_Dialog()
call InitTrig_Defense_Mode()
call InitTrig_Siege_Mode()
call InitTrig_Elapsed_2_Seconds()
call InitTrig_Race_Move_Right_P1()
call InitTrig_Race_Move_Right_P2()
call InitTrig_Race_Move_Right_P3()
call InitTrig_Race_Move_Right_P4()
call InitTrig_Race_Move_Right_P5()
call InitTrig_Race_Move_Right_P6()
call InitTrig_Race_Move_Right_P7()
call InitTrig_Race_Move_Right_P8()
call InitTrig_Hero_Death()
call InitTrig_Race_Revival_Move()
call InitTrig_P1()
call InitTrig_P2()
call InitTrig_P3()
call InitTrig_P4()
call InitTrig_P5()
call InitTrig_P6()
call InitTrig_P7()
call InitTrig_P8()
call InitTrig_Ranger_Info()
call InitTrig_Rogue_Info()
call InitTrig_Naturalist_Info()
call InitTrig_Commander_Info()
call InitTrig_Sentry_Info()
call InitTrig_Assassin_Info()
call InitTrig_Holy_Info()
call InitTrig_Ranger_Choose()
call InitTrig_Rogue_Choose()
call InitTrig_Commander_Choose()
call InitTrig_Sentry_Choose()
call InitTrig_Naturalist_Choose()
call InitTrig_Assassin_Choose()
call InitTrig_Holy_Choose()
call InitTrig_Iron_Choose()
call InitTrig_Advocate_Choose()
call InitTrig_Elementalist_Choose()
call InitTrig_Advisor_Choose()
call InitTrig_Random()
call InitTrig_Repick()
call InitTrig_Serpent_Warders()
call InitTrig_Attack_Move_1()
call InitTrig_Move_1()
call InitTrig_Remove()
call InitTrig_Defeat()
call InitTrig_Defeat_Normal()
call InitTrig_Defeat_Race()
call InitTrig_End_Map()
call InitTrig_End_Map_Norm()
call InitTrig_End_Map_Race()
call InitTrig_Lose_a_Life()
call InitTrig_Lose_a_Life_Ninth()
call InitTrig_Lose_a_Life_Norm()
call InitTrig_Lose_a_Life_Race()
call InitTrig_Boss_Life_Lost()
call InitTrig_Boss_Life_Lost_Ninth()
call InitTrig_Boss_Life_Lost_Norm()
call InitTrig_Boss_Life_Lost_Race()
call InitTrig_Garthok_Lose_a_Life()
call InitTrig_Garthok_Lose_a_Life_Ninth()
call InitTrig_Garthok_Lose_a_Life_Norm()
call InitTrig_Garthok_Lose_a_Life_Race()
call InitTrig_Bonus_Removal()
call InitTrig_Bonus_Removal_Ninth()
call InitTrig_Race_Spawn()
call InitTrig_Wave_1()
call InitTrig_Wave_2_MINIBOSS()
call InitTrig_Wave_3()
call InitTrig_Wave_4()
call InitTrig_Wave_5()
call InitTrig_Wave_6_BOSS()
call InitTrig_Wave_6_BOSS_Ninth()
call InitTrig_Wave_7()
call InitTrig_Wave_8_MINIBOSS()
call InitTrig_Wave_9()
call InitTrig_Wave_10()
call InitTrig_Wave_11()
call InitTrig_Wave_12_BOSS()
call InitTrig_Wave_12_BOSS_Ninth()
call InitTrig_Wave_13_BONUS_AIR()
call InitTrig_Wave_14_MINIBOSS()
call InitTrig_Wave_15()
call InitTrig_Wave_16()
call InitTrig_Wave_17_AIR()
call InitTrig_Wave_18_BOSS()
call InitTrig_Wave_18_BOSS_Ninth()
call InitTrig_Wave_19()
call InitTrig_Wave_20_MINIBOSS()
call InitTrig_Wave_21()
call InitTrig_Wave_22()
call InitTrig_Wave_23()
call InitTrig_Wave_24_BOSS()
call InitTrig_Wave_24_BOSS_Ninth()
call InitTrig_Wave_25()
call InitTrig_Wave_26_BONUS()
call InitTrig_Wave_27_MOB()
call InitTrig_Wave_28_CASTERS()
call InitTrig_Wave_29_MINIBOSS()
call InitTrig_Wave_30_BOSS()
call InitTrig_Wave_30_BOSS_Ninth()
call InitTrig_Wave_31_AIR()
call InitTrig_Wave_32()
call InitTrig_Wave_33_MINIBOSS()
call InitTrig_Wave_33_MINIBOSS_Ninth()
call InitTrig_Wave_34_ARMORED()
call InitTrig_Wave_35_BOSS()
call InitTrig_Wave_35_BOSS_Ninth()
call InitTrig_Wave_36()
call InitTrig_Wave_37()
call InitTrig_Wave_38()
call InitTrig_Wave_39_MOB()
call InitTrig_Wave_40_BONUS_AIR()
call InitTrig_Wave_41_BOSS()
call InitTrig_Wave_41_BOSS_Ninth()
call InitTrig_Wave_42()
call InitTrig_Wave_43()
call InitTrig_Wave_44_MINIBOSS()
call InitTrig_Wave_45()
call InitTrig_Wave_46_BOSS()
call InitTrig_Wave_46_BOSS_Ninth()
call InitTrig_Wave_47_BONUS_MINIBOSS()
call InitTrig_Wave_48_ARMORED()
call InitTrig_Wave_49_AIR()
call InitTrig_Wave_50_LAST_BOSS()
call InitTrig_Wave_50_LAST_BOSS_Ninth()
call InitTrig_Wave_50_LAST_BOSS_Left()
call InitTrig_Wave_50_LAST_BOSS_Right()
call InitTrig_Victory()
call InitTrig_Victory_Norm()
call InitTrig_Victory_Race()
call InitTrig_Lives_Left()
call InitTrig_Lives_Title_Norm()
call InitTrig_Lives_Title_Race()
call InitTrig_Setup_Leaderboard()
call InitTrig_Add_Point()
call InitTrig_Update_Wave()
call InitTrig_Tri_Strike_Apocalypse_1()
call InitTrig_Wait_15_seconds_1()
call InitTrig_Tri_Strike_Apocalypse_2()
call InitTrig_Wait_15_seconds_2()
call InitTrig_Tri_Strike_Apocalypse_3()
call InitTrig_Wait_15_seconds_3()
call InitTrig_Tri_Strike_Apocalypse()
call InitTrig_Cam_1()
call InitTrig_Cam_2()
call InitTrig_Cam_3()
call InitTrig_Set_Variables()
call InitTrig_Save_Integer_Variable_Copy()
call InitTrig_Load_Integer_Variable_Copy()
call InitTrig_Composite_Bow()
call InitTrig_Elunes_Escape()
call InitTrig_Elunes_Soul()
call InitTrig_Elunes_Armor()
call InitTrig_Elunes_Equipment()
call InitTrig_Gods_Bow()
call InitTrig_Ice_Blockade()
call InitTrig_Ice_Blockade_Remove()
call InitTrig_Multi_Target()
call InitTrig_Natures_Call()
call InitTrig_Holy_Sear()
call InitTrig_Night()
call InitTrig_Dusk()
call InitTrig_Day()
call InitTrig_Dawn()
call InitTrig_Cycle()
call InitTrig_Light_Rain()
call InitTrig_Heavy_Rain()
call InitTrig_Sunny()
call InitTrig_Heavy_Wind()
call InitTrig_Light_Wind()
call InitTrig_Hail()
call InitTrig_Hail_Drops_1()
call InitTrig_Hail_Drops_2()
call InitTrig_Hail_Drops_3()
call InitTrig_None()
call InitTrig_Lock()
call InitTrig_Unlock()
call InitTrig_Air()
call InitTrig_Boss()
call InitTrig_Kick_P2()
call InitTrig_Kick_P3()
call InitTrig_Kick_P4()
call InitTrig_Kick_P5()
call InitTrig_Kick_P6()
call InitTrig_Kick_P7()
call InitTrig_Kick_P8()
call InitTrig_Pig_Hat_Wearage()
call InitTrig_Pig_Hat_Dropage()
call InitTrig_Pissed_Grunt_Leader_dies()
call InitTrig_Warchief_dies()
call InitTrig_Orcish_Knight_Head_dies()
call InitTrig_Contraption_dies()
call InitTrig_Rapid_Freak_dies()
call InitTrig_Cannon_Launcher_dies()
call InitTrig_Slave_Master_Dies()
call InitTrig_Deformed_Orc_dies()
call InitTrig_Orc_Machine_dies()
call InitTrig_Cairne_dies()
call InitTrig_Battlecruiser_dies()
call InitTrig_Engineers_die()
call InitTrig_Feaster_dies()
call InitTrig_Pack_Leader_dies()
call InitTrig_Youngblood_dies()
call InitTrig_Blood_Pig_dies()
call InitTrig_Kills_250()
call InitTrig_Kills_550()
call InitTrig_Kills_999()
call InitTrig_Kills_2000()
call InitTrig_Wait_8_seconds()
call InitTrig_Quests()
call InitTrig_Dont_Attack_Teammates()
call InitTrig_TKer_Kill()
call InitTrig_Player_Leave()
endfunction
//===========================================================================
function RunInitializationTriggers takes nothing returns nothing
call ConditionalTriggerExecute(udg_trg_Set_Variables)
call ConditionalTriggerExecute(udg_trg_Quests)
endfunction
//***************************************************************************
//*
//*Players
//*
//***************************************************************************
function InitCustomPlayerSlots takes nothing returns nothing
//Player 0
call SetPlayerStartLocation(Player(0),0)
call ForcePlayerStartLocation(Player(0),0)
call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(0),false)
call SetPlayerController(Player(0),MAP_CONTROL_USER)
//Player 1
call SetPlayerStartLocation(Player(1),1)
call ForcePlayerStartLocation(Player(1),1)
call SetPlayerColor(Player(1),ConvertPlayerColor(1))
call SetPlayerRacePreference(Player(1),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(1),false)
call SetPlayerController(Player(1),MAP_CONTROL_USER)
//Player 2
call SetPlayerStartLocation(Player(2),2)
call ForcePlayerStartLocation(Player(2),2)
call SetPlayerColor(Player(2),ConvertPlayerColor(2))
call SetPlayerRacePreference(Player(2),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(2),false)
call SetPlayerController(Player(2),MAP_CONTROL_USER)
//Player 3
call SetPlayerStartLocation(Player(3),3)
call ForcePlayerStartLocation(Player(3),3)
call SetPlayerColor(Player(3),ConvertPlayerColor(3))
call SetPlayerRacePreference(Player(3),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(3),false)
call SetPlayerController(Player(3),MAP_CONTROL_USER)
//Player 4
call SetPlayerStartLocation(Player(4),4)
call ForcePlayerStartLocation(Player(4),4)
call SetPlayerColor(Player(4),ConvertPlayerColor(4))
call SetPlayerRacePreference(Player(4),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(4),false)
call SetPlayerController(Player(4),MAP_CONTROL_USER)
//Player 5
call SetPlayerStartLocation(Player(5),5)
call ForcePlayerStartLocation(Player(5),5)
call SetPlayerColor(Player(5),ConvertPlayerColor(5))
call SetPlayerRacePreference(Player(5),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(5),false)
call SetPlayerController(Player(5),MAP_CONTROL_USER)
//Player 6
call SetPlayerStartLocation(Player(6),6)
call ForcePlayerStartLocation(Player(6),6)
call SetPlayerColor(Player(6),ConvertPlayerColor(6))
call SetPlayerRacePreference(Player(6),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(6),false)
call SetPlayerController(Player(6),MAP_CONTROL_USER)
//Player 7
call SetPlayerStartLocation(Player(7),7)
call ForcePlayerStartLocation(Player(7),7)
call SetPlayerColor(Player(7),ConvertPlayerColor(7))
call SetPlayerRacePreference(Player(7),RACE_PREF_NIGHTELF)
call SetPlayerRaceSelectable(Player(7),false)
call SetPlayerController(Player(7),MAP_CONTROL_USER)
//Player 8
call SetPlayerStartLocation(Player(8),8)
call ForcePlayerStartLocation(Player(8),8)
call SetPlayerColor(Player(8),ConvertPlayerColor(8))
call SetPlayerRacePreference(Player(8),RACE_PREF_ORC)
call SetPlayerRaceSelectable(Player(8),false)
call SetPlayerController(Player(8),MAP_CONTROL_COMPUTER)
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount(0,7)
call SetStartLocPrio(0,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(1,7)
call SetStartLocPrio(1,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(2,7)
call SetStartLocPrio(2,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(3,7)
call SetStartLocPrio(3,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(4,7)
call SetStartLocPrio(4,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,7)
call SetStartLocPrio(5,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,7)
call SetStartLocPrio(6,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,7)
call SetStartLocPrio(7,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,6,6,MAP_LOC_PRIO_HIGH)
endfunction
//***************************************************************************
//*
//*Main Initialization
//*
//***************************************************************************
//===========================================================================
function main2 takes nothing returns nothing
call SetCameraBounds(-768.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-3584.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5888.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),3072.0-GetCameraMargin(CAMERA_MARGIN_TOP),-768.0+GetCameraMargin(CAMERA_MARGIN_LEFT),3072.0-GetCameraMargin(CAMERA_MARGIN_TOP),5888.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-3584.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCAshenvale\\DNCAshenvaleTerrain\\DNCAshenvaleTerrain.mdl","Environment\\DNC\\DNCAshenvale\\DNCAshenvaleUnit\\DNCAshenvaleUnit.mdl")
call SetTerrainFogEx(0,3000.0,5000.0,0.500,0.502,1.000,0.784)
call NewSoundEnvironment("Default")
call SetAmbientDaySound("AshenvaleDay")
call SetAmbientNightSound("AshenvaleNight")
call SetMapMusic("Music",true,0)
call InitSounds()
call CreateRegions()
call CreateCameras()
call CreateAllDestructables()
call CreateAllUnits()
call InitGlobals()
call InitCustomTriggers()
call RunInitializationTriggers()
endfunction
//***************************************************************************
//*
//*Map Configuration
//*
//***************************************************************************
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main2")
endfunction