Name | Type | is_array | initial_value |
Angle | real | Yes | 90.00 |
Boolean | boolean | No | |
BOSS | unit | No | |
deadHeros | unit | Yes | |
GoldTrickle | integer | No | 3 |
Heros | group | No | |
Integer | integer | No | |
Kills | integer | Yes | |
LockedPlayers | force | No | |
Marker | group | No | |
PlayerGroup | force | No | |
RandomHero | integer | No | |
TempPoint13 | location | No | |
TempPoint14 | location | No | |
TempPoint15 | location | No | |
Timer | timer | No | |
TimerWindow | timerdialog | No | |
VarPoint | location | No | |
Zoom | real | Yes | 1650.00 |
function Trig_a1_Conditions takes nothing returns boolean
if ( not ( GetDyingUnit() == udg_BOSS ) ) then
return false
endif
return true
endfunction
function Trig_a1_Func003002 takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), true, true )
endfunction
function Trig_a1_Actions takes nothing returns nothing
call TriggerSleepAction( 45.00 )
call ForForce( GetPlayersAll(), function Trig_a1_Func003002 )
endfunction
//===========================================================================
function InitTrig_a1 takes nothing returns nothing
set gg_trg_a1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_a1, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_a1, Condition( function Trig_a1_Conditions ) )
call TriggerAddAction( gg_trg_a1, function Trig_a1_Actions )
endfunction
function Trig_a2_Func001002 takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_245" )
endfunction
function Trig_a2_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_a2_Func001002 )
endfunction
//===========================================================================
function InitTrig_a2 takes nothing returns nothing
set gg_trg_a2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_a2, gg_unit_h000_0001, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_a2, function Trig_a2_Actions )
endfunction
function Trig_a3_Actions takes nothing returns nothing
call CreateFogModifierRectBJ( true, Player(10), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_192", "TRIGSTR_193", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(10) )
call SetPlayerStateBJ( Player(0), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(1), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(2), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(3), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(4), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(5), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(6), PLAYER_STATE_RESOURCE_GOLD, 315 )
call SetPlayerStateBJ( Player(7), PLAYER_STATE_RESOURCE_GOLD, 315 )
call TriggerSleepAction( 15.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_247" )
call TriggerSleepAction( 45.00 )
call EnableTrigger( gg_trg_a4 )
call EnableTrigger( gg_trg_a7 )
call TriggerSleepAction( 600.00 )
call EnableTrigger( gg_trg_a5 )
call TriggerSleepAction( 600.00 )
call EnableTrigger( gg_trg_a6 )
call DisableTrigger( gg_trg_a4 )
call TriggerSleepAction( 300.00 )
call EnableTrigger( gg_trg_a8 )
call DisableTrigger( gg_trg_a5 )
endfunction
//===========================================================================
function InitTrig_a3 takes nothing returns nothing
set gg_trg_a3 = CreateTrigger( )
call TriggerAddAction( gg_trg_a3, function Trig_a3_Actions )
endfunction
function Trig_a4_Func006002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a4_Func007002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a4_Func008002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a4_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a4_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n005', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n006', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n004', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUnits1), function Trig_a4_Func006002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUNits2), function Trig_a4_Func007002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickunits_3), function Trig_a4_Func008002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickUNITS4), function Trig_a4_Func009002 )
endfunction
//===========================================================================
function InitTrig_a4 takes nothing returns nothing
set gg_trg_a4 = CreateTrigger( )
call DisableTrigger( gg_trg_a4 )
call TriggerRegisterTimerEventPeriodic( gg_trg_a4, 3.00 )
call TriggerAddAction( gg_trg_a4, function Trig_a4_Actions )
endfunction
function Trig_a5_Func006002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a5_Func007002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a5_Func008002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a5_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a5_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n008', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUnits1), function Trig_a5_Func006002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUNits2), function Trig_a5_Func007002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickunits_3), function Trig_a5_Func008002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickUNITS4), function Trig_a5_Func009002 )
endfunction
//===========================================================================
function InitTrig_a5 takes nothing returns nothing
set gg_trg_a5 = CreateTrigger( )
call DisableTrigger( gg_trg_a5 )
call TriggerRegisterTimerEventPeriodic( gg_trg_a5, 4.00 )
call TriggerAddAction( gg_trg_a5, function Trig_a5_Actions )
endfunction
function Trig_a6_Func006002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a6_Func007002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a6_Func008002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a6_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a6_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, 'u001', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'u001', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'u001', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUnits1), function Trig_a6_Func006002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUNits2), function Trig_a6_Func007002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickunits_3), function Trig_a6_Func008002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickUNITS4), function Trig_a6_Func009002 )
endfunction
//===========================================================================
function InitTrig_a6 takes nothing returns nothing
set gg_trg_a6 = CreateTrigger( )
call DisableTrigger( gg_trg_a6 )
call TriggerRegisterTimerEventPeriodic( gg_trg_a6, 4.00 )
call TriggerAddAction( gg_trg_a6, function Trig_a6_Actions )
endfunction
function Trig_a7_Func006002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a7_Func007002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a7_Func008002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a7_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a7_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'u003', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'u003', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'u003', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'u003', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie1), function Trig_a7_Func006002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie2), function Trig_a7_Func007002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie3), function Trig_a7_Func008002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie4), function Trig_a7_Func009002 )
endfunction
//===========================================================================
function InitTrig_a7 takes nothing returns nothing
set gg_trg_a7 = CreateTrigger( )
call DisableTrigger( gg_trg_a7 )
call TriggerRegisterTimerEventPeriodic( gg_trg_a7, 25.00 )
call TriggerAddAction( gg_trg_a7, function Trig_a7_Actions )
endfunction
function Trig_a8_Func006002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a8_Func007002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a8_Func008002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a8_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a8_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, 'u002', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u002', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u002', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u002', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUnits1), function Trig_a8_Func006002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUNits2), function Trig_a8_Func007002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickunits_3), function Trig_a8_Func008002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickUNITS4), function Trig_a8_Func009002 )
endfunction
//===========================================================================
function InitTrig_a8 takes nothing returns nothing
set gg_trg_a8 = CreateTrigger( )
call DisableTrigger( gg_trg_a8 )
call TriggerRegisterTimerEventPeriodic( gg_trg_a8, 6.00 )
call TriggerAddAction( gg_trg_a8, function Trig_a8_Actions )
endfunction
function Trig_a9_Func007002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a9_Func008002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a9_Func009002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a9_Func010002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a9_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_248" )
call CreateNUnitsAtLoc( 6, 'u000', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u000', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 6, 'u000', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 7, 'u000', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie1), function Trig_a9_Func007002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie2), function Trig_a9_Func008002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie3), function Trig_a9_Func009002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Zombie4), function Trig_a9_Func010002 )
endfunction
//===========================================================================
function InitTrig_a9 takes nothing returns nothing
set gg_trg_a9 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_a9, 900.00 )
call TriggerAddAction( gg_trg_a9, function Trig_a9_Actions )
endfunction
function Trig_a10_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'Avul', gg_unit_uzig_0023 )
call TriggerSleepAction( 60.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_181" )
call TriggerSleepAction( 180.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_182" )
call UnitAddAbilityBJ( 'A00C', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00R', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00J', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00C', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00R', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00J', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_183" )
call UnitAddAbilityBJ( 'A00B', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00Q', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A005', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00B', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00Q', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A005', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_184" )
call UnitAddAbilityBJ( 'A00E', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00I', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00T', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00E', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00I', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00T', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_185" )
call UnitAddAbilityBJ( 'A009', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00P', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A002', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A009', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00P', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A002', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_186" )
call UnitAddAbilityBJ( 'A008', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A006', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A003', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A008', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A006', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A003', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_187" )
call UnitAddAbilityBJ( 'A007', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00O', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00S', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A007', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00O', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00S', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_188" )
call UnitAddAbilityBJ( 'A00A', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00N', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00H', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00A', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00N', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00H', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_189" )
call UnitAddAbilityBJ( 'A00D', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00M', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A004', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00D', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00M', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A004', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_190" )
call UnitAddAbilityBJ( 'A00G', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00L', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00V', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00G', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00L', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00V', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_191" )
call UnitAddAbilityBJ( 'A00F', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00K', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A00U', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A00K', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A00U', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_315" )
call UnitAddAbilityBJ( 'A01C', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A018', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A01C', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A018', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_316" )
call UnitAddAbilityBJ( 'A011', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A01H', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A01H', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A011', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_317" )
call UnitAddAbilityBJ( 'A012', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A01D', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A01D', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A012', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_318" )
call UnitAddAbilityBJ( 'A013', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A019', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A019', gg_unit_uzig_0023 )
call UnitRemoveAbilityBJ( 'A013', gg_unit_uzig_0023 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_319" )
call UnitAddAbilityBJ( 'A01F', gg_unit_uzig_0023 )
call UnitAddAbilityBJ( 'A010', gg_unit_uzig_0023 )
endfunction
//===========================================================================
function InitTrig_a10 takes nothing returns nothing
set gg_trg_a10 = CreateTrigger( )
call TriggerAddAction( gg_trg_a10, function Trig_a10_Actions )
endfunction
function Trig_a11_Func005002001 takes nothing returns boolean
return ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_a11_Func005002 takes nothing returns nothing
if ( Trig_a11_Func005002001() ) then
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
else
call DoNothing( )
endif
endfunction
function Trig_a11_Actions takes nothing returns nothing
// Begin Leaderboard
call TriggerSleepAction( 1.00 )
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_227" )
call ForForce( GetPlayersAllies(Player(0)), function Trig_a11_Func005002 )
// Coded by Retch. (2002)
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
call LeaderboardDisplayBJ( true, GetLastCreatedLeaderboard() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set udg_Kills[0] = 0
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
// End Leaderboard
endfunction
//===========================================================================
function InitTrig_a11 takes nothing returns nothing
set gg_trg_a11 = CreateTrigger( )
call TriggerAddAction( gg_trg_a11, function Trig_a11_Actions )
endfunction
function Trig_a12_Actions takes nothing returns nothing
set udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + 1 )
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetKillingUnitBJ()), GetLastCreatedLeaderboard(), udg_Kills[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
endfunction
//===========================================================================
function InitTrig_a12 takes nothing returns nothing
set gg_trg_a12 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_a12, Player(10), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_a12, function Trig_a12_Actions )
endfunction
function Trig_a13_Func002001001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_LEFT )
endfunction
function Trig_a13_Func002002 takes nothing returns nothing
call LeaderboardSetPlayerItemLabelBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), "TRIGSTR_274" )
endfunction
function Trig_a13_Actions takes nothing returns nothing
call ForForce( GetPlayersMatching(Condition(function Trig_a13_Func002001001)), function Trig_a13_Func002002 )
endfunction
//===========================================================================
function InitTrig_a13 takes nothing returns nothing
set gg_trg_a13 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_a13, 3.00 )
call TriggerAddAction( gg_trg_a13, function Trig_a13_Actions )
endfunction
function Trig_a14_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_a14_Actions takes nothing returns nothing
set udg_deadHeros[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = GetTriggerUnit()
endfunction
//===========================================================================
function InitTrig_a14 takes nothing returns nothing
set gg_trg_a14 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_a14, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_a14, Condition( function Trig_a14_Conditions ) )
call TriggerAddAction( gg_trg_a14, function Trig_a14_Actions )
endfunction
function Trig_a15_Actions takes nothing returns nothing
call ReviveHeroLoc( udg_deadHeros[8], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[7], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[6], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[5], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[4], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[3], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[2], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[1], GetRandomLocInRect(gg_rct_Revive), true )
call ReviveHeroLoc( udg_deadHeros[0], GetRandomLocInRect(gg_rct_Revive), true )
set udg_deadHeros[8] = null
set udg_deadHeros[7] = null
set udg_deadHeros[6] = null
set udg_deadHeros[5] = null
set udg_deadHeros[4] = null
set udg_deadHeros[3] = null
set udg_deadHeros[2] = null
set udg_deadHeros[1] = null
set udg_deadHeros[0] = null
endfunction
//===========================================================================
function InitTrig_a15 takes nothing returns nothing
set gg_trg_a15 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_a15, 30.00 )
call TriggerAddAction( gg_trg_a15, function Trig_a15_Actions )
endfunction
function Trig_a16_Actions takes nothing returns nothing
call StartTimerBJ( udg_Timer, false, 3000.00 )
set udg_Timer = GetLastCreatedTimerBJ()
call CreateTimerDialogBJ( udg_Timer, "TRIGSTR_299" )
set udg_TimerWindow = GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ( true, udg_TimerWindow )
endfunction
//===========================================================================
function InitTrig_a16 takes nothing returns nothing
set gg_trg_a16 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_a16, 1.00 )
call TriggerAddAction( gg_trg_a16, function Trig_a16_Actions )
endfunction
function Trig_a17_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_335" )
call UnitAddAbilityBJ( 'A01I', gg_unit_uzig_0023 )
call TriggerSleepAction( 180.00 )
call UnitRemoveAbilityBJ( 'A01I', gg_unit_uzig_0023 )
endfunction
//===========================================================================
function InitTrig_a17 takes nothing returns nothing
set gg_trg_a17 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_a17, 2800.00 )
call TriggerAddAction( gg_trg_a17, function Trig_a17_Actions )
endfunction
function Trig_a18_Func011002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a18_Func012002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a18_Func013002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a18_Func025002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_House) )
endfunction
function Trig_a18_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_a6 )
call DisableTrigger( gg_trg_a7 )
call DisableTrigger( gg_trg_a8 )
call TriggerSleepAction( 30.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_342" )
call CreateNUnitsAtLoc( 1, 'U004', Player(10), GetRandomLocInRect(gg_rct_Zombie1), bj_UNIT_FACING )
set udg_BOSS = GetLastCreatedUnit()
call CreateNUnitsAtLoc( 20, 'u005', Player(10), GetRandomLocInRect(gg_rct_Zombie2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 20, 'u005', Player(10), GetRandomLocInRect(gg_rct_Zombie3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 20, 'u005', Player(10), GetRandomLocInRect(gg_rct_Zombie4), bj_UNIT_FACING )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_PickUNits2), function Trig_a18_Func011002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickunits_3), function Trig_a18_Func012002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_pickUNITS4), function Trig_a18_Func013002 )
call TriggerSleepAction( 10.00 )
call SetUnitPositionLoc( udg_BOSS, GetRectCenter(gg_rct_BossRally1) )
call TriggerSleepAction( 40.00 )
call SetUnitPositionLoc( udg_BOSS, GetRectCenter(gg_rct_BossRally2) )
call TriggerSleepAction( 40.00 )
call SetUnitPositionLoc( udg_BOSS, GetRectCenter(gg_rct_BossRally3) )
call TriggerSleepAction( 40.00 )
call SetUnitPositionLoc( udg_BOSS, GetRectCenter(gg_rct_BossRally5) )
call TriggerSleepAction( 40.00 )
call SetUnitPositionLoc( udg_BOSS, GetRectCenter(gg_rct_BossRally6) )
call TriggerSleepAction( 40.00 )
call ForGroupBJ( GetUnitsOfTypeIdAll('U004'), function Trig_a18_Func025002 )
endfunction
//===========================================================================
function InitTrig_a18 takes nothing returns nothing
set gg_trg_a18 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_a18, 3000.00 )
call TriggerAddAction( gg_trg_a18, function Trig_a18_Actions )
endfunction