Name | Type | is_array | initial_value |
Anti_Hack_Entier1 | integer | Yes | |
Anti_Hack_Entier2 | integer | Yes | |
Bonus_Kills_Random_Entier | integer | No | |
Duel_Oui_Non_Boolean | boolean | No | true |
Effetspecial_fire_cloaklvl2 | effect | Yes | |
Event_Random_Entier | integer | No | |
Gold_Steal_Entier | integer | No | |
Hours | integer | No | |
Hours_T | string | No | |
Kill | integer | Yes | |
Minutes | integer | No | |
Minutes_T | string | No | |
Random_Hero | unitcode | Yes | |
Seconds | integer | No | |
Seconds_T | string | No | |
Stealing_Attack_Gold_Entier | integer | No | |
Upgrade_Ultimate_Boolean | boolean | Yes |
function Trig_all_allies_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ( Player(0), Player(1), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(3), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(2), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(4), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(5), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(6), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(7), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(8), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(9), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(10), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(11), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(1), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(4), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(3), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(5), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(6), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(7), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(8), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(9), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(10), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(11), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(0), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(1), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(2), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(3), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(4), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(5), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(6), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(7), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(8), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(9), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(10), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(11), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(bj_PLAYER_NEUTRAL_EXTRA), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(0), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(1), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(2), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(3), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(4), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(5), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(6), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(7), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(8), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(9), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(10), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_EXTRA), Player(11), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_all_allies takes nothing returns nothing
set gg_trg_all_allies = CreateTrigger( )
call TriggerAddAction( gg_trg_all_allies, function Trig_all_allies_Actions )
endfunction
function Trig_end_Func001002 takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_1349" )
endfunction
function Trig_end_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_end_Func001002 )
endfunction
//===========================================================================
function InitTrig_end takes nothing returns nothing
set gg_trg_end = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_end, gg_unit_h000_0000, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_end, function Trig_end_Actions )
endfunction
function Trig_hero_pickers_Func001Func001C takes nothing returns boolean
if ( not ( GetPlayerController(GetEnumPlayer()) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_hero_pickers_Func001A takes nothing returns nothing
if ( Trig_hero_pickers_Func001Func001C() ) then
call CreateNUnitsAtLoc( 1, 'ewsp', GetEnumPlayer(), GetRectCenter(gg_rct_pick_hero_unit), bj_UNIT_FACING )
call SetUnitPathing( GetLastCreatedUnit(), false )
call UnitApplyTimedLifeBJ( 61.00, 'BTLF', GetLastCreatedUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_hero_pickers_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_hero_pickers_Func001A )
endfunction
//===========================================================================
function InitTrig_hero_pickers takes nothing returns nothing
set gg_trg_hero_pickers = CreateTrigger( )
call TriggerAddAction( gg_trg_hero_pickers, function Trig_hero_pickers_Actions )
endfunction
function Trig_buy_hero_lumber_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
function Trig_buy_hero_lumber_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_buy_hero_lumber_Func001002 )
endfunction
//===========================================================================
function InitTrig_buy_hero_lumber takes nothing returns nothing
set gg_trg_buy_hero_lumber = CreateTrigger( )
call TriggerAddAction( gg_trg_buy_hero_lumber, function Trig_buy_hero_lumber_Actions )
endfunction
function Trig_Tavernes_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n000', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_tavern), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 51.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'n00B', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_tavern_2), bj_UNIT_FACING )
call UnitApplyTimedLifeBJ( 51.00, 'BTLF', GetLastCreatedUnit() )
endfunction
//===========================================================================
function InitTrig_Tavernes takes nothing returns nothing
set gg_trg_Tavernes = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Tavernes, 10.00 )
call TriggerAddAction( gg_trg_Tavernes, function Trig_Tavernes_Actions )
endfunction
function Trig_messages_de_picks_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_1339" )
call TriggerSleepAction( 15.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_1340" )
call TriggerSleepAction( 15.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_1341" )
call TriggerSleepAction( 15.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1342" )
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 8.00, "TRIGSTR_1343" )
call TriggerSleepAction( 1.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 8.00, "TRIGSTR_1344" )
call TriggerSleepAction( 1.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 8.00, "TRIGSTR_1345" )
call TriggerSleepAction( 1.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 8.00, "TRIGSTR_1346" )
call TriggerSleepAction( 1.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 8.00, "TRIGSTR_1347" )
call TriggerSleepAction( 1.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 8.00, "TRIGSTR_1348" )
endfunction
//===========================================================================
function InitTrig_messages_de_picks takes nothing returns nothing
set gg_trg_messages_de_picks = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_messages_de_picks, 0.01 )
call TriggerAddAction( gg_trg_messages_de_picks, function Trig_messages_de_picks_Actions )
endfunction
function Trig_disable_xp_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_disable_xp_Actions takes nothing returns nothing
call SuspendHeroXPBJ( false, GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_disable_xp takes nothing returns nothing
set gg_trg_disable_xp = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_disable_xp, gg_rct_arena )
call TriggerAddCondition( gg_trg_disable_xp, Condition( function Trig_disable_xp_Conditions ) )
call TriggerAddAction( gg_trg_disable_xp, function Trig_disable_xp_Actions )
endfunction
function Trig_leaderboard_Func003Func001C takes nothing returns boolean
if ( not ( GetPlayerController(GetEnumPlayer()) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_leaderboard_Func003A takes nothing returns nothing
if ( Trig_leaderboard_Func003Func001C() ) then
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
else
call DoNothing( )
endif
endfunction
function Trig_leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_1338" )
call ForForce( GetPlayersAll(), function Trig_leaderboard_Func003A )
call LeaderboardDisplayBJ( true, GetLastCreatedLeaderboard() )
endfunction
//===========================================================================
function InitTrig_leaderboard takes nothing returns nothing
set gg_trg_leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_leaderboard, 62.00 )
call TriggerAddAction( gg_trg_leaderboard, function Trig_leaderboard_Actions )
endfunction
function Trig_leaderboard_kills_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_leaderboard_kills_Actions takes nothing returns nothing
set udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] + 1 )
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetKillingUnitBJ()), GetLastCreatedLeaderboard(), udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
endfunction
//===========================================================================
function InitTrig_leaderboard_kills takes nothing returns nothing
set gg_trg_leaderboard_kills = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_leaderboard_kills, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_leaderboard_kills, Condition( function Trig_leaderboard_kills_Conditions ) )
call TriggerAddAction( gg_trg_leaderboard_kills, function Trig_leaderboard_kills_Actions )
endfunction
function Trig_multitable_Actions takes nothing returns nothing
call CreateMultiboardBJ( 3, 1, "TRIGSTR_1337" )
call MultiboardSetItemStyleBJ( GetLastCreatedMultiboard(), 1, 1, true, false )
call MultiboardSetItemStyleBJ( GetLastCreatedMultiboard(), 2, 1, true, false )
call MultiboardSetItemStyleBJ( GetLastCreatedMultiboard(), 3, 1, true, false )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 1, 1, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 2, 1, 6.00 )
call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 3, 1, 6.00 )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, 1, ( udg_Hours_T + " Hours" ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, 1, ( udg_Minutes_T + " Minutes" ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, 1, ( udg_Seconds_T + " Seconds" ) )
call MultiboardDisplayBJ( true, GetLastCreatedMultiboard() )
call EnableTrigger( gg_trg_multitable_temps )
endfunction
//===========================================================================
function InitTrig_multitable takes nothing returns nothing
set gg_trg_multitable = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_multitable, 62.00 )
call TriggerAddAction( gg_trg_multitable, function Trig_multitable_Actions )
endfunction
function Trig_multitable_temps_Func002C takes nothing returns boolean
if ( not ( udg_Seconds == 60 ) ) then
return false
endif
return true
endfunction
function Trig_multitable_temps_Func003C takes nothing returns boolean
if ( not ( udg_Minutes == 60 ) ) then
return false
endif
return true
endfunction
function Trig_multitable_temps_Func004C takes nothing returns boolean
if ( not ( udg_Hours < 10 ) ) then
return false
endif
return true
endfunction
function Trig_multitable_temps_Func005C takes nothing returns boolean
if ( not ( udg_Minutes < 10 ) ) then
return false
endif
return true
endfunction
function Trig_multitable_temps_Func006C takes nothing returns boolean
if ( not ( udg_Seconds < 10 ) ) then
return false
endif
return true
endfunction
function Trig_multitable_temps_Actions takes nothing returns nothing
set udg_Seconds = ( udg_Seconds + 1 )
if ( Trig_multitable_temps_Func002C() ) then
set udg_Seconds = 0
set udg_Minutes = ( udg_Minutes + 1 )
else
endif
if ( Trig_multitable_temps_Func003C() ) then
set udg_Minutes = 0
set udg_Hours = ( udg_Hours + 1 )
else
endif
if ( Trig_multitable_temps_Func004C() ) then
set udg_Hours_T = ( "0" + I2S(udg_Hours) )
else
set udg_Hours_T = I2S(udg_Hours)
endif
if ( Trig_multitable_temps_Func005C() ) then
set udg_Minutes_T = ( "0" + I2S(udg_Minutes) )
else
set udg_Minutes_T = I2S(udg_Minutes)
endif
if ( Trig_multitable_temps_Func006C() ) then
set udg_Seconds_T = ( "0" + I2S(udg_Seconds) )
else
set udg_Seconds_T = I2S(udg_Seconds)
endif
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 1, 1, ( udg_Hours_T + " Hours" ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 2, 1, ( udg_Minutes_T + " Minutes" ) )
call MultiboardSetItemValueBJ( GetLastCreatedMultiboard(), 3, 1, ( udg_Seconds_T + " Seconds" ) )
endfunction
//===========================================================================
function InitTrig_multitable_temps takes nothing returns nothing
set gg_trg_multitable_temps = CreateTrigger( )
call DisableTrigger( gg_trg_multitable_temps )
call TriggerRegisterTimerEventPeriodic( gg_trg_multitable_temps, 1.00 )
call TriggerAddAction( gg_trg_multitable_temps, function Trig_multitable_temps_Actions )
endfunction
function Trig_quests_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1329", "TRIGSTR_1330", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_1331", "TRIGSTR_1332", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1333", "TRIGSTR_1334", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_988", "TRIGSTR_989", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_quests takes nothing returns nothing
set gg_trg_quests = CreateTrigger( )
call TriggerAddAction( gg_trg_quests, function Trig_quests_Actions )
endfunction
function Trig_leaver_Func001002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_leaver_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_leaver_Func001002 )
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, ( GetPlayerName(GetTriggerPlayer()) + " has left the game !" ) )
call LeaderboardSetPlayerItemLabelBJ( GetTriggerPlayer(), GetLastCreatedLeaderboard(), ( GetPlayerName(GetTriggerPlayer()) + " (LEAVER)" ) )
endfunction
//===========================================================================
function InitTrig_leaver takes nothing returns nothing
set gg_trg_leaver = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(6) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(9) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(10) )
call TriggerRegisterPlayerEventLeave( gg_trg_leaver, Player(11) )
call TriggerAddAction( gg_trg_leaver, function Trig_leaver_Actions )
endfunction
function Trig_turn_off_cycle_day_Actions takes nothing returns nothing
call UseTimeOfDayBJ( false )
call SetTimeOfDay( 0.00 )
endfunction
//===========================================================================
function InitTrig_turn_off_cycle_day takes nothing returns nothing
set gg_trg_turn_off_cycle_day = CreateTrigger( )
call TriggerAddAction( gg_trg_turn_off_cycle_day, function Trig_turn_off_cycle_day_Actions )
endfunction
function Trig_ecritures_Actions takes nothing returns nothing
call CreateTextTagLocBJ( "TRIGSTR_1328", GetRectCenter(gg_rct_pick_hero_unit), 0, 16.00, 100.00, 0.00, 0.00, 0.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 1.50, 1.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 3.00, 3.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 4.50, 4.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 6.00, 6.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 7.50, 7.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 9.00, 9.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 10.50, 10.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 12.00, 12.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 13.50, 13.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 15.00, 15.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 16.50, 16.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 18.00, 18.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 19.50, 19.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 21.00, 21.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 22.50, 22.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 24.00, 24.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 25.50, 25.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 27.00, 27.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 28.50, 28.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 30.00, 30.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 31.50, 31.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 33.00, 33.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 34.50, 34.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 36.00, 36.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 37.50, 37.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 39.00, 39.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 40.50, 40.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 42.00, 42.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 43.50, 43.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 45.00, 45.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 46.50, 46.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 48.00, 48.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 49.50, 49.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 51.00, 51.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 52.50, 52.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 54.00, 54.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 55.50, 55.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 57.00, 57.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 58.50, 58.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 60.00, 60.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 61.50, 61.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 63.00, 63.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 64.50, 64.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 66.00, 66.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 67.50, 67.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 69.00, 69.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 70.50, 70.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 72.00, 72.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 73.50, 73.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 75.00, 75.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 76.50, 76.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 78.00, 78.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 79.50, 79.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 81.00, 81.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 82.50, 82.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 84.00, 84.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 85.50, 85.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 87.00, 87.00, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 88.50, 88.50, 0 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 90.00, 90.00, 5.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 91.50, 91.50, 10.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 93.00, 93.00, 15.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 94.50, 94.50, 20.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 96.00, 96.00, 25.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 97.50, 97.50, 30.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 99.00, 99.00, 35.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 40.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 40.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 45.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 50.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 55.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 60.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 65.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 70.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 75.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 80.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 85.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 90.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagColorBJ( GetLastCreatedTextTag(), 100.00, 100.00, 100.00, 95.00 )
call TriggerSleepAction( 1.00 )
call DestroyTextTagBJ( GetLastCreatedTextTag() )
endfunction
//===========================================================================
function InitTrig_ecritures takes nothing returns nothing
set gg_trg_ecritures = CreateTrigger( )
call TriggerAddAction( gg_trg_ecritures, function Trig_ecritures_Actions )
endfunction
function Trig_ecritures_lumieres_Actions takes nothing returns nothing
call AddLightningLoc( "CHIM", GetRectCenter(gg_rct_R__gion_065), GetRectCenter(gg_rct_R__gion_066) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_066), GetRectCenter(gg_rct_R__gion_067) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_068), GetRectCenter(gg_rct_R__gion_069) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_069), GetRectCenter(gg_rct_R__gion_070) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_071), GetRectCenter(gg_rct_R__gion_072) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_072), GetRectCenter(gg_rct_R__gion_073) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_074), GetRectCenter(gg_rct_R__gion_075) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_076), GetRectCenter(gg_rct_R__gion_077) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_077), GetRectCenter(gg_rct_R__gion_078) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_078), GetRectCenter(gg_rct_R__gion_081) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_081), GetRectCenter(gg_rct_R__gion_080) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_080), GetRectCenter(gg_rct_R__gion_079) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_079), GetRectCenter(gg_rct_R__gion_076) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_082), GetRectCenter(gg_rct_R__gion_084) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_084), GetRectCenter(gg_rct_R__gion_083) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_085), GetRectCenter(gg_rct_R__gion_086) )
call TriggerSleepAction( 1.00 )
call DestroyLightningBJ( GetLastCreatedLightningBJ() )
endfunction
//===========================================================================
function InitTrig_ecritures_lumieres takes nothing returns nothing
set gg_trg_ecritures_lumieres = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_ecritures_lumieres, 5 )
call TriggerAddAction( gg_trg_ecritures_lumieres, function Trig_ecritures_lumieres_Actions )
endfunction
function Trig_ecritures_lumieres_2_Actions takes nothing returns nothing
call AddLightningLoc( "CLPB", GetRectCenter(gg_rct_R__gion_065), GetRectCenter(gg_rct_R__gion_066) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_066), GetRectCenter(gg_rct_R__gion_067) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_068), GetRectCenter(gg_rct_R__gion_069) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_069), GetRectCenter(gg_rct_R__gion_070) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_071), GetRectCenter(gg_rct_R__gion_072) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_072), GetRectCenter(gg_rct_R__gion_073) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_074), GetRectCenter(gg_rct_R__gion_075) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_076), GetRectCenter(gg_rct_R__gion_077) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_077), GetRectCenter(gg_rct_R__gion_078) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_078), GetRectCenter(gg_rct_R__gion_081) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_081), GetRectCenter(gg_rct_R__gion_080) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_080), GetRectCenter(gg_rct_R__gion_079) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_079), GetRectCenter(gg_rct_R__gion_076) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_082), GetRectCenter(gg_rct_R__gion_084) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_084), GetRectCenter(gg_rct_R__gion_083) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_085), GetRectCenter(gg_rct_R__gion_086) )
call TriggerSleepAction( 1.00 )
call DestroyLightningBJ( GetLastCreatedLightningBJ() )
endfunction
//===========================================================================
function InitTrig_ecritures_lumieres_2 takes nothing returns nothing
set gg_trg_ecritures_lumieres_2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_ecritures_lumieres_2, 25.00 )
call TriggerAddAction( gg_trg_ecritures_lumieres_2, function Trig_ecritures_lumieres_2_Actions )
endfunction
function Trig_ecritures_lumieres_3_Actions takes nothing returns nothing
call AddLightningLoc( "CLSB", GetRectCenter(gg_rct_R__gion_065), GetRectCenter(gg_rct_R__gion_066) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_066), GetRectCenter(gg_rct_R__gion_067) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_068), GetRectCenter(gg_rct_R__gion_069) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_069), GetRectCenter(gg_rct_R__gion_070) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_071), GetRectCenter(gg_rct_R__gion_072) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_072), GetRectCenter(gg_rct_R__gion_073) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_074), GetRectCenter(gg_rct_R__gion_075) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_076), GetRectCenter(gg_rct_R__gion_077) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_077), GetRectCenter(gg_rct_R__gion_078) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_078), GetRectCenter(gg_rct_R__gion_081) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_081), GetRectCenter(gg_rct_R__gion_080) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_080), GetRectCenter(gg_rct_R__gion_079) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_079), GetRectCenter(gg_rct_R__gion_076) )
call TriggerSleepAction( 0.75 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_082), GetRectCenter(gg_rct_R__gion_084) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_084), GetRectCenter(gg_rct_R__gion_083) )
call TriggerSleepAction( 1.00 )
call MoveLightningLoc( GetLastCreatedLightningBJ(), GetRectCenter(gg_rct_R__gion_085), GetRectCenter(gg_rct_R__gion_086) )
call TriggerSleepAction( 1.00 )
call DestroyLightningBJ( GetLastCreatedLightningBJ() )
endfunction
//===========================================================================
function InitTrig_ecritures_lumieres_3 takes nothing returns nothing
set gg_trg_ecritures_lumieres_3 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_ecritures_lumieres_3, 45.00 )
call TriggerAddAction( gg_trg_ecritures_lumieres_3, function Trig_ecritures_lumieres_3_Actions )
endfunction
function Trig_weather_Actions takes nothing returns nothing
call AddWeatherEffectSaveLast( gg_rct_castle, 'LRaa' )
call AddWeatherEffectSaveLast( gg_rct_spawn_1, 'FDrh' )
call AddWeatherEffectSaveLast( gg_rct_spawn_2, 'FDrh' )
call AddWeatherEffectSaveLast( gg_rct_spawn_3, 'FDrh' )
call AddWeatherEffectSaveLast( gg_rct_spawn_4, 'FDrh' )
endfunction
//===========================================================================
function InitTrig_weather takes nothing returns nothing
set gg_trg_weather = CreateTrigger( )
call TriggerAddAction( gg_trg_weather, function Trig_weather_Actions )
endfunction
function Trig_level_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1327" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_1 takes nothing returns nothing
set gg_trg_level_1 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_1, 62.00 )
call TriggerAddAction( gg_trg_level_1, function Trig_level_1_Actions )
endfunction
function Trig_level_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1326" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 8, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 8, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 8, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 8, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 1, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_2 takes nothing returns nothing
set gg_trg_level_2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_2, 90.00 )
call TriggerAddAction( gg_trg_level_2, function Trig_level_2_Actions )
endfunction
function Trig_level_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1325" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'h003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 7.00 )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_3 takes nothing returns nothing
set gg_trg_level_3 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_3, 135.00 )
call TriggerAddAction( gg_trg_level_3, function Trig_level_3_Actions )
endfunction
function Trig_level_4_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1323" )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 6.00 )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 6.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1324" )
call CreateNUnitsAtLoc( 1, 'h006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_4 takes nothing returns nothing
set gg_trg_level_4 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_4, 185.00 )
call TriggerAddAction( gg_trg_level_4, function Trig_level_4_Actions )
endfunction
function Trig_level_5_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_974" )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_5 takes nothing returns nothing
set gg_trg_level_5 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_5, 260.00 )
call TriggerAddAction( gg_trg_level_5, function Trig_level_5_Actions )
endfunction
function Trig_level_6_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_973" )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n005', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_6 takes nothing returns nothing
set gg_trg_level_6 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_6, 335.00 )
call TriggerAddAction( gg_trg_level_6, function Trig_level_6_Actions )
endfunction
function Trig_level_7_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_972" )
call TriggerSleepAction( 3.50 )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.50 )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.50 )
call CreateNUnitsAtLoc( 2, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n006', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.50 )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.50 )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_7 takes nothing returns nothing
set gg_trg_level_7 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_7, 410.00 )
call TriggerAddAction( gg_trg_level_7, function Trig_level_7_Actions )
endfunction
function Trig_level_8_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_969" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.50 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_970" )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 15.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_971" )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h007', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h008', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.50 )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'o000', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_8 takes nothing returns nothing
set gg_trg_level_8 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_8, 500.00 )
call TriggerAddAction( gg_trg_level_8, function Trig_level_8_Actions )
endfunction
function Trig_level_9_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_968" )
call TriggerSleepAction( 8.00 )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h009', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'h00A', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_9 takes nothing returns nothing
set gg_trg_level_9 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_9, 605.00 )
call TriggerAddAction( gg_trg_level_9, function Trig_level_9_Actions )
endfunction
function Trig_level_10_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_967" )
call TriggerSleepAction( 8.00 )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 3.25 )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 5, 'o002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'h00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'e002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00B', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_10 takes nothing returns nothing
set gg_trg_level_10 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_10, 710.00 )
call TriggerAddAction( gg_trg_level_10, function Trig_level_10_Actions )
endfunction
function Trig_level_11_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_966" )
call TriggerSleepAction( 1.50 )
call CreateNUnitsAtLoc( 8, 'h00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'H00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_11 takes nothing returns nothing
set gg_trg_level_11 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_level_11, 770.00 )
call TriggerAddAction( gg_trg_level_11, function Trig_level_11_Actions )
endfunction
function Trig_level_12_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'H00D' ) ) then
return false
endif
return true
endfunction
function Trig_level_12_Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()) <= ( 0.20 * GetUnitStateSwap(UNIT_STATE_MAX_LIFE, GetTriggerUnit()) ) ) ) then
return false
endif
return true
endfunction
function Trig_level_12_Actions takes nothing returns nothing
if ( Trig_level_12_Func001C() ) then
call RemoveUnit( GetAttackedUnitBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_964" )
call TriggerSleepAction( 30.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_965" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'h00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 7.50 )
call CreateNUnitsAtLoc( 5, 'h00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_archier_fire )
call DisableTrigger( GetTriggeringTrigger() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_level_12 takes nothing returns nothing
set gg_trg_level_12 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_level_12, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_level_12, Condition( function Trig_level_12_Conditions ) )
call TriggerAddAction( gg_trg_level_12, function Trig_level_12_Actions )
endfunction
function Trig_level_13_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_405" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 10, 'h00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'H00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_14 )
call EnableTrigger( gg_trg_declenchement_level_15 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_13 takes nothing returns nothing
set gg_trg_level_13 = CreateTrigger( )
call DisableTrigger( gg_trg_level_13 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_13, 15.00 )
call TriggerAddAction( gg_trg_level_13, function Trig_level_13_Actions )
endfunction
function Trig_level_14_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_444" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'h00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'h00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'h00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_4), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_5), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_6), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_7), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_8), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_9), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_10), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_11), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_12), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_13), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_14), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_15), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_16), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_17), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_18), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_19), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_20), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_21), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_22), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_23), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_24), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_25), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_26), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_27), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_28), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_29), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_30), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_31), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_32), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_33), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_34), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_35), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_36), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_37), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_38), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_39), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_40), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_41), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_42), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_43), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_44), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_45), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_46), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'o003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'o003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_14 takes nothing returns nothing
set gg_trg_level_14 = CreateTrigger( )
call DisableTrigger( gg_trg_level_14 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_14, 20.00 )
call TriggerAddAction( gg_trg_level_14, function Trig_level_14_Actions )
endfunction
function Trig_level_15_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_454" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_16 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_15 takes nothing returns nothing
set gg_trg_level_15 = CreateTrigger( )
call DisableTrigger( gg_trg_level_15 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_15, 45.00 )
call TriggerAddAction( gg_trg_level_15, function Trig_level_15_Actions )
endfunction
function Trig_level_16_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_486" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00D', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_17 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_16 takes nothing returns nothing
set gg_trg_level_16 = CreateTrigger( )
call DisableTrigger( gg_trg_level_16 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_16, 60.00 )
call TriggerAddAction( gg_trg_level_16, function Trig_level_16_Actions )
endfunction
function Trig_level_17_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_512" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'u001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_18 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_17 takes nothing returns nothing
set gg_trg_level_17 = CreateTrigger( )
call DisableTrigger( gg_trg_level_17 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_17, 90.00 )
call TriggerAddAction( gg_trg_level_17, function Trig_level_17_Actions )
endfunction
function Trig_level_18_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_513" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_19 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_18 takes nothing returns nothing
set gg_trg_level_18 = CreateTrigger( )
call DisableTrigger( gg_trg_level_18 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_18, 60.00 )
call TriggerAddAction( gg_trg_level_18, function Trig_level_18_Actions )
endfunction
function Trig_level_19_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_544" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_20 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_19 takes nothing returns nothing
set gg_trg_level_19 = CreateTrigger( )
call DisableTrigger( gg_trg_level_19 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_19, 90.00 )
call TriggerAddAction( gg_trg_level_19, function Trig_level_19_Actions )
endfunction
function Trig_level_20_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_609" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00F', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00H', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00E', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'U003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 4, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 4, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_declenchement_level_21 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_20 takes nothing returns nothing
set gg_trg_level_20 = CreateTrigger( )
call DisableTrigger( gg_trg_level_20 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_20, 90.00 )
call TriggerAddAction( gg_trg_level_20, function Trig_level_20_Actions )
endfunction
function Trig_level_21_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_737" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00C', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00G', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_24 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_21 takes nothing returns nothing
set gg_trg_level_21 = CreateTrigger( )
call DisableTrigger( gg_trg_level_21 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_21, 40.00 )
call TriggerAddAction( gg_trg_level_21, function Trig_level_21_Actions )
endfunction
function Trig_level_22_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_792" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_23 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_22 takes nothing returns nothing
set gg_trg_level_22 = CreateTrigger( )
call DisableTrigger( gg_trg_level_22 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_22, 75.00 )
call TriggerAddAction( gg_trg_level_22, function Trig_level_22_Actions )
endfunction
function Trig_level_23_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_793" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call CreateNUnitsAtLoc( 2, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00P', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call EnableTrigger( gg_trg_declenchement_level_24 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_23 takes nothing returns nothing
set gg_trg_level_23 = CreateTrigger( )
call DisableTrigger( gg_trg_level_23 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_23, 90.00 )
call TriggerAddAction( gg_trg_level_23, function Trig_level_23_Actions )
endfunction
function Trig_level_24_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_744" )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_745" )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00I', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 10.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_746" )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 10, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_declenchement_level_25 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_24 takes nothing returns nothing
set gg_trg_level_24 = CreateTrigger( )
call DisableTrigger( gg_trg_level_24 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_24, 90.00 )
call TriggerAddAction( gg_trg_level_24, function Trig_level_24_Actions )
endfunction
function Trig_level_25_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_747" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 15, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 20, 'n00M', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'U004', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_boss_1), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_25_perma_zombies )
call EnableTrigger( gg_trg_declenchement_level_26_1 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_25 takes nothing returns nothing
set gg_trg_level_25 = CreateTrigger( )
call DisableTrigger( gg_trg_level_25 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_25, 20.00 )
call TriggerAddAction( gg_trg_level_25, function Trig_level_25_Actions )
endfunction
function Trig_level_26_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1248" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_27 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_26 takes nothing returns nothing
set gg_trg_level_26 = CreateTrigger( )
call DisableTrigger( gg_trg_level_26 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_26, 60.00 )
call TriggerAddAction( gg_trg_level_26, function Trig_level_26_Actions )
endfunction
function Trig_level_27_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1357" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'n00K', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00T', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00V', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 5, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 2, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'n00O', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 1, 'n00W', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00W', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00W', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00W', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call TriggerSleepAction( 5.00 )
call CreateNUnitsAtLoc( 8, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 8, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 8, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 8, 'n00U', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
call EnableTrigger( gg_trg_level_28 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_level_27 takes nothing returns nothing
set gg_trg_level_27 = CreateTrigger( )
call DisableTrigger( gg_trg_level_27 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_27, 90.00 )
call TriggerAddAction( gg_trg_level_27, function Trig_level_27_Actions )
endfunction
function Trig_level_28_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_level_28 takes nothing returns nothing
set gg_trg_level_28 = CreateTrigger( )
call DisableTrigger( gg_trg_level_28 )
call TriggerAddAction( gg_trg_level_28, function Trig_level_28_Actions )
endfunction
function Trig_archier_fire_Func050001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'e003' )
endfunction
function Trig_archier_fire_Func050A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_archier_fire_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_963" )
call TriggerSleepAction( 3.00 )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_4), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_5), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_6), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_7), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_8), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_9), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_10), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_11), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_12), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_13), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_14), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_15), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_16), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_17), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_18), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_19), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_20), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_21), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_22), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_23), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_24), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_25), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_26), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_27), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_28), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_29), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_30), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_31), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_32), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_33), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_34), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_35), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_36), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_37), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_38), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_39), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_40), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_41), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_42), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_43), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_44), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_45), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'e003', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_archier_46), bj_UNIT_FACING )
call TriggerSleepAction( 2.50 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_archier_fire_Func050001002)), function Trig_archier_fire_Func050A )
call EnableTrigger( gg_trg_level_13 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_archier_fire takes nothing returns nothing
set gg_trg_archier_fire = CreateTrigger( )
call DisableTrigger( gg_trg_archier_fire )
call TriggerRegisterTimerEventPeriodic( gg_trg_archier_fire, 10.00 )
call TriggerAddAction( gg_trg_archier_fire, function Trig_archier_fire_Actions )
endfunction
function Trig_declenchement_level_15_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H00D' ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_15_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_level_15 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_declenchement_level_15 takes nothing returns nothing
set gg_trg_declenchement_level_15 = CreateTrigger( )
call DisableTrigger( gg_trg_declenchement_level_15 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_declenchement_level_15, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_declenchement_level_15, Condition( function Trig_declenchement_level_15_Conditions ) )
call TriggerAddAction( gg_trg_declenchement_level_15, function Trig_declenchement_level_15_Actions )
endfunction
function Trig_declenchement_level_21_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U003' ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_21_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_level_21 )
endfunction
//===========================================================================
function InitTrig_declenchement_level_21 takes nothing returns nothing
set gg_trg_declenchement_level_21 = CreateTrigger( )
call DisableTrigger( gg_trg_declenchement_level_21 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_declenchement_level_21, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_declenchement_level_21, Condition( function Trig_declenchement_level_21_Conditions ) )
call TriggerAddAction( gg_trg_declenchement_level_21, function Trig_declenchement_level_21_Actions )
endfunction
function Trig_declenchement_level_24_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00P' ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_24_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_level_24 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_declenchement_level_24 takes nothing returns nothing
set gg_trg_declenchement_level_24 = CreateTrigger( )
call DisableTrigger( gg_trg_declenchement_level_24 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_declenchement_level_24, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_declenchement_level_24, Condition( function Trig_declenchement_level_24_Conditions ) )
call TriggerAddAction( gg_trg_declenchement_level_24, function Trig_declenchement_level_24_Actions )
endfunction
function Trig_declenchement_level_25_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00L' ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_25_Func001C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(PLAYER_NEUTRAL_AGGRESSIVE), 'n00L')) <= 40 ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_25_Actions takes nothing returns nothing
if ( Trig_declenchement_level_25_Func001C() ) then
call EnableTrigger( gg_trg_level_25 )
call DisableTrigger( GetTriggeringTrigger() )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_declenchement_level_25 takes nothing returns nothing
set gg_trg_declenchement_level_25 = CreateTrigger( )
call DisableTrigger( gg_trg_declenchement_level_25 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_declenchement_level_25, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_declenchement_level_25, Condition( function Trig_declenchement_level_25_Conditions ) )
call TriggerAddAction( gg_trg_declenchement_level_25, function Trig_declenchement_level_25_Actions )
endfunction
function Trig_level_25_perma_zombies_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_25_perma_zombies takes nothing returns nothing
set gg_trg_level_25_perma_zombies = CreateTrigger( )
call DisableTrigger( gg_trg_level_25_perma_zombies )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_25_perma_zombies, 5.00 )
call TriggerAddAction( gg_trg_level_25_perma_zombies, function Trig_level_25_perma_zombies_Actions )
endfunction
function Trig_level_25_perma_zombies_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_1), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRectCenter(gg_rct_spawn_4), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_level_25_perma_zombies_2 takes nothing returns nothing
set gg_trg_level_25_perma_zombies_2 = CreateTrigger( )
call DisableTrigger( gg_trg_level_25_perma_zombies_2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_level_25_perma_zombies_2, 10.00 )
call TriggerAddAction( gg_trg_level_25_perma_zombies_2, function Trig_level_25_perma_zombies_2_Actions )
endfunction
function Trig_declenchement_level_26_1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U004' ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_26_1_Actions takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 10 )
call CreateNUnitsAtLoc( 5, 'n00R', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call DisableTrigger( gg_trg_level_25_perma_zombies )
call EnableTrigger( gg_trg_level_25_perma_zombies_2 )
call EnableTrigger( gg_trg_declenchement_level_26_2 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_declenchement_level_26_1 takes nothing returns nothing
set gg_trg_declenchement_level_26_1 = CreateTrigger( )
call DisableTrigger( gg_trg_declenchement_level_26_1 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_declenchement_level_26_1, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_declenchement_level_26_1, Condition( function Trig_declenchement_level_26_1_Conditions ) )
call TriggerAddAction( gg_trg_declenchement_level_26_1, function Trig_declenchement_level_26_1_Actions )
endfunction
function Trig_declenchement_level_26_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'n00R' ) ) then
return false
endif
return true
endfunction
function Trig_declenchement_level_26_2_Func005001001001001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'n00R' )
endfunction
function Trig_declenchement_level_26_2_Func005001001001001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_declenchement_level_26_2_Func005001001001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_declenchement_level_26_2_Func005001001001001002001(), Trig_declenchement_level_26_2_Func005001001001001002002() )
endfunction
function Trig_declenchement_level_26_2_Func005001001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_declenchement_level_26_2_Func005001001001001002))) == 0 )
endfunction
function Trig_declenchement_level_26_2_Func005001002001001001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'n00M' )
endfunction
function Trig_declenchement_level_26_2_Func005001002001001001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_declenchement_level_26_2_Func005001002001001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_declenchement_level_26_2_Func005001002001001001002001(), Trig_declenchement_level_26_2_Func005001002001001001002002() )
endfunction
function Trig_declenchement_level_26_2_Func005001002001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_declenchement_level_26_2_Func005001002001001001002))) == 0 )
endfunction
function Trig_declenchement_level_26_2_Func005001002002001001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'n00L' )
endfunction
function Trig_declenchement_level_26_2_Func005001002002001001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_declenchement_level_26_2_Func005001002002001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_declenchement_level_26_2_Func005001002002001001002001(), Trig_declenchement_level_26_2_Func005001002002001001002002() )
endfunction
function Trig_declenchement_level_26_2_Func005001002002 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_declenchement_level_26_2_Func005001002002001001002))) <= 10 )
endfunction
function Trig_declenchement_level_26_2_Func005001002 takes nothing returns boolean
return GetBooleanAnd( Trig_declenchement_level_26_2_Func005001002001(), Trig_declenchement_level_26_2_Func005001002002() )
endfunction
function Trig_declenchement_level_26_2_Func005001 takes nothing returns boolean
return GetBooleanAnd( Trig_declenchement_level_26_2_Func005001001(), Trig_declenchement_level_26_2_Func005001002() )
endfunction
function Trig_declenchement_level_26_2_Actions takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 3 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 3 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 3 )
call CreateNUnitsAtLoc( 3, 'n00L', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
loop
exitwhen ( Trig_declenchement_level_26_2_Func005001() )
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.10))
endloop
call EnableTrigger( gg_trg_level_26 )
call DisableTrigger( gg_trg_level_25_perma_zombies_2 )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_declenchement_level_26_2 takes nothing returns nothing
set gg_trg_declenchement_level_26_2 = CreateTrigger( )
call DisableTrigger( gg_trg_declenchement_level_26_2 )
call TriggerRegisterAnyUnitEventBJ( gg_trg_declenchement_level_26_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_declenchement_level_26_2, Condition( function Trig_declenchement_level_26_2_Conditions ) )
call TriggerAddAction( gg_trg_declenchement_level_26_2, function Trig_declenchement_level_26_2_Actions )
endfunction
function Trig_creeps_approchement_1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_approchement_1_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_move_1) )
endfunction
//===========================================================================
function InitTrig_creeps_approchement_1 takes nothing returns nothing
set gg_trg_creeps_approchement_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_approchement_1, gg_rct_spawn_1 )
call TriggerAddCondition( gg_trg_creeps_approchement_1, Condition( function Trig_creeps_approchement_1_Conditions ) )
call TriggerAddAction( gg_trg_creeps_approchement_1, function Trig_creeps_approchement_1_Actions )
endfunction
function Trig_creeps_approchement_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_approchement_2_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_move_2) )
endfunction
//===========================================================================
function InitTrig_creeps_approchement_2 takes nothing returns nothing
set gg_trg_creeps_approchement_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_approchement_2, gg_rct_spawn_2 )
call TriggerAddCondition( gg_trg_creeps_approchement_2, Condition( function Trig_creeps_approchement_2_Conditions ) )
call TriggerAddAction( gg_trg_creeps_approchement_2, function Trig_creeps_approchement_2_Actions )
endfunction
function Trig_creeps_approchement_3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_approchement_3_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_move_3) )
endfunction
//===========================================================================
function InitTrig_creeps_approchement_3 takes nothing returns nothing
set gg_trg_creeps_approchement_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_approchement_3, gg_rct_spawn_3 )
call TriggerAddCondition( gg_trg_creeps_approchement_3, Condition( function Trig_creeps_approchement_3_Conditions ) )
call TriggerAddAction( gg_trg_creeps_approchement_3, function Trig_creeps_approchement_3_Actions )
endfunction
function Trig_creeps_approchement_4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_approchement_4_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_move_4) )
endfunction
//===========================================================================
function InitTrig_creeps_approchement_4 takes nothing returns nothing
set gg_trg_creeps_approchement_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_approchement_4, gg_rct_spawn_4 )
call TriggerAddCondition( gg_trg_creeps_approchement_4, Condition( function Trig_creeps_approchement_4_Conditions ) )
call TriggerAddAction( gg_trg_creeps_approchement_4, function Trig_creeps_approchement_4_Actions )
endfunction
function Trig_creeps_debug_1_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_debug_1_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_debug_1) )
endfunction
//===========================================================================
function InitTrig_creeps_debug_1 takes nothing returns nothing
set gg_trg_creeps_debug_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_debug_1, gg_rct_debug_1 )
call TriggerAddCondition( gg_trg_creeps_debug_1, Condition( function Trig_creeps_debug_1_Conditions ) )
call TriggerAddAction( gg_trg_creeps_debug_1, function Trig_creeps_debug_1_Actions )
endfunction
function Trig_creeps_debug_2_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_debug_2_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_debug_2) )
endfunction
//===========================================================================
function InitTrig_creeps_debug_2 takes nothing returns nothing
set gg_trg_creeps_debug_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_debug_2, gg_rct_debug_2 )
call TriggerAddCondition( gg_trg_creeps_debug_2, Condition( function Trig_creeps_debug_2_Conditions ) )
call TriggerAddAction( gg_trg_creeps_debug_2, function Trig_creeps_debug_2_Actions )
endfunction
function Trig_creeps_debug_3_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_debug_3_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_debug_3) )
endfunction
//===========================================================================
function InitTrig_creeps_debug_3 takes nothing returns nothing
set gg_trg_creeps_debug_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_debug_3, gg_rct_debug_3 )
call TriggerAddCondition( gg_trg_creeps_debug_3, Condition( function Trig_creeps_debug_3_Conditions ) )
call TriggerAddAction( gg_trg_creeps_debug_3, function Trig_creeps_debug_3_Actions )
endfunction
function Trig_creeps_debug_4_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_creeps_debug_4_Actions takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnteringUnit(), "move", GetRectCenter(gg_rct_debug_4) )
endfunction
//===========================================================================
function InitTrig_creeps_debug_4 takes nothing returns nothing
set gg_trg_creeps_debug_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_creeps_debug_4, gg_rct_debug_4 )
call TriggerAddCondition( gg_trg_creeps_debug_4, Condition( function Trig_creeps_debug_4_Conditions ) )
call TriggerAddAction( gg_trg_creeps_debug_4, function Trig_creeps_debug_4_Actions )
endfunction
function Trig_Phantom_Boots_Func001Func005C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ewar' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01G') == true ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01H') == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_Actions takes nothing returns nothing
if ( Trig_Phantom_Boots_Func001C() ) then
call RemoveItem( GetItemOfTypeFromUnitBJ(GetTriggerUnit(), 'I01H') )
call RemoveItem( GetItemOfTypeFromUnitBJ(GetTriggerUnit(), 'I01G') )
call UnitAddItemByIdSwapped( 'I01I', GetTriggerUnit() )
if ( Trig_Phantom_Boots_Func001Func005C() ) then
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 55.00 )
else
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 30.00 )
endif
call SetUnitPathing( GetTriggerUnit(), false )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Phantom_Boots takes nothing returns nothing
set gg_trg_Phantom_Boots = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Phantom_Boots, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddAction( gg_trg_Phantom_Boots, function Trig_Phantom_Boots_Actions )
endfunction
function Trig_Phantom_Boots_debug_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ewar' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01I' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_Actions takes nothing returns nothing
if ( Trig_Phantom_Boots_debug_Func001C() ) then
if ( Trig_Phantom_Boots_debug_Func001Func001C() ) then
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 55.00 )
else
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 30.00 )
endif
call SetUnitPathing( GetTriggerUnit(), false )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Phantom_Boots_debug takes nothing returns nothing
set gg_trg_Phantom_Boots_debug = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Phantom_Boots_debug, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddAction( gg_trg_Phantom_Boots_debug, function Trig_Phantom_Boots_debug_Actions )
endfunction
function Trig_Phantom_Boots_debug_2_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ewar' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_2_Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01I' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_2_Actions takes nothing returns nothing
if ( Trig_Phantom_Boots_debug_2_Func001C() ) then
if ( Trig_Phantom_Boots_debug_2_Func001Func001C() ) then
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 40.00 )
else
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 0.00 )
endif
call SetUnitPathing( GetTriggerUnit(), true )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Phantom_Boots_debug_2 takes nothing returns nothing
set gg_trg_Phantom_Boots_debug_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Phantom_Boots_debug_2, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddAction( gg_trg_Phantom_Boots_debug_2, function Trig_Phantom_Boots_debug_2_Actions )
endfunction
function Trig_Phantom_Boots_debug_3_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Around_Arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_south_of_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Func001Func001Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_north_of_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Func001Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_east_of_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_west_of_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'uloc' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'u000' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'u006' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'u005' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Func002Func003001001 takes nothing returns boolean
return ( GetOwningPlayer(GetLeavingUnit()) == GetFilterPlayer() )
endfunction
function Trig_Phantom_Boots_debug_3_Func002C takes nothing returns boolean
if ( not Trig_Phantom_Boots_debug_3_Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_3_Actions takes nothing returns nothing
if ( Trig_Phantom_Boots_debug_3_Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 180.00), GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Phantom_Boots_debug_3_Func001Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 0.00), GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Phantom_Boots_debug_3_Func001Func001Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 270.00), GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Phantom_Boots_debug_3_Func001Func001Func001Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 90.00), GetUnitLoc(GetTriggerUnit()) )
else
endif
endif
endif
endif
if ( Trig_Phantom_Boots_debug_3_Func002C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Phantom_Boots_debug_3_Func002Func003001001)), "TRIGSTR_1015" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Phantom_Boots_debug_3 takes nothing returns nothing
set gg_trg_Phantom_Boots_debug_3 = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Phantom_Boots_debug_3, gg_rct_arena )
call TriggerAddCondition( gg_trg_Phantom_Boots_debug_3, Condition( function Trig_Phantom_Boots_debug_3_Conditions ) )
call TriggerAddAction( gg_trg_Phantom_Boots_debug_3, function Trig_Phantom_Boots_debug_3_Actions )
endfunction
function Trig_Phantom_Boots_debug_4_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_around_duel_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_south_of_dual_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Func001Func001Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_south_of_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Func001Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_east_of_dual_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Func001C takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_west_of_dual_arena, GetLeavingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'uloc' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'u000' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'u006' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) != 'u005' ) ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Func002Func003001001 takes nothing returns boolean
return ( GetOwningPlayer(GetLeavingUnit()) == GetFilterPlayer() )
endfunction
function Trig_Phantom_Boots_debug_4_Func002C takes nothing returns boolean
if ( not Trig_Phantom_Boots_debug_4_Func002Func001C() ) then
return false
endif
return true
endfunction
function Trig_Phantom_Boots_debug_4_Actions takes nothing returns nothing
if ( Trig_Phantom_Boots_debug_4_Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 180.00), GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Phantom_Boots_debug_4_Func001Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 0.00), GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Phantom_Boots_debug_4_Func001Func001Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 270.00), GetUnitLoc(GetTriggerUnit()) )
else
if ( Trig_Phantom_Boots_debug_4_Func001Func001Func001Func001C() ) then
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(GetLeavingUnit()), 25.00, 180.00), 256, 90.00), GetUnitLoc(GetTriggerUnit()) )
else
endif
endif
endif
endif
if ( Trig_Phantom_Boots_debug_4_Func002C() ) then
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_Phantom_Boots_debug_4_Func002Func003001001)), "TRIGSTR_1280" )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Phantom_Boots_debug_4 takes nothing returns nothing
set gg_trg_Phantom_Boots_debug_4 = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Phantom_Boots_debug_4, gg_rct_around_duel_arena )
call TriggerAddCondition( gg_trg_Phantom_Boots_debug_4, Condition( function Trig_Phantom_Boots_debug_4_Conditions ) )
call TriggerAddAction( gg_trg_Phantom_Boots_debug_4, function Trig_Phantom_Boots_debug_4_Actions )
endfunction
function Trig_ulti_upgrade_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I001' ) ) then
return false
endif
if ( not ( udg_Upgrade_Ultimate_Boolean[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] == false ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'E005' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'H00P' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Nbrn' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Nalc' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Ewar' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Ucrl' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orkn' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orex' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Otch' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Obla' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hjai' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Func004C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hmkg' ) ) then
return false
endif
return true
endfunction
function Trig_ulti_upgrade_Actions takes nothing returns nothing
if ( Trig_ulti_upgrade_Func004C() ) then
call UnitRemoveAbilityBJ( 'AHav', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00O', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'A00D', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00Y', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'AOww', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00P', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'AOre', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00Q', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'A00N', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00W', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'AOls', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00R', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'A008', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00V', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'A00I', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A011', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'A00I', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A011', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'A005', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00U', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004C() ) then
call UnitRemoveAbilityBJ( 'ANtm', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00T', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001C() ) then
call UnitAddAbilityBJ( 'A00X', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A00C', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01C', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01E', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01U', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01X', GetManipulatingUnit() )
else
if ( Trig_ulti_upgrade_Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func004Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A02L', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A026', GetManipulatingUnit() )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_Upgrade_Ultimate_Boolean[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = true
endfunction
//===========================================================================
function InitTrig_ulti_upgrade takes nothing returns nothing
set gg_trg_ulti_upgrade = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ulti_upgrade, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_ulti_upgrade, Condition( function Trig_ulti_upgrade_Conditions ) )
call TriggerAddAction( gg_trg_ulti_upgrade, function Trig_ulti_upgrade_Actions )
endfunction
function ClearPowerupsPickup takes nothing returns nothing
local item it = GetManipulatedItem()
call TriggerSleepAction(0.0)
if (GetWidgetLife(it)<0.405) then
call SetWidgetLife(it,1)
call RemoveItem(it)
endif
set it=null
endfunction
function InitTrig_ClearPowerups takes nothing returns nothing
set gg_trg_ClearPowerups = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ClearPowerups, EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(gg_trg_ClearPowerups, function ClearPowerupsPickup)
endfunction
function Trig_Mage_Scepter_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orkn' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hjai' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_Func001Func002C takes nothing returns boolean
if ( ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I00B') == true ) ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I008') == true ) ) then
return true
endif
return false
endfunction
function Trig_Mage_Scepter_Func001C takes nothing returns boolean
if ( not Trig_Mage_Scepter_Func001Func002C() ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_Actions takes nothing returns nothing
if ( Trig_Mage_Scepter_Func001C() ) then
if ( Trig_Mage_Scepter_Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A019', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01I', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01B', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01H', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01A', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01J', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'AHbz', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01N', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'AHwe', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01P', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'AHab', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01O', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A00G', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01L', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A00F', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01M', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A00H', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01K', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_Func001Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'ANhw', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01Q', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'ANhx', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01S', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'Arsw', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01R', GetManipulatingUnit() )
else
call DoNothing( )
endif
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_Mage_Scepter takes nothing returns nothing
set gg_trg_Mage_Scepter = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mage_Scepter, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Mage_Scepter, Condition( function Trig_Mage_Scepter_Conditions ) )
call TriggerAddAction( gg_trg_Mage_Scepter, function Trig_Mage_Scepter_Actions )
endfunction
function Trig_Mage_Scepter_debug_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_debug_Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orkn' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_debug_Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_debug_Func001Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hjai' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_debug_Func001Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_debug_Func001Func003C takes nothing returns boolean
if ( ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I00B') == false ) ) then
return true
endif
if ( ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I008') == false ) ) then
return true
endif
return false
endfunction
function Trig_Mage_Scepter_debug_Func001C takes nothing returns boolean
if ( not Trig_Mage_Scepter_debug_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_debug_Actions takes nothing returns nothing
if ( Trig_Mage_Scepter_debug_Func001C() ) then
if ( Trig_Mage_Scepter_debug_Func001Func002C() ) then
call UnitRemoveAbilityBJ( 'A01I', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A019', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01H', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01B', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01J', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01A', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_debug_Func001Func002Func001C() ) then
call UnitRemoveAbilityBJ( 'A01N', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'AHbz', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01P', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'AHwe', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01O', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'AHab', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_debug_Func001Func002Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01L', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00G', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01M', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00F', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01K', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00H', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_debug_Func001Func002Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01Q', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'ANhw', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01S', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'ANhx', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01R', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'Arsw', GetManipulatingUnit() )
else
call DoNothing( )
endif
endif
endif
endif
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Mage_Scepter_debug takes nothing returns nothing
set gg_trg_Mage_Scepter_debug = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mage_Scepter_debug, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Mage_Scepter_debug, Condition( function Trig_Mage_Scepter_debug_Conditions ) )
call TriggerAddAction( gg_trg_Mage_Scepter_debug, function Trig_Mage_Scepter_debug_Actions )
endfunction
function Trig_Mage_Scepter_lvl_2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_Func002Func001Func002C takes nothing returns boolean
if ( not ( UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()) != GetManipulatedItem() ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_Func002Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) == GetItemTypeId(GetManipulatedItem()) ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Mage_Scepter_lvl_2_Func002Func001C() ) then
if ( Trig_Mage_Scepter_lvl_2_Func002Func001Func002C() ) then
call RemoveItem( GetManipulatedItem() )
call RemoveItem( UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA()) )
call UnitAddItemByIdSwapped( 'I00B', GetManipulatingUnit() )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Mage_Scepter_lvl_2 takes nothing returns nothing
set gg_trg_Mage_Scepter_lvl_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mage_Scepter_lvl_2, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Mage_Scepter_lvl_2, Condition( function Trig_Mage_Scepter_lvl_2_Conditions ) )
call TriggerAddAction( gg_trg_Mage_Scepter_lvl_2, function Trig_Mage_Scepter_lvl_2_Actions )
endfunction
function Trig_Mage_Scepter_lvl_2_sorts_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00B' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_sorts_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orkn' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_sorts_Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_sorts_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hjai' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_sorts_Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_sorts_Actions takes nothing returns nothing
if ( Trig_Mage_Scepter_lvl_2_sorts_Func001C() ) then
call UnitRemoveAbilityBJ( 'A01I', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A019', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02D', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01H', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01B', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02C', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01J', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01A', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02I', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_sorts_Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01N', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'AHbz', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A029', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01P', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'AHwe', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02B', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01O', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'AHab', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02A', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_sorts_Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01L', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A00G', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02J', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01M', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A00F', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02K', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01K', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A00H', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02H', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_sorts_Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A01Q', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'ANhw', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02F', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01S', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'ANhx', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02G', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A01R', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'Arsw', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A02E', GetManipulatingUnit() )
else
call DoNothing( )
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Mage_Scepter_lvl_2_sorts takes nothing returns nothing
set gg_trg_Mage_Scepter_lvl_2_sorts = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mage_Scepter_lvl_2_sorts, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Mage_Scepter_lvl_2_sorts, Condition( function Trig_Mage_Scepter_lvl_2_sorts_Conditions ) )
call TriggerAddAction( gg_trg_Mage_Scepter_lvl_2_sorts, function Trig_Mage_Scepter_lvl_2_sorts_Actions )
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00B' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orkn' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hjai' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I00B') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Orkn' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Uktl' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hjai' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetManipulatingUnit()) == 'Hblm' ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I008') == true ) ) then
return false
endif
return true
endfunction
function Trig_Mage_Scepter_lvl_2_debug_Actions takes nothing returns nothing
if ( Trig_Mage_Scepter_lvl_2_debug_Func001C() ) then
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func002C() ) then
call UnitRemoveAbilityBJ( 'A02D', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01I', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02C', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01H', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02I', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01J', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func002Func001C() ) then
call UnitRemoveAbilityBJ( 'A029', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01N', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02B', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01P', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02A', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01O', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func002Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A02J', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01L', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02K', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01M', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02H', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01K', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func002Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A02F', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01Q', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02G', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01S', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02E', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01R', GetManipulatingUnit() )
else
call DoNothing( )
endif
endif
endif
endif
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func001C() ) then
call DoNothing( )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A02D', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A019', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02C', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01B', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02I', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A01A', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A029', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'AHbz', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02B', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'AHwe', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02A', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'AHab', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A02J', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00G', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02K', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00F', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02H', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'A00H', GetManipulatingUnit() )
else
if ( Trig_Mage_Scepter_lvl_2_debug_Func001Func001Func001Func001Func001Func001C() ) then
call UnitRemoveAbilityBJ( 'A02F', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'ANhw', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02G', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'ANhx', GetManipulatingUnit() )
call UnitRemoveAbilityBJ( 'A02E', GetManipulatingUnit() )
call UnitAddAbilityBJ( 'Arsw', GetManipulatingUnit() )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Mage_Scepter_lvl_2_debug takes nothing returns nothing
set gg_trg_Mage_Scepter_lvl_2_debug = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Mage_Scepter_lvl_2_debug, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Mage_Scepter_lvl_2_debug, Condition( function Trig_Mage_Scepter_lvl_2_debug_Conditions ) )
call TriggerAddAction( gg_trg_Mage_Scepter_lvl_2_debug, function Trig_Mage_Scepter_lvl_2_debug_Actions )
endfunction
function Trig_Stack_Conditions takes nothing returns boolean
if ( not ( GetItemType(GetManipulatedItem()) == ITEM_TYPE_CHARGED ) ) then
return false
endif
return true
endfunction
function Trig_Stack_Func003Func001Func002C takes nothing returns boolean
if ( not ( UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()) != GetManipulatedItem() ) ) then
return false
endif
return true
endfunction
function Trig_Stack_Func003Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) == GetItemTypeId(GetManipulatedItem()) ) ) then
return false
endif
return true
endfunction
function Trig_Stack_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Stack_Func003Func001C() ) then
if ( Trig_Stack_Func003Func001Func002C() ) then
call SetItemCharges( UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()), ( GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) + GetItemCharges(GetManipulatedItem()) ) )
call RemoveItem( GetManipulatedItem() )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Stack takes nothing returns nothing
set gg_trg_Stack = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Stack, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Stack, Condition( function Trig_Stack_Conditions ) )
call TriggerAddAction( gg_trg_Stack, function Trig_Stack_Actions )
endfunction
function Trig_normal_Actions takes nothing returns nothing
call AddItemToStockBJ( 'I01E', gg_unit_h000_0000, 32, 32 )
call AddItemToStockBJ( 'I01F', gg_unit_h000_0000, 32, 32 )
endfunction
//===========================================================================
function InitTrig_normal takes nothing returns nothing
set gg_trg_normal = CreateTrigger( )
call TriggerAddAction( gg_trg_normal, function Trig_normal_Actions )
endfunction
function Trig_normal_great_Actions takes nothing returns nothing
call RemoveItemFromStockBJ( 'I01E', gg_unit_h000_0000 )
call RemoveItemFromStockBJ( 'I01F', gg_unit_h000_0000 )
call AddItemToStockBJ( 'I003', gg_unit_h000_0000, 32, 32 )
call AddItemToStockBJ( 'I004', gg_unit_h000_0000, 32, 32 )
endfunction
//===========================================================================
function InitTrig_normal_great takes nothing returns nothing
set gg_trg_normal_great = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_normal_great, 500.00 )
call TriggerAddAction( gg_trg_normal_great, function Trig_normal_great_Actions )
endfunction
function Trig_great_super_Actions takes nothing returns nothing
call RemoveItemFromStockBJ( 'I003', gg_unit_h000_0000 )
call RemoveItemFromStockBJ( 'I004', gg_unit_h000_0000 )
call AddItemToStockBJ( 'I005', gg_unit_h000_0000, 32, 32 )
call AddItemToStockBJ( 'I006', gg_unit_h000_0000, 32, 32 )
endfunction
//===========================================================================
function InitTrig_great_super takes nothing returns nothing
set gg_trg_great_super = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_great_super, 900.00 )
call TriggerAddAction( gg_trg_great_super, function Trig_great_super_Actions )
endfunction
function Trig_Fire_Cloak_lvl_2_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I000' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_Func002Func001Func002C takes nothing returns boolean
if ( not ( UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()) != GetManipulatedItem() ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_Func002Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) == GetItemTypeId(GetManipulatedItem()) ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Fire_Cloak_lvl_2_Func002Func001C() ) then
if ( Trig_Fire_Cloak_lvl_2_Func002Func001Func002C() ) then
call RemoveItem( GetManipulatedItem() )
call RemoveItem( UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA()) )
call UnitAddItemByIdSwapped( 'I00C', GetManipulatingUnit() )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Fire_Cloak_lvl_2 takes nothing returns nothing
set gg_trg_Fire_Cloak_lvl_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Cloak_lvl_2, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Fire_Cloak_lvl_2, Condition( function Trig_Fire_Cloak_lvl_2_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Cloak_lvl_2, function Trig_Fire_Cloak_lvl_2_Actions )
endfunction
function Trig_Fire_Cloak_lvl_2_anim_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00C' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_anim_Func001Func001Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'E005' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_anim_Func001Func001Func002C takes nothing returns boolean
if ( not ( UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()) != GetManipulatedItem() ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_anim_Func001Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) == GetItemTypeId(GetManipulatedItem()) ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_anim_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Fire_Cloak_lvl_2_anim_Func001Func001C() ) then
if ( Trig_Fire_Cloak_lvl_2_anim_Func001Func001Func002C() ) then
call DoNothing( )
else
if ( Trig_Fire_Cloak_lvl_2_anim_Func001Func001Func002Func001C() ) then
call AddSpecialEffectTargetUnitBJ( "right hand", GetManipulatingUnit(), "Abilities\\Weapons\\FireBallMissile\\FireBallMissile.mdl" )
set udg_Effetspecial_fire_cloaklvl2[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = GetLastCreatedEffectBJ()
else
call AddSpecialEffectTargetUnitBJ( "weapon", GetManipulatingUnit(), "Abilities\\Weapons\\FireBallMissile\\FireBallMissile.mdl" )
set udg_Effetspecial_fire_cloaklvl2[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = GetLastCreatedEffectBJ()
endif
endif
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Fire_Cloak_lvl_2_anim takes nothing returns nothing
set gg_trg_Fire_Cloak_lvl_2_anim = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Cloak_lvl_2_anim, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Fire_Cloak_lvl_2_anim, Condition( function Trig_Fire_Cloak_lvl_2_anim_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Cloak_lvl_2_anim, function Trig_Fire_Cloak_lvl_2_anim_Actions )
endfunction
function Trig_Fire_Cloak_lvl_2_anim_end_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I00C' ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_anim_end_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetManipulatingUnit(), 'I00C') == false ) ) then
return false
endif
return true
endfunction
function Trig_Fire_Cloak_lvl_2_anim_end_Actions takes nothing returns nothing
if ( Trig_Fire_Cloak_lvl_2_anim_end_Func001C() ) then
call DestroyEffectBJ( udg_Effetspecial_fire_cloaklvl2[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Fire_Cloak_lvl_2_anim_end takes nothing returns nothing
set gg_trg_Fire_Cloak_lvl_2_anim_end = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Cloak_lvl_2_anim_end, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Fire_Cloak_lvl_2_anim_end, Condition( function Trig_Fire_Cloak_lvl_2_anim_end_Conditions ) )
call TriggerAddAction( gg_trg_Fire_Cloak_lvl_2_anim_end, function Trig_Fire_Cloak_lvl_2_anim_end_Actions )
endfunction
function Trig_hex_rokhan_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ANhx' ) ) then
return false
endif
return true
endfunction
function Trig_hex_rokhan_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetSpellTargetUnit(), ( GetRandomReal(5.00, 15.00) * ( 0.01 * GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
//===========================================================================
function InitTrig_hex_rokhan takes nothing returns nothing
set gg_trg_hex_rokhan = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_hex_rokhan, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_hex_rokhan, Condition( function Trig_hex_rokhan_Conditions ) )
call TriggerAddAction( gg_trg_hex_rokhan, function Trig_hex_rokhan_Actions )
endfunction
function Trig_hex_rokhan_mage_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01S' ) ) then
return false
endif
return true
endfunction
function Trig_hex_rokhan_mage_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetSpellTargetUnit(), ( GetRandomReal(7.00, 17.00) * ( 0.01 * GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
//===========================================================================
function InitTrig_hex_rokhan_mage takes nothing returns nothing
set gg_trg_hex_rokhan_mage = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_hex_rokhan_mage, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_hex_rokhan_mage, Condition( function Trig_hex_rokhan_mage_Conditions ) )
call TriggerAddAction( gg_trg_hex_rokhan_mage, function Trig_hex_rokhan_mage_Actions )
endfunction
function Trig_hex_rokhan_mage_2_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01S' ) ) then
return false
endif
return true
endfunction
function Trig_hex_rokhan_mage_2_Actions takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetSpellTargetUnit(), ( GetRandomReal(9.00, 19.00) * ( 0.01 * GetUnitStateSwap(UNIT_STATE_LIFE, GetSpellTargetUnit()) ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_MAGIC )
endfunction
//===========================================================================
function InitTrig_hex_rokhan_mage_2 takes nothing returns nothing
set gg_trg_hex_rokhan_mage_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_hex_rokhan_mage_2, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_hex_rokhan_mage_2, Condition( function Trig_hex_rokhan_mage_2_Conditions ) )
call TriggerAddAction( gg_trg_hex_rokhan_mage_2, function Trig_hex_rokhan_mage_2_Actions )
endfunction
function Trig_holy_fire_uther_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01V' ) ) then
return false
endif
return true
endfunction
function Trig_holy_fire_uther_Func001Func001A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), -20.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DIVINE )
endfunction
function Trig_holy_fire_uther_Func001Func002001003 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetEnumPlayer() )
endfunction
function Trig_holy_fire_uther_Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), -100.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DIVINE )
endfunction
function Trig_holy_fire_uther_Func001Func003001003 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_holy_fire_uther_Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DIVINE )
endfunction
function Trig_holy_fire_uther_Func001A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetEnumPlayer()), function Trig_holy_fire_uther_Func001Func001A )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(150.00, GetSpellTargetLoc(), Condition(function Trig_holy_fire_uther_Func001Func002001003)), function Trig_holy_fire_uther_Func001Func002A )
call ForGroupBJ( GetUnitsInRangeOfLocMatching(150.00, GetSpellTargetLoc(), Condition(function Trig_holy_fire_uther_Func001Func003001003)), function Trig_holy_fire_uther_Func001Func003A )
endfunction
function Trig_holy_fire_uther_Actions takes nothing returns nothing
call ForForce( GetPlayersAllies(Player(0)), function Trig_holy_fire_uther_Func001A )
endfunction
//===========================================================================
function InitTrig_holy_fire_uther takes nothing returns nothing
set gg_trg_holy_fire_uther = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_holy_fire_uther, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_holy_fire_uther, Condition( function Trig_holy_fire_uther_Conditions ) )
call TriggerAddAction( gg_trg_holy_fire_uther, function Trig_holy_fire_uther_Actions )
endfunction
function Trig_dalarans_shield_uther_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01U' ) ) then
return false
endif
return true
endfunction
function Trig_dalarans_shield_uther_Func001Func001A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), -30.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DIVINE )
endfunction
function Trig_dalarans_shield_uther_Func001A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetEnumPlayer()), function Trig_dalarans_shield_uther_Func001Func001A )
endfunction
function Trig_dalarans_shield_uther_Actions takes nothing returns nothing
call ForForce( GetPlayersAllies(Player(0)), function Trig_dalarans_shield_uther_Func001A )
endfunction
//===========================================================================
function InitTrig_dalarans_shield_uther takes nothing returns nothing
set gg_trg_dalarans_shield_uther = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_dalarans_shield_uther, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_dalarans_shield_uther, Condition( function Trig_dalarans_shield_uther_Conditions ) )
call TriggerAddAction( gg_trg_dalarans_shield_uther, function Trig_dalarans_shield_uther_Actions )
endfunction
function Trig_dalarans_shield_uther_up_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A01X' ) ) then
return false
endif
return true
endfunction
function Trig_dalarans_shield_uther_up_Func001Func001A takes nothing returns nothing
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), -45.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_DIVINE )
endfunction
function Trig_dalarans_shield_uther_up_Func001A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetEnumPlayer()), function Trig_dalarans_shield_uther_up_Func001Func001A )
endfunction
function Trig_dalarans_shield_uther_up_Actions takes nothing returns nothing
call ForForce( GetPlayersAllies(Player(0)), function Trig_dalarans_shield_uther_up_Func001A )
endfunction
//===========================================================================
function InitTrig_dalarans_shield_uther_up takes nothing returns nothing
set gg_trg_dalarans_shield_uther_up = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_dalarans_shield_uther_up, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_dalarans_shield_uther_up, Condition( function Trig_dalarans_shield_uther_up_Conditions ) )
call TriggerAddAction( gg_trg_dalarans_shield_uther_up, function Trig_dalarans_shield_uther_up_Actions )
endfunction
function Trig_blink_pa_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AEbl' ) ) then
return false
endif
return true
endfunction
function Trig_blink_pa_Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_blink_pa_Func003Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnumUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_blink_pa_Func003A takes nothing returns nothing
if ( Trig_blink_pa_Func003Func001C() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endfunction
function Trig_blink_pa_Func005Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnumUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_blink_pa_Func005A takes nothing returns nothing
if ( Trig_blink_pa_Func005Func001C() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endfunction
function Trig_blink_pa_Func007C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_blink_pa_Actions takes nothing returns nothing
call SetUnitColor( GetTriggerUnit(), ConvertPlayerColor(12) )
if ( Trig_blink_pa_Func002C() ) then
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 90.00 )
else
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 70.00 )
endif
call ForGroupBJ( GetUnitsInRangeOfLocAll(150.00, GetUnitLoc(GetTriggerUnit())), function Trig_blink_pa_Func003A )
call TriggerSleepAction( 0.38 )
call ForGroupBJ( GetUnitsInRangeOfLocAll(150.00, GetUnitLoc(GetTriggerUnit())), function Trig_blink_pa_Func005A )
call TriggerSleepAction( 0.42 )
if ( Trig_blink_pa_Func007C() ) then
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 55.00 )
else
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 40.00 )
endif
call SetUnitColor( GetTriggerUnit(), GetPlayerColor(GetOwningPlayer(GetTriggerUnit())) )
endfunction
//===========================================================================
function InitTrig_blink_pa takes nothing returns nothing
set gg_trg_blink_pa = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_blink_pa, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_blink_pa, Condition( function Trig_blink_pa_Conditions ) )
call TriggerAddAction( gg_trg_blink_pa, function Trig_blink_pa_Actions )
endfunction
function Trig_fan_of_knife_pa_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'AEfk' ) ) then
return false
endif
return true
endfunction
function Trig_fan_of_knife_pa_Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_fan_of_knife_pa_Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_fan_of_knife_pa_Actions takes nothing returns nothing
call SetUnitColor( GetTriggerUnit(), ConvertPlayerColor(12) )
if ( Trig_fan_of_knife_pa_Func002C() ) then
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 95.00 )
else
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 80.00 )
endif
call TriggerSleepAction( 0.40 )
if ( Trig_fan_of_knife_pa_Func004C() ) then
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 55.00 )
else
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 40.00 )
endif
call SetUnitColor( GetTriggerUnit(), GetPlayerColor(GetOwningPlayer(GetTriggerUnit())) )
endfunction
//===========================================================================
function InitTrig_fan_of_knife_pa takes nothing returns nothing
set gg_trg_fan_of_knife_pa = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_fan_of_knife_pa, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_fan_of_knife_pa, Condition( function Trig_fan_of_knife_pa_Conditions ) )
call TriggerAddAction( gg_trg_fan_of_knife_pa, function Trig_fan_of_knife_pa_Actions )
endfunction
function Trig_battle_roar_rexxar_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A00M' ) ) then
return false
endif
return true
endfunction
function Trig_battle_roar_rexxar_Actions takes nothing returns nothing
call SetUnitScalePercent( GetTriggerUnit(), 110.00, 110.00, 110.00 )
call SetUnitTimeScalePercent( GetTriggerUnit(), 125.00 )
call TriggerSleepAction( 15.00 )
call SetUnitScalePercent( GetTriggerUnit(), 100.00, 100.00, 100.00 )
call SetUnitTimeScalePercent( GetTriggerUnit(), 100.00 )
endfunction
//===========================================================================
function InitTrig_battle_roar_rexxar takes nothing returns nothing
set gg_trg_battle_roar_rexxar = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_battle_roar_rexxar, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_battle_roar_rexxar, Condition( function Trig_battle_roar_rexxar_Conditions ) )
call TriggerAddAction( gg_trg_battle_roar_rexxar, function Trig_battle_roar_rexxar_Actions )
endfunction
function Trig_chemical_rage_alchemist_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'ANcr' ) ) then
return false
endif
return true
endfunction
function Trig_chemical_rage_alchemist_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_chemical_rage_alchemist_Func041C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetTriggerUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_chemical_rage_alchemist_Actions takes nothing returns nothing
if ( Trig_chemical_rage_alchemist_Func001C() ) then
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 30.00 )
call SetUnitPathing( GetTriggerUnit(), false )
else
call DoNothing( )
endif
call SetUnitScalePercent( GetTriggerUnit(), 102.50, 102.50, 102.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 105.00, 105.00, 105.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 107.50, 107.50, 107.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 110.00, 110.00, 110.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 112.50, 112.50, 112.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 115.00, 115.00, 115.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 117.50, 117.50, 117.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 120.00, 120.00, 120.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 122.50, 122.50, 122.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 125.00, 125.00, 125.00 )
call TriggerSleepAction( 13.90 )
call SetUnitScalePercent( GetTriggerUnit(), 122.50, 122.50, 122.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 120.00, 120.00, 120.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 117.50, 117.50, 117.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 115.00, 115.00, 115.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 112.50, 112.50, 112.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 110.00, 110.00, 110.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 107.50, 107.50, 107.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 105.00, 105.00, 105.00 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 102.50, 102.50, 102.50 )
call TriggerSleepAction( 0.05 )
call SetUnitScalePercent( GetTriggerUnit(), 100.00, 100.00, 100.00 )
if ( Trig_chemical_rage_alchemist_Func041C() ) then
call SetUnitVertexColorBJ( GetTriggerUnit(), 100, 100, 100, 30.00 )
call SetUnitPathing( GetTriggerUnit(), false )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_chemical_rage_alchemist takes nothing returns nothing
set gg_trg_chemical_rage_alchemist = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_chemical_rage_alchemist, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_chemical_rage_alchemist, Condition( function Trig_chemical_rage_alchemist_Conditions ) )
call TriggerAddAction( gg_trg_chemical_rage_alchemist, function Trig_chemical_rage_alchemist_Actions )
endfunction
function Trig_blink_er_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A028' ) ) then
return false
endif
return true
endfunction
function Trig_blink_er_Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnumUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_blink_er_Func001A takes nothing returns nothing
if ( Trig_blink_er_Func001Func001C() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endfunction
function Trig_blink_er_Func003Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnumUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_blink_er_Func003A takes nothing returns nothing
if ( Trig_blink_er_Func003Func001C() ) then
call UnitDamageTargetBJ( GetTriggerUnit(), GetEnumUnit(), 50.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
call DoNothing( )
endif
endfunction
function Trig_blink_er_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(150.00, GetUnitLoc(GetTriggerUnit())), function Trig_blink_er_Func001A )
call TriggerSleepAction( 0.38 )
call ForGroupBJ( GetUnitsInRangeOfLocAll(150.00, GetUnitLoc(GetTriggerUnit())), function Trig_blink_er_Func003A )
endfunction
//===========================================================================
function InitTrig_blink_er takes nothing returns nothing
set gg_trg_blink_er = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_blink_er, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_blink_er, Condition( function Trig_blink_er_Conditions ) )
call TriggerAddAction( gg_trg_blink_er, function Trig_blink_er_Actions )
endfunction
function Trig_pa_transparence_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'Ewar' ) ) then
return false
endif
return true
endfunction
function Trig_pa_transparence_Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetEnteringUnit(), 'I01I') == true ) ) then
return false
endif
return true
endfunction
function Trig_pa_transparence_Actions takes nothing returns nothing
if ( Trig_pa_transparence_Func001C() ) then
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 55.00 )
call SetUnitPathing( GetTriggerUnit(), false )
else
call SetUnitVertexColorBJ( GetEnteringUnit(), 100, 100, 100, 40.00 )
endif
endfunction
//===========================================================================
function InitTrig_pa_transparence takes nothing returns nothing
set gg_trg_pa_transparence = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_pa_transparence, gg_rct_arena )
call TriggerAddCondition( gg_trg_pa_transparence, Condition( function Trig_pa_transparence_Conditions ) )
call TriggerAddAction( gg_trg_pa_transparence, function Trig_pa_transparence_Actions )
endfunction
function Trig_All_Random_Repick_Func001001002001 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_All_Random_Repick_Func001001002002 takes nothing returns boolean
return ( GetFilterUnit() != gg_unit_h000_0000 )
endfunction
function Trig_All_Random_Repick_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_All_Random_Repick_Func001001002001(), Trig_All_Random_Repick_Func001001002002() )
endfunction
function Trig_All_Random_Repick_Func001A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Func003C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Repick_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_All_Random_Repick_Func001001002)), function Trig_All_Random_Repick_Func001A )
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], GetTriggerPlayer(), GetPlayerStartLocationLoc(GetTriggerPlayer()), bj_UNIT_FACING )
if ( Trig_All_Random_Repick_Func003C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Repick_Func003Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Repick_Func003Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Repick_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_All_Random_Repick takes nothing returns nothing
set gg_trg_All_Random_Repick = CreateTrigger( )
call DisableTrigger( gg_trg_All_Random_Repick )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(0), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(1), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(2), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(3), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(4), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(5), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(6), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(7), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(8), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(9), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(10), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random_Repick, Player(11), "-repick", true )
call TriggerAddAction( gg_trg_All_Random_Repick, function Trig_All_Random_Repick_Actions )
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func001C takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func002C takes nothing returns boolean
if ( not ( GetPlayerController(Player(1)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func003C takes nothing returns boolean
if ( not ( GetPlayerController(Player(2)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func004C takes nothing returns boolean
if ( not ( GetPlayerController(Player(3)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func005C takes nothing returns boolean
if ( not ( GetPlayerController(Player(4)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func006C takes nothing returns boolean
if ( not ( GetPlayerController(Player(5)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func007C takes nothing returns boolean
if ( not ( GetPlayerController(Player(6)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func008C takes nothing returns boolean
if ( not ( GetPlayerController(Player(7)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func009C takes nothing returns boolean
if ( not ( GetPlayerController(Player(8)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func010C takes nothing returns boolean
if ( not ( GetPlayerController(Player(9)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(9)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func011C takes nothing returns boolean
if ( not ( GetPlayerController(Player(10)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(10)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[14] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[12] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[11] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[10] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[9] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[8] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[7] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[6] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[5] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[4] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[3] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[2] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[1] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012Func002C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLastCreatedUnit()) == udg_Random_Hero[13] ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Func012C takes nothing returns boolean
if ( not ( GetPlayerController(Player(11)) == MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(11)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_All_Random_Heroes_Actions takes nothing returns nothing
if ( Trig_All_Random_Heroes_Func001C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(0), GetPlayerStartLocationLoc(Player(0)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func001Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func002C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(1), GetPlayerStartLocationLoc(Player(1)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func002Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func002Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func003C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(2), GetPlayerStartLocationLoc(Player(2)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func003Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func003Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func004C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(3), GetPlayerStartLocationLoc(Player(3)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func004Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func004Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func005C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(4), GetPlayerStartLocationLoc(Player(4)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func005Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func005Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func006C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(5), GetPlayerStartLocationLoc(Player(5)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func006Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func006Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func007C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(6), GetPlayerStartLocationLoc(Player(6)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func007Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func007Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func008C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(7), GetPlayerStartLocationLoc(Player(7)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func008Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func008Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func009C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(8), GetPlayerStartLocationLoc(Player(8)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func009Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func009Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func010C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(9), GetPlayerStartLocationLoc(Player(9)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func010Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func010Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func011C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(10), GetPlayerStartLocationLoc(Player(10)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func011Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func011Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
if ( Trig_All_Random_Heroes_Func012C() ) then
call CreateNUnitsAtLoc( 1, udg_Random_Hero[GetRandomInt(1, 14)], Player(11), GetPlayerStartLocationLoc(Player(11)), bj_UNIT_FACING )
if ( Trig_All_Random_Heroes_Func012Func002C() ) then
set udg_Random_Hero[13] = udg_Random_Hero[14]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001C() ) then
set udg_Random_Hero[1] = udg_Random_Hero[2]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001C() ) then
set udg_Random_Hero[2] = udg_Random_Hero[3]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001C() ) then
set udg_Random_Hero[3] = udg_Random_Hero[4]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001C() ) then
set udg_Random_Hero[4] = udg_Random_Hero[5]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[5] = udg_Random_Hero[6]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[6] = udg_Random_Hero[7]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[7] = udg_Random_Hero[8]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[8] = udg_Random_Hero[9]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[9] = udg_Random_Hero[10]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[10] = udg_Random_Hero[11]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[11] = udg_Random_Hero[12]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[12] = udg_Random_Hero[13]
else
if ( Trig_All_Random_Heroes_Func012Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
set udg_Random_Hero[14] = udg_Random_Hero[1]
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
call EnableTrigger( gg_trg_All_Random_Repick )
endfunction
//===========================================================================
function InitTrig_All_Random_Heroes takes nothing returns nothing
set gg_trg_All_Random_Heroes = CreateTrigger( )
call DisableTrigger( gg_trg_All_Random_Heroes )
call TriggerRegisterTimerEventSingle( gg_trg_All_Random_Heroes, 10.00 )
call TriggerAddAction( gg_trg_All_Random_Heroes, function Trig_All_Random_Heroes_Actions )
endfunction
function Trig_All_Random_Func016001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'ewsp' )
endfunction
function Trig_All_Random_Func016A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_All_Random_Func021A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 0 )
endfunction
function Trig_All_Random_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Tavernes )
set udg_Random_Hero[1] = 'Hblm'
set udg_Random_Hero[2] = 'Hjai'
set udg_Random_Hero[3] = 'Otch'
set udg_Random_Hero[4] = 'Obla'
set udg_Random_Hero[5] = 'Orex'
set udg_Random_Hero[6] = 'Orkn'
set udg_Random_Hero[7] = 'H00P'
set udg_Random_Hero[8] = 'Ucrl'
set udg_Random_Hero[9] = 'Uktl'
set udg_Random_Hero[10] = 'Ewar'
set udg_Random_Hero[11] = 'Nalc'
set udg_Random_Hero[12] = 'Nbrn'
set udg_Random_Hero[13] = 'Hmkg'
set udg_Random_Hero[14] = 'E005'
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_All_Random_Func016001002)), function Trig_All_Random_Func016A )
call EnableTrigger( gg_trg_All_Random_Heroes )
call DisableTrigger( gg_trg_Double_Hero_Mode )
call DisableTrigger( gg_trg_Triple_Hero_Mode )
call DisableTrigger( gg_trg_repick )
call ForForce( GetPlayersAll(), function Trig_All_Random_Func021A )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1018" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_All_Random takes nothing returns nothing
set gg_trg_All_Random = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Random, Player(0), "-ar", true )
call TriggerAddAction( gg_trg_All_Random, function Trig_All_Random_Actions )
endfunction
function Trig_Double_Hero_Mode_Func001002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 2 )
endfunction
function Trig_Double_Hero_Mode_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Double_Hero_Mode_Func001002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_625" )
call DisableTrigger( gg_trg_repick )
call DisableTrigger( gg_trg_Triple_Hero_Mode )
call DisableTrigger( gg_trg_All_Random )
endfunction
//===========================================================================
function InitTrig_Double_Hero_Mode takes nothing returns nothing
set gg_trg_Double_Hero_Mode = CreateTrigger( )
call DisableTrigger( gg_trg_Double_Hero_Mode )
call TriggerRegisterPlayerChatEvent( gg_trg_Double_Hero_Mode, Player(0), "-dh", true )
call TriggerAddAction( gg_trg_Double_Hero_Mode, function Trig_Double_Hero_Mode_Actions )
endfunction
function Trig_Triple_Hero_Mode_Func001002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 3 )
endfunction
function Trig_Triple_Hero_Mode_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Triple_Hero_Mode_Func001002 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_626" )
call DisableTrigger( gg_trg_repick )
call DisableTrigger( gg_trg_All_Random )
call DisableTrigger( gg_trg_Double_Hero_Mode )
endfunction
//===========================================================================
function InitTrig_Triple_Hero_Mode takes nothing returns nothing
set gg_trg_Triple_Hero_Mode = CreateTrigger( )
call DisableTrigger( gg_trg_Triple_Hero_Mode )
call TriggerRegisterPlayerChatEvent( gg_trg_Triple_Hero_Mode, Player(0), "-th", true )
call TriggerAddAction( gg_trg_Triple_Hero_Mode, function Trig_Triple_Hero_Mode_Actions )
endfunction
function Trig_Elimination_Mode_5_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1253" )
call EnableTrigger( gg_trg_Elimination_5 )
call EnableTrigger( gg_trg_Duel )
call DisableTrigger( gg_trg_Elimination_10 )
endfunction
//===========================================================================
function InitTrig_Elimination_Mode_5 takes nothing returns nothing
set gg_trg_Elimination_Mode_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Elimination_Mode_5, Player(0), "-em 5", true )
call TriggerAddAction( gg_trg_Elimination_Mode_5, function Trig_Elimination_Mode_5_Actions )
endfunction
function Trig_Elimination_Mode_10_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1276" )
call EnableTrigger( gg_trg_Elimination_10 )
call EnableTrigger( gg_trg_Duel )
call DisableTrigger( gg_trg_Elimination_5 )
endfunction
//===========================================================================
function InitTrig_Elimination_Mode_10 takes nothing returns nothing
set gg_trg_Elimination_Mode_10 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Elimination_Mode_10, Player(0), "-em 10", true )
call TriggerAddAction( gg_trg_Elimination_Mode_10, function Trig_Elimination_Mode_10_Actions )
endfunction
function Trig_Elimination_Mode_with_Death_5_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1277" )
call EnableTrigger( gg_trg_Elimination_5 )
call EnableTrigger( gg_trg_Death )
call EnableTrigger( gg_trg_Duel )
call DisableTrigger( gg_trg_Elimination_Mode_5 )
call DisableTrigger( gg_trg_Elimination_Mode_10 )
call DisableTrigger( gg_trg_Elimination_10 )
call DisableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Slow_Respawn_Mode )
call DisableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_Not_Any_Respawn_Mode )
call DisableTrigger( gg_trg_Normal_Respawn_Mode )
call DisableTrigger( gg_trg_Very_Slow_Respawn_Mode )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
call DisableTrigger( gg_trg_Fast_Respawn_Mode )
call DisableTrigger( gg_trg_Fast_Respawn )
endfunction
//===========================================================================
function InitTrig_Elimination_Mode_with_Death_5 takes nothing returns nothing
set gg_trg_Elimination_Mode_with_Death_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Elimination_Mode_with_Death_5, Player(0), "-emd 5", true )
call TriggerAddAction( gg_trg_Elimination_Mode_with_Death_5, function Trig_Elimination_Mode_with_Death_5_Actions )
endfunction
function Trig_Elimination_Mode_with_Death_10_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1278" )
call EnableTrigger( gg_trg_Elimination_10 )
call EnableTrigger( gg_trg_Death )
call EnableTrigger( gg_trg_Duel )
call DisableTrigger( gg_trg_Elimination_Mode_5 )
call DisableTrigger( gg_trg_Elimination_Mode_5 )
call DisableTrigger( gg_trg_Elimination_5 )
call DisableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Slow_Respawn_Mode )
call DisableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_Not_Any_Respawn_Mode )
call DisableTrigger( gg_trg_Normal_Respawn_Mode )
call DisableTrigger( gg_trg_Very_Slow_Respawn_Mode )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
call DisableTrigger( gg_trg_Fast_Respawn_Mode )
call DisableTrigger( gg_trg_Fast_Respawn )
endfunction
//===========================================================================
function InitTrig_Elimination_Mode_with_Death_10 takes nothing returns nothing
set gg_trg_Elimination_Mode_with_Death_10 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Elimination_Mode_with_Death_10, Player(0), "-emd 10", true )
call TriggerAddAction( gg_trg_Elimination_Mode_with_Death_10, function Trig_Elimination_Mode_with_Death_10_Actions )
endfunction
function Trig_Duel_Conditions takes nothing returns boolean
if ( not ( udg_Duel_Oui_Non_Boolean == true ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(11) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(11)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(10) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(10)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(9) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(9)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(8) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(8)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(7) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(7)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(6) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(6)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(5) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(5)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(4) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(4)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(3) )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(3)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func002001002001(), Trig_Duel_Func002Func001Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(2) )
endfunction
function Trig_Duel_Func002Func001Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func001Func003001002001(), Trig_Duel_Func002Func001Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(2)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func001Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func002001002001(), Trig_Duel_Func002Func001Func002001002002() )
endfunction
function Trig_Duel_Func002Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func001Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(1) )
endfunction
function Trig_Duel_Func002Func001Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func001Func003001002001(), Trig_Duel_Func002Func001Func003001002002() )
endfunction
function Trig_Duel_Func002Func001Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func001C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(1)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Func002Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == GetTriggerPlayer() )
endfunction
function Trig_Duel_Func002Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func002001002001(), Trig_Duel_Func002Func002001002002() )
endfunction
function Trig_Duel_Func002Func002A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_aggresseur) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002Func003001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Duel_Func002Func003001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) == Player(0) )
endfunction
function Trig_Duel_Func002Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Duel_Func002Func003001002001(), Trig_Duel_Func002Func003001002002() )
endfunction
function Trig_Duel_Func002Func003A takes nothing returns nothing
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_agresse) )
call PauseUnitBJ( true, GetEnumUnit() )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetUnitLoc(GetEnumUnit()), 1.00 )
call SelectUnitForPlayerSingle( GetEnumUnit(), GetOwningPlayer(GetEnumUnit()) )
endfunction
function Trig_Duel_Func002C takes nothing returns boolean
if ( not ( ( "-duel " + GetPlayerName(Player(0)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Duel_Actions takes nothing returns nothing
if ( Trig_Duel_Func002C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func002001002)), function Trig_Duel_Func002Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func003001002)), function Trig_Duel_Func002Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(0), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(0)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func002001002)), function Trig_Duel_Func002Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func003001002)), function Trig_Duel_Func002Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(1), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(1), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(1)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(2), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(2), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(2)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(3), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(3), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(3)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(4), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(4), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(4)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(5), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(5), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(5)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(6), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(6), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(6)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(7), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(7), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(7)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(8), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(8), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(8)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(9), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(9), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(9)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func003A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(10), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(10), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(10)) + " !" ) ) ) )
else
if ( Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001002)), function Trig_Duel_Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002A )
set udg_Duel_Oui_Non_Boolean = false
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(11), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(11), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " want make a duel VS " + ( GetPlayerName(Player(11)) + " !" ) ) ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call TriggerSleepAction( 5.00 )
call PauseAllUnitsBJ( false )
call EnableTrigger( gg_trg_DuelMort )
endfunction
//===========================================================================
function InitTrig_Duel takes nothing returns nothing
set gg_trg_Duel = CreateTrigger( )
call DisableTrigger( gg_trg_Duel )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(0), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(1), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(2), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(3), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(4), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(5), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(6), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(7), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(8), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(9), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(10), "-duel", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Duel, Player(11), "-duel", false )
call TriggerAddCondition( gg_trg_Duel, Condition( function Trig_Duel_Conditions ) )
call TriggerAddAction( gg_trg_Duel, function Trig_Duel_Actions )
endfunction
function Trig_DuelMort_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( RectContainsUnit(gg_rct_duel_arena, GetDyingUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_DuelMort_Func011Func001C takes nothing returns boolean
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_DuelMort_Func011A takes nothing returns nothing
if ( Trig_DuelMort_Func011Func001C() ) then
call SetUnitPositionLoc( GetEnumUnit(), GetRectCenter(gg_rct_respawn) )
else
endif
endfunction
function Trig_DuelMort_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + ( " has kill " + ( GetPlayerName(GetOwningPlayer(GetDyingUnit())) + " in the duel arena for gain 10% of the gold and 10% of the kills of his adversary !" ) ) ) )
call AdjustPlayerStateBJ( ( GetPlayerState(GetOwningPlayer(GetDyingUnit()), PLAYER_STATE_RESOURCE_GOLD) / 10 ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( ( GetPlayerState(GetOwningPlayer(GetDyingUnit()), PLAYER_STATE_RESOURCE_GOLD) / -10 ), GetOwningPlayer(GetDyingUnit()), PLAYER_STATE_RESOURCE_GOLD )
set udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] = ( ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] / 10 ) + udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetKillingUnitBJ()), GetLastCreatedLeaderboard(), udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] )
set udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] = ( ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] * 9 ) / 10 )
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetDyingUnit()), GetLastCreatedLeaderboard(), udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))] )
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetDyingUnit()), GetOwningPlayer(GetKillingUnitBJ()), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( GetOwningPlayer(GetKillingUnitBJ()), GetOwningPlayer(GetDyingUnit()), bj_ALLIANCE_ALLIED_VISION )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_duel_arena), function Trig_DuelMort_Func011A )
call TriggerSleepAction( 60.00 )
set udg_Duel_Oui_Non_Boolean = true
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_DuelMort takes nothing returns nothing
set gg_trg_DuelMort = CreateTrigger( )
call DisableTrigger( gg_trg_DuelMort )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DuelMort, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_DuelMort, Condition( function Trig_DuelMort_Conditions ) )
call TriggerAddAction( gg_trg_DuelMort, function Trig_DuelMort_Actions )
endfunction
function Trig_Death_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Death_Func001Func001C takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == GetEnumPlayer() ) ) then
return false
endif
return true
endfunction
function Trig_Death_Func001A takes nothing returns nothing
if ( Trig_Death_Func001Func001C() ) then
call CustomDefeatBJ( GetOwningPlayer(GetDyingUnit()), "TRIGSTR_1279" )
else
endif
endfunction
function Trig_Death_Actions takes nothing returns nothing
call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_Death_Func001A )
endfunction
//===========================================================================
function InitTrig_Death takes nothing returns nothing
set gg_trg_Death = CreateTrigger( )
call DisableTrigger( gg_trg_Death )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Death, Condition( function Trig_Death_Conditions ) )
call TriggerAddAction( gg_trg_Death, function Trig_Death_Actions )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001))) == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 11 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func002001001001))) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func001Func002001001001))) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func001Func002001001001))) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func001Func002001001001))) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func001Func002001001001001(), Trig_Elimination_5_Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func001Func002001001001))) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_5_Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_5_Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_5_Func001Func002001001001001(), Trig_Elimination_5_Func001Func002001001001002() )
endfunction
function Trig_Elimination_5_Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_5_Func001Func002001001001))) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_5_Actions takes nothing returns nothing
if ( Trig_Elimination_5_Func001C() ) then
call CustomVictoryBJ( LeaderboardGetIndexedPlayerBJ(1, GetLastCreatedLeaderboard()), true, true )
else
if ( Trig_Elimination_5_Func001Func001C() ) then
call CustomVictoryBJ( LeaderboardGetIndexedPlayerBJ(1, GetLastCreatedLeaderboard()), true, true )
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(2, GetLastCreatedLeaderboard()), "TRIGSTR_1254" )
else
if ( Trig_Elimination_5_Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(3, GetLastCreatedLeaderboard()), "TRIGSTR_1256" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(4, GetLastCreatedLeaderboard()), "TRIGSTR_1255" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(5, GetLastCreatedLeaderboard()), "TRIGSTR_1260" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(6, GetLastCreatedLeaderboard()), "TRIGSTR_1259" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(7, GetLastCreatedLeaderboard()), "TRIGSTR_1258" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(8, GetLastCreatedLeaderboard()), "TRIGSTR_1257" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(9, GetLastCreatedLeaderboard()), "TRIGSTR_1264" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(10, GetLastCreatedLeaderboard()), "TRIGSTR_1263" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(11, GetLastCreatedLeaderboard()), "TRIGSTR_1262" )
else
if ( Trig_Elimination_5_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(12, GetLastCreatedLeaderboard()), "TRIGSTR_1261" )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Elimination_5 takes nothing returns nothing
set gg_trg_Elimination_5 = CreateTrigger( )
call DisableTrigger( gg_trg_Elimination_5 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Elimination_5, 300.00 )
call TriggerAddAction( gg_trg_Elimination_5, function Trig_Elimination_5_Actions )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001001001001))) == 12 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 11 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func002001001001))) == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func002001001001))) == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func001Func002001001001))) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func001Func002001001001))) == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func001Func002001001001))) == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func001Func002001001001001(), Trig_Elimination_10_Func001Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func001Func002001001001))) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Func001Func002001001001001 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Elimination_10_Func001Func002001001001002 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Elimination_10_Func001Func002001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Elimination_10_Func001Func002001001001001(), Trig_Elimination_10_Func001Func002001001001002() )
endfunction
function Trig_Elimination_10_Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Elimination_10_Func001Func002001001001))) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Elimination_10_Actions takes nothing returns nothing
if ( Trig_Elimination_10_Func001C() ) then
call CustomVictoryBJ( LeaderboardGetIndexedPlayerBJ(1, GetLastCreatedLeaderboard()), true, true )
else
if ( Trig_Elimination_10_Func001Func001C() ) then
call CustomVictoryBJ( LeaderboardGetIndexedPlayerBJ(1, GetLastCreatedLeaderboard()), true, true )
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(2, GetLastCreatedLeaderboard()), "TRIGSTR_1275" )
else
if ( Trig_Elimination_10_Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(3, GetLastCreatedLeaderboard()), "TRIGSTR_1274" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(4, GetLastCreatedLeaderboard()), "TRIGSTR_1273" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(5, GetLastCreatedLeaderboard()), "TRIGSTR_1272" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(6, GetLastCreatedLeaderboard()), "TRIGSTR_1271" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(7, GetLastCreatedLeaderboard()), "TRIGSTR_1270" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(8, GetLastCreatedLeaderboard()), "TRIGSTR_1269" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(9, GetLastCreatedLeaderboard()), "TRIGSTR_1268" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(10, GetLastCreatedLeaderboard()), "TRIGSTR_1267" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(11, GetLastCreatedLeaderboard()), "TRIGSTR_1266" )
else
if ( Trig_Elimination_10_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( LeaderboardGetIndexedPlayerBJ(12, GetLastCreatedLeaderboard()), "TRIGSTR_1265" )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Elimination_10 takes nothing returns nothing
set gg_trg_Elimination_10 = CreateTrigger( )
call DisableTrigger( gg_trg_Elimination_10 )
call TriggerRegisterTimerEventPeriodic( gg_trg_Elimination_10, 600.00 )
call TriggerAddAction( gg_trg_Elimination_10, function Trig_Elimination_10_Actions )
endfunction
function Trig_player_1_Func007A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 1000 )
endfunction
function Trig_player_1_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1055" )
call EnableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call ForForce( GetPlayersAll(), function Trig_player_1_Func007A )
call DisableTrigger( gg_trg_Super_Base_Gold_Mode )
call DisableTrigger( gg_trg_Base_Gold_Mode )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call EnableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_player_1 takes nothing returns nothing
set gg_trg_player_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_1, Player(0), "-1p", true )
call TriggerAddAction( gg_trg_player_1, function Trig_player_1_Actions )
endfunction
function Trig_player_2_Func007A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 750 )
endfunction
function Trig_player_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1056" )
call EnableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call ForForce( GetPlayersAll(), function Trig_player_2_Func007A )
call DisableTrigger( gg_trg_Base_Gold_Mode )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call EnableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_player_2 takes nothing returns nothing
set gg_trg_player_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_2, Player(0), "-2p", true )
call TriggerAddAction( gg_trg_player_2, function Trig_player_2_Actions )
endfunction
function Trig_player_3_Func007A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 500 )
endfunction
function Trig_player_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1057" )
call EnableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call ForForce( GetPlayersAll(), function Trig_player_3_Func007A )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call EnableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_player_3 takes nothing returns nothing
set gg_trg_player_3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_3, Player(0), "-3p", true )
call TriggerAddAction( gg_trg_player_3, function Trig_player_3_Actions )
endfunction
function Trig_player_4_Func007A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 250 )
endfunction
function Trig_player_4_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1058" )
call EnableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call ForForce( GetPlayersAll(), function Trig_player_4_Func007A )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_player_4 takes nothing returns nothing
set gg_trg_player_4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_4, Player(0), "-4p", true )
call TriggerAddAction( gg_trg_player_4, function Trig_player_4_Actions )
endfunction
function Trig_player_5_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1059" )
call EnableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_player_5 takes nothing returns nothing
set gg_trg_player_5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_5, Player(0), "-5p", true )
call TriggerAddAction( gg_trg_player_5, function Trig_player_5_Actions )
endfunction
function Trig_player_6_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1060" )
call EnableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_player_6 takes nothing returns nothing
set gg_trg_player_6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_6, Player(0), "-6p", true )
call TriggerAddAction( gg_trg_player_6, function Trig_player_6_Actions )
endfunction
function Trig_player_7_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1061" )
call EnableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 125.00 )
endfunction
//===========================================================================
function InitTrig_player_7 takes nothing returns nothing
set gg_trg_player_7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_7, Player(0), "-7p", true )
call TriggerAddAction( gg_trg_player_7, function Trig_player_7_Actions )
endfunction
function Trig_player_8_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1062" )
call EnableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 125.00 )
endfunction
//===========================================================================
function InitTrig_player_8 takes nothing returns nothing
set gg_trg_player_8 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_8, Player(0), "-8p", true )
call TriggerAddAction( gg_trg_player_8, function Trig_player_8_Actions )
endfunction
function Trig_player_9_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1063" )
call EnableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 150.00 )
endfunction
//===========================================================================
function InitTrig_player_9 takes nothing returns nothing
set gg_trg_player_9 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_9, Player(0), "-9p", true )
call TriggerAddAction( gg_trg_player_9, function Trig_player_9_Actions )
endfunction
function Trig_player_10_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1064" )
call EnableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 150.00 )
endfunction
//===========================================================================
function InitTrig_player_10 takes nothing returns nothing
set gg_trg_player_10 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_10, Player(0), "-10p", true )
call TriggerAddAction( gg_trg_player_10, function Trig_player_10_Actions )
endfunction
function Trig_player_11_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1065" )
call EnableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 175.00 )
endfunction
//===========================================================================
function InitTrig_player_11 takes nothing returns nothing
set gg_trg_player_11 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_11, Player(0), "-11p", true )
call TriggerAddAction( gg_trg_player_11, function Trig_player_11_Actions )
endfunction
function Trig_player_12_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1066" )
call EnableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 175.00 )
endfunction
//===========================================================================
function InitTrig_player_12 takes nothing returns nothing
set gg_trg_player_12 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_player_12, Player(0), "-12p", true )
call TriggerAddAction( gg_trg_player_12, function Trig_player_12_Actions )
endfunction
function Trig_Very_Easy_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 50.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_594" )
endfunction
//===========================================================================
function InitTrig_Very_Easy_Mode takes nothing returns nothing
set gg_trg_Very_Easy_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Very_Easy_Mode, Player(0), "-vem", true )
call TriggerAddAction( gg_trg_Very_Easy_Mode, function Trig_Very_Easy_Mode_Actions )
endfunction
function Trig_Easy_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 75.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_593" )
endfunction
//===========================================================================
function InitTrig_Easy_Mode takes nothing returns nothing
set gg_trg_Easy_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Easy_Mode, Player(0), "-em", true )
call TriggerAddAction( gg_trg_Easy_Mode, function Trig_Easy_Mode_Actions )
endfunction
function Trig_Normal_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 100.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_620" )
endfunction
//===========================================================================
function InitTrig_Normal_Mode takes nothing returns nothing
set gg_trg_Normal_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Normal_Mode, Player(0), "-nm", true )
call TriggerAddAction( gg_trg_Normal_Mode, function Trig_Normal_Mode_Actions )
endfunction
function Trig_Hard_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 125.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_595" )
endfunction
//===========================================================================
function InitTrig_Hard_Mode takes nothing returns nothing
set gg_trg_Hard_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Hard_Mode, Player(0), "-hm", true )
call TriggerAddAction( gg_trg_Hard_Mode, function Trig_Hard_Mode_Actions )
endfunction
function Trig_Very_Hard_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 150.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1019" )
endfunction
//===========================================================================
function InitTrig_Very_Hard_Mode takes nothing returns nothing
set gg_trg_Very_Hard_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Very_Hard_Mode, Player(0), "-vhm", true )
call TriggerAddAction( gg_trg_Very_Hard_Mode, function Trig_Very_Hard_Mode_Actions )
endfunction
function Trig_Insane_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 175.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_596" )
endfunction
//===========================================================================
function InitTrig_Insane_Mode takes nothing returns nothing
set gg_trg_Insane_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Insane_Mode, Player(0), "-im", true )
call TriggerAddAction( gg_trg_Insane_Mode, function Trig_Insane_Mode_Actions )
endfunction
function Trig_Event_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1043" )
call EnableTrigger( gg_trg_Event_Random )
endfunction
//===========================================================================
function InitTrig_Event_Mode takes nothing returns nothing
set gg_trg_Event_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Event_Mode, Player(0), "-event", true )
call TriggerAddAction( gg_trg_Event_Mode, function Trig_Event_Mode_Actions )
endfunction
function Trig_Event_Random_Func002Func001Func001Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 500, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1000, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002001002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002001002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002001002001(), Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002001002002() )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 10 )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func001C takes nothing returns boolean
if ( not ( udg_Event_Random_Entier == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func002001002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func002001002002 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Event_Random_Func002Func001Func001Func002Func003Func002001002001(), Trig_Event_Random_Func002Func001Func001Func002Func003Func002001002002() )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003Func002A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
endfunction
function Trig_Event_Random_Func002Func001Func001Func002Func003C takes nothing returns boolean
if ( not ( udg_Event_Random_Entier == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Event_Random_Func002Func001Func001Func002C takes nothing returns boolean
if ( not ( udg_Event_Random_Entier == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Event_Random_Func002Func001Func001C takes nothing returns boolean
if ( not ( udg_Event_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Event_Random_Func002Func001C takes nothing returns boolean
if ( not ( udg_Event_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Event_Random_Func002C takes nothing returns boolean
if ( not ( udg_Event_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Event_Random_Actions takes nothing returns nothing
set udg_Event_Random_Entier = GetRandomInt(1, 6)
if ( Trig_Event_Random_Func002C() ) then
call CreateNUnitsAtLoc( 3, 'h00Q', Player(bj_PLAYER_NEUTRAL_EXTRA), GetUnitLoc(gg_unit_h000_0000), bj_UNIT_FACING )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1045" )
else
if ( Trig_Event_Random_Func002Func001C() ) then
call CreateNUnitsAtLoc( 5, 'h00Q', Player(bj_PLAYER_NEUTRAL_EXTRA), GetUnitLoc(gg_unit_h000_0000), bj_UNIT_FACING )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1046" )
else
if ( Trig_Event_Random_Func002Func001Func001C() ) then
call ForForce( GetPlayersAll(), function Trig_Event_Random_Func002Func001Func001Func001A )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1048" )
else
if ( Trig_Event_Random_Func002Func001Func001Func002C() ) then
call ForForce( GetPlayersAll(), function Trig_Event_Random_Func002Func001Func001Func002Func001A )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1051" )
else
if ( Trig_Event_Random_Func002Func001Func001Func002Func003C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Event_Random_Func002Func001Func001Func002Func003Func002001002)), function Trig_Event_Random_Func002Func001Func001Func002Func003Func002A )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1050" )
else
if ( Trig_Event_Random_Func002Func001Func001Func002Func003Func001C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002001002)), function Trig_Event_Random_Func002Func001Func001Func002Func003Func001Func002A )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1052" )
else
call DoNothing( )
endif
endif
endif
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Event_Random takes nothing returns nothing
set gg_trg_Event_Random = CreateTrigger( )
call DisableTrigger( gg_trg_Event_Random )
call TriggerRegisterTimerEventPeriodic( gg_trg_Event_Random, 300.00 )
call TriggerAddAction( gg_trg_Event_Random, function Trig_Event_Random_Actions )
endfunction
function Trig_No_Event_Mode_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Event_Random )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1044" )
endfunction
//===========================================================================
function InitTrig_No_Event_Mode takes nothing returns nothing
set gg_trg_No_Event_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_No_Event_Mode, Player(0), "-no event", true )
call TriggerAddAction( gg_trg_No_Event_Mode, function Trig_No_Event_Mode_Actions )
endfunction
function Trig_No_Power_Up_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_621" )
call DisableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_No_Power_Up_Mode takes nothing returns nothing
set gg_trg_No_Power_Up_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_No_Power_Up_Mode, Player(0), "-npu", true )
call TriggerAddAction( gg_trg_No_Power_Up_Mode, function Trig_No_Power_Up_Mode_Actions )
endfunction
function Trig_Mega_Power_Up_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1041" )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Mega_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Super_Power_Up )
endfunction
//===========================================================================
function InitTrig_Mega_Power_Up_Mode takes nothing returns nothing
set gg_trg_Mega_Power_Up_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Mega_Power_Up_Mode, Player(0), "-spu", true )
call TriggerAddAction( gg_trg_Mega_Power_Up_Mode, function Trig_Mega_Power_Up_Mode_Actions )
endfunction
function Trig_Mega_Power_Up_Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Mega_Power_Up_Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Mega_Power_Up_Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mega_Power_Up_Func002001002001(), Trig_Mega_Power_Up_Func002001002002() )
endfunction
function Trig_Mega_Power_Up_Func002A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
endfunction
function Trig_Mega_Power_Up_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1042" )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mega_Power_Up_Func002001002)), function Trig_Mega_Power_Up_Func002A )
endfunction
//===========================================================================
function InitTrig_Mega_Power_Up takes nothing returns nothing
set gg_trg_Mega_Power_Up = CreateTrigger( )
call DisableTrigger( gg_trg_Mega_Power_Up )
call TriggerRegisterTimerEventPeriodic( gg_trg_Mega_Power_Up, 35.00 )
call TriggerAddAction( gg_trg_Mega_Power_Up, function Trig_Mega_Power_Up_Actions )
endfunction
function Trig_Super_Power_Up_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_613" )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_Super_Power_Up_Mode takes nothing returns nothing
set gg_trg_Super_Power_Up_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Super_Power_Up_Mode, Player(0), "-spu", true )
call TriggerAddAction( gg_trg_Super_Power_Up_Mode, function Trig_Super_Power_Up_Mode_Actions )
endfunction
function Trig_Super_Power_Up_Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Super_Power_Up_Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Super_Power_Up_Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Super_Power_Up_Func002001002001(), Trig_Super_Power_Up_Func002001002002() )
endfunction
function Trig_Super_Power_Up_Func002A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
endfunction
function Trig_Super_Power_Up_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_614" )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Super_Power_Up_Func002001002)), function Trig_Super_Power_Up_Func002A )
endfunction
//===========================================================================
function InitTrig_Super_Power_Up takes nothing returns nothing
set gg_trg_Super_Power_Up = CreateTrigger( )
call DisableTrigger( gg_trg_Super_Power_Up )
call TriggerRegisterTimerEventPeriodic( gg_trg_Super_Power_Up, 45.00 )
call TriggerAddAction( gg_trg_Super_Power_Up, function Trig_Super_Power_Up_Actions )
endfunction
function Trig_Power_Up_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_597" )
call DisableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Low_Power_Up )
call EnableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_Power_Up_Mode takes nothing returns nothing
set gg_trg_Power_Up_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Power_Up_Mode, Player(0), "-pu", true )
call TriggerAddAction( gg_trg_Power_Up_Mode, function Trig_Power_Up_Mode_Actions )
endfunction
function Trig_Power_Up_Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Power_Up_Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Power_Up_Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Power_Up_Func002001002001(), Trig_Power_Up_Func002001002002() )
endfunction
function Trig_Power_Up_Func002A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
endfunction
function Trig_Power_Up_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_600" )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Power_Up_Func002001002)), function Trig_Power_Up_Func002A )
endfunction
//===========================================================================
function InitTrig_Power_Up takes nothing returns nothing
set gg_trg_Power_Up = CreateTrigger( )
call DisableTrigger( gg_trg_Power_Up )
call TriggerRegisterTimerEventPeriodic( gg_trg_Power_Up, 60.00 )
call TriggerAddAction( gg_trg_Power_Up, function Trig_Power_Up_Actions )
endfunction
function Trig_Low_Power_Up_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_910" )
call DisableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Power_Up )
call EnableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Mega_Power_Up )
endfunction
//===========================================================================
function InitTrig_Low_Power_Up_Mode takes nothing returns nothing
set gg_trg_Low_Power_Up_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Low_Power_Up_Mode, Player(0), "-lpu", true )
call TriggerAddAction( gg_trg_Low_Power_Up_Mode, function Trig_Low_Power_Up_Mode_Actions )
endfunction
function Trig_Low_Power_Up_Func002001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Low_Power_Up_Func002001002002 takes nothing returns boolean
return ( GetOwningPlayer(GetFilterUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) )
endfunction
function Trig_Low_Power_Up_Func002001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Low_Power_Up_Func002001002001(), Trig_Low_Power_Up_Func002001002002() )
endfunction
function Trig_Low_Power_Up_Func002A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 5 )
endfunction
function Trig_Low_Power_Up_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_911" )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Low_Power_Up_Func002001002)), function Trig_Low_Power_Up_Func002A )
endfunction
//===========================================================================
function InitTrig_Low_Power_Up takes nothing returns nothing
set gg_trg_Low_Power_Up = CreateTrigger( )
call DisableTrigger( gg_trg_Low_Power_Up )
call TriggerRegisterTimerEventPeriodic( gg_trg_Low_Power_Up, 75.00 )
call TriggerAddAction( gg_trg_Low_Power_Up, function Trig_Low_Power_Up_Actions )
endfunction
function Trig_Mega_Base_Gold_Mode_Func006A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 1000 )
endfunction
function Trig_Mega_Base_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1038" )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call DisableTrigger( gg_trg_Base_Gold_Mode )
call DisableTrigger( gg_trg_Super_Base_Gold_Mode )
call ForForce( GetPlayersAll(), function Trig_Mega_Base_Gold_Mode_Func006A )
endfunction
//===========================================================================
function InitTrig_Mega_Base_Gold_Mode takes nothing returns nothing
set gg_trg_Mega_Base_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Mega_Base_Gold_Mode, Player(0), "-mbgm", true )
call TriggerAddAction( gg_trg_Mega_Base_Gold_Mode, function Trig_Mega_Base_Gold_Mode_Actions )
endfunction
function Trig_Super_Base_Gold_Mode_Func005A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 750 )
endfunction
function Trig_Super_Base_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_902" )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call DisableTrigger( gg_trg_Base_Gold_Mode )
call ForForce( GetPlayersAll(), function Trig_Super_Base_Gold_Mode_Func005A )
endfunction
//===========================================================================
function InitTrig_Super_Base_Gold_Mode takes nothing returns nothing
set gg_trg_Super_Base_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Super_Base_Gold_Mode, Player(0), "-sbgm", true )
call TriggerAddAction( gg_trg_Super_Base_Gold_Mode, function Trig_Super_Base_Gold_Mode_Actions )
endfunction
function Trig_Base_Gold_Mode_Func004A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 500 )
endfunction
function Trig_Base_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_903" )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call ForForce( GetPlayersAll(), function Trig_Base_Gold_Mode_Func004A )
endfunction
//===========================================================================
function InitTrig_Base_Gold_Mode takes nothing returns nothing
set gg_trg_Base_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Base_Gold_Mode, Player(0), "-bgm", true )
call TriggerAddAction( gg_trg_Base_Gold_Mode, function Trig_Base_Gold_Mode_Actions )
endfunction
function Trig_Low_Base_Gold_Mode_Func003A takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 250 )
endfunction
function Trig_Low_Base_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_904" )
call ForForce( GetPlayersAll(), function Trig_Low_Base_Gold_Mode_Func003A )
endfunction
//===========================================================================
function InitTrig_Low_Base_Gold_Mode takes nothing returns nothing
set gg_trg_Low_Base_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Low_Base_Gold_Mode, Player(0), "-lbgm", true )
call TriggerAddAction( gg_trg_Low_Base_Gold_Mode, function Trig_Low_Base_Gold_Mode_Actions )
endfunction
function Trig_Ultra_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1037" )
call EnableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
endfunction
//===========================================================================
function InitTrig_Ultra_Gold_Mode takes nothing returns nothing
set gg_trg_Ultra_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Ultra_Gold_Mode, Player(0), "-ugm", true )
call TriggerAddAction( gg_trg_Ultra_Gold_Mode, function Trig_Ultra_Gold_Mode_Actions )
endfunction
function Trig_Ultra_Gold_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Ultra_Gold_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Ultra_Gold_Func001A )
endfunction
//===========================================================================
function InitTrig_Ultra_Gold takes nothing returns nothing
set gg_trg_Ultra_Gold = CreateTrigger( )
call DisableTrigger( gg_trg_Ultra_Gold )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ultra_Gold, 0.33 )
call TriggerAddAction( gg_trg_Ultra_Gold, function Trig_Ultra_Gold_Actions )
endfunction
function Trig_Mega_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_788" )
call EnableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
endfunction
//===========================================================================
function InitTrig_Mega_Gold_Mode takes nothing returns nothing
set gg_trg_Mega_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Mega_Gold_Mode, Player(0), "-mgm", true )
call TriggerAddAction( gg_trg_Mega_Gold_Mode, function Trig_Mega_Gold_Mode_Actions )
endfunction
function Trig_Mega_Gold_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Mega_Gold_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Mega_Gold_Func001A )
endfunction
//===========================================================================
function InitTrig_Mega_Gold takes nothing returns nothing
set gg_trg_Mega_Gold = CreateTrigger( )
call DisableTrigger( gg_trg_Mega_Gold )
call TriggerRegisterTimerEventPeriodic( gg_trg_Mega_Gold, 0.50 )
call TriggerAddAction( gg_trg_Mega_Gold, function Trig_Mega_Gold_Actions )
endfunction
function Trig_Super_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_656" )
call EnableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
endfunction
//===========================================================================
function InitTrig_Super_Gold_Mode takes nothing returns nothing
set gg_trg_Super_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Super_Gold_Mode, Player(0), "-sgm", true )
call TriggerAddAction( gg_trg_Super_Gold_Mode, function Trig_Super_Gold_Mode_Actions )
endfunction
function Trig_Super_Gold_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Super_Gold_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Super_Gold_Func001A )
endfunction
//===========================================================================
function InitTrig_Super_Gold takes nothing returns nothing
set gg_trg_Super_Gold = CreateTrigger( )
call DisableTrigger( gg_trg_Super_Gold )
call TriggerRegisterTimerEventPeriodic( gg_trg_Super_Gold, 0.75 )
call TriggerAddAction( gg_trg_Super_Gold, function Trig_Super_Gold_Actions )
endfunction
function Trig_Gold_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Gold_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Gold_Func001A )
endfunction
//===========================================================================
function InitTrig_Gold takes nothing returns nothing
set gg_trg_Gold = CreateTrigger( )
call DisableTrigger( gg_trg_Gold )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gold, 1.00 )
call TriggerAddAction( gg_trg_Gold, function Trig_Gold_Actions )
endfunction
function Trig_Low_Gold_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_739" )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call EnableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
endfunction
//===========================================================================
function InitTrig_Low_Gold_Mode takes nothing returns nothing
set gg_trg_Low_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Low_Gold_Mode, Player(0), "-lgm", true )
call TriggerAddAction( gg_trg_Low_Gold_Mode, function Trig_Low_Gold_Mode_Actions )
endfunction
function Trig_Low_Gold_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Low_Gold_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig_Low_Gold_Func001A )
endfunction
//===========================================================================
function InitTrig_Low_Gold takes nothing returns nothing
set gg_trg_Low_Gold = CreateTrigger( )
call DisableTrigger( gg_trg_Low_Gold )
call TriggerRegisterTimerEventPeriodic( gg_trg_Low_Gold, 1.50 )
call TriggerAddAction( gg_trg_Low_Gold, function Trig_Low_Gold_Actions )
endfunction
function Trig_No_Gold_Mode_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_632" )
endfunction
//===========================================================================
function InitTrig_No_Gold_Mode takes nothing returns nothing
set gg_trg_No_Gold_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_No_Gold_Mode, Player(0), "-ngm", true )
call TriggerAddAction( gg_trg_No_Gold_Mode, function Trig_No_Gold_Mode_Actions )
endfunction
function Trig_Fast_Respawn_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_607" )
call EnableTrigger( gg_trg_Fast_Respawn )
call DisableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
endfunction
//===========================================================================
function InitTrig_Fast_Respawn_Mode takes nothing returns nothing
set gg_trg_Fast_Respawn_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Fast_Respawn_Mode, Player(0), "-fr", true )
call TriggerAddAction( gg_trg_Fast_Respawn_Mode, function Trig_Fast_Respawn_Mode_Actions )
endfunction
function Trig_Fast_Respawn_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetDyingUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Fast_Respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 10.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_respawn), true )
endfunction
//===========================================================================
function InitTrig_Fast_Respawn takes nothing returns nothing
set gg_trg_Fast_Respawn = CreateTrigger( )
call DisableTrigger( gg_trg_Fast_Respawn )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Fast_Respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Fast_Respawn, Condition( function Trig_Fast_Respawn_Conditions ) )
call TriggerAddAction( gg_trg_Fast_Respawn, function Trig_Fast_Respawn_Actions )
endfunction
function Trig_Slow_Respawn_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_608" )
call EnableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Fast_Respawn )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
endfunction
//===========================================================================
function InitTrig_Slow_Respawn_Mode takes nothing returns nothing
set gg_trg_Slow_Respawn_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Slow_Respawn_Mode, Player(0), "-sr", true )
call TriggerAddAction( gg_trg_Slow_Respawn_Mode, function Trig_Slow_Respawn_Mode_Actions )
endfunction
function Trig_Slow_Respawn_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetDyingUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Slow_Respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 20.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_respawn), true )
endfunction
//===========================================================================
function InitTrig_Slow_Respawn takes nothing returns nothing
set gg_trg_Slow_Respawn = CreateTrigger( )
call DisableTrigger( gg_trg_Slow_Respawn )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slow_Respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Slow_Respawn, Condition( function Trig_Slow_Respawn_Conditions ) )
call TriggerAddAction( gg_trg_Slow_Respawn, function Trig_Slow_Respawn_Actions )
endfunction
function Trig_Very_Slow_Respawn_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1040" )
call EnableTrigger( gg_trg_Very_Slow_Respawn )
call DisableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Fast_Respawn )
call DisableTrigger( gg_trg_Slow_Respawn )
endfunction
//===========================================================================
function InitTrig_Very_Slow_Respawn_Mode takes nothing returns nothing
set gg_trg_Very_Slow_Respawn_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Very_Slow_Respawn_Mode, Player(0), "-vsr", true )
call TriggerAddAction( gg_trg_Very_Slow_Respawn_Mode, function Trig_Very_Slow_Respawn_Mode_Actions )
endfunction
function Trig_Very_Slow_Respawn_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetDyingUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_Very_Slow_Respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 30.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_respawn), true )
endfunction
//===========================================================================
function InitTrig_Very_Slow_Respawn takes nothing returns nothing
set gg_trg_Very_Slow_Respawn = CreateTrigger( )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Very_Slow_Respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Very_Slow_Respawn, Condition( function Trig_Very_Slow_Respawn_Conditions ) )
call TriggerAddAction( gg_trg_Very_Slow_Respawn, function Trig_Very_Slow_Respawn_Actions )
endfunction
function Trig_Not_Any_Respawn_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_599" )
call DisableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_Fast_Respawn )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
endfunction
//===========================================================================
function InitTrig_Not_Any_Respawn_Mode takes nothing returns nothing
set gg_trg_Not_Any_Respawn_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Not_Any_Respawn_Mode, Player(0), "-nar", true )
call TriggerAddAction( gg_trg_Not_Any_Respawn_Mode, function Trig_Not_Any_Respawn_Mode_Actions )
endfunction
function Trig_Normal_Respawn_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_622" )
call EnableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_Fast_Respawn )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
endfunction
//===========================================================================
function InitTrig_Normal_Respawn_Mode takes nothing returns nothing
set gg_trg_Normal_Respawn_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Normal_Respawn_Mode, Player(0), "-nr", true )
call TriggerAddAction( gg_trg_Normal_Respawn_Mode, function Trig_Normal_Respawn_Mode_Actions )
endfunction
function Trig_respawn_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetDyingUnit()) != Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_respawn_Actions takes nothing returns nothing
call TriggerSleepAction( 15.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_respawn), true )
endfunction
//===========================================================================
function InitTrig_respawn takes nothing returns nothing
set gg_trg_respawn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_respawn, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_respawn, Condition( function Trig_respawn_Conditions ) )
call TriggerAddAction( gg_trg_respawn, function Trig_respawn_Actions )
endfunction
function Trig_respawn_camera_pick_et_debug_phantom_Func003Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(GetRevivingUnit(), 'I01I') == true ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetRevivingUnit()) != 'Ewar' ) ) then
return false
endif
return true
endfunction
function Trig_respawn_camera_pick_et_debug_phantom_Func003C takes nothing returns boolean
if ( not Trig_respawn_camera_pick_et_debug_phantom_Func003Func004C() ) then
return false
endif
return true
endfunction
function Trig_respawn_camera_pick_et_debug_phantom_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetRevivingUnit()), GetUnitLoc(GetRevivingUnit()), 0.10 )
call SelectUnitForPlayerSingle( GetRevivingUnit(), GetOwningPlayer(GetRevivingUnit()) )
if ( Trig_respawn_camera_pick_et_debug_phantom_Func003C() ) then
call SetUnitVertexColorBJ( GetRevivingUnit(), 100, 100, 100, 30.00 )
call SetUnitPathing( GetRevivingUnit(), false )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_respawn_camera_pick_et_debug_phantom takes nothing returns nothing
set gg_trg_respawn_camera_pick_et_debug_phantom = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_respawn_camera_pick_et_debug_phantom, EVENT_PLAYER_HERO_REVIVE_FINISH )
call TriggerAddAction( gg_trg_respawn_camera_pick_et_debug_phantom, function Trig_respawn_camera_pick_et_debug_phantom_Actions )
endfunction
function Trig_Normal_Castle_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_623" )
call SetUnitLifeBJ( gg_unit_h000_0000, 500000.00 )
endfunction
//===========================================================================
function InitTrig_Normal_Castle_Mode takes nothing returns nothing
set gg_trg_Normal_Castle_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Normal_Castle_Mode, Player(0), "-nc", true )
call TriggerAddAction( gg_trg_Normal_Castle_Mode, function Trig_Normal_Castle_Mode_Actions )
endfunction
function Trig_Low_Castle_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_598" )
call SetUnitLifeBJ( gg_unit_h000_0000, 250000.00 )
endfunction
//===========================================================================
function InitTrig_Low_Castle_Mode takes nothing returns nothing
set gg_trg_Low_Castle_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Low_Castle_Mode, Player(0), "-lc", true )
call TriggerAddAction( gg_trg_Low_Castle_Mode, function Trig_Low_Castle_Mode_Actions )
endfunction
function Trig_Very_Low_Castle_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_619" )
call SetUnitLifeBJ( gg_unit_h000_0000, 125000.00 )
endfunction
//===========================================================================
function InitTrig_Very_Low_Castle_Mode takes nothing returns nothing
set gg_trg_Very_Low_Castle_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Very_Low_Castle_Mode, Player(0), "-vlc", true )
call TriggerAddAction( gg_trg_Very_Low_Castle_Mode, function Trig_Very_Low_Castle_Mode_Actions )
endfunction
function Trig_Ultra_Castle_Regeneration_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1039" )
call EnableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
endfunction
//===========================================================================
function InitTrig_Ultra_Castle_Regeneration_Mode takes nothing returns nothing
set gg_trg_Ultra_Castle_Regeneration_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Ultra_Castle_Regeneration_Mode, Player(0), "-ucrm", true )
call TriggerAddAction( gg_trg_Ultra_Castle_Regeneration_Mode, function Trig_Ultra_Castle_Regeneration_Mode_Actions )
endfunction
function Trig_Ultra_Castle_Regeneration_Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) < 500000.00 ) ) then
return false
endif
return true
endfunction
function Trig_Ultra_Castle_Regeneration_Actions takes nothing returns nothing
if ( Trig_Ultra_Castle_Regeneration_Func001C() ) then
call SetUnitLifeBJ( gg_unit_h000_0000, ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) + 1 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Ultra_Castle_Regeneration takes nothing returns nothing
set gg_trg_Ultra_Castle_Regeneration = CreateTrigger( )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ultra_Castle_Regeneration, 0.33 )
call TriggerAddAction( gg_trg_Ultra_Castle_Regeneration, function Trig_Ultra_Castle_Regeneration_Actions )
endfunction
function Trig_Mega_Castle_Regeneration_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_908" )
call EnableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
endfunction
//===========================================================================
function InitTrig_Mega_Castle_Regeneration_Mode takes nothing returns nothing
set gg_trg_Mega_Castle_Regeneration_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Mega_Castle_Regeneration_Mode, Player(0), "-mcrm", true )
call TriggerAddAction( gg_trg_Mega_Castle_Regeneration_Mode, function Trig_Mega_Castle_Regeneration_Mode_Actions )
endfunction
function Trig_Mega_Castle_Regeneration_Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) < 500000.00 ) ) then
return false
endif
return true
endfunction
function Trig_Mega_Castle_Regeneration_Actions takes nothing returns nothing
if ( Trig_Mega_Castle_Regeneration_Func001C() ) then
call SetUnitLifeBJ( gg_unit_h000_0000, ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) + 1 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Mega_Castle_Regeneration takes nothing returns nothing
set gg_trg_Mega_Castle_Regeneration = CreateTrigger( )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call TriggerRegisterTimerEventPeriodic( gg_trg_Mega_Castle_Regeneration, 0.50 )
call TriggerAddAction( gg_trg_Mega_Castle_Regeneration, function Trig_Mega_Castle_Regeneration_Actions )
endfunction
function Trig_Super_Castle_Regeneration_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_907" )
call EnableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
endfunction
//===========================================================================
function InitTrig_Super_Castle_Regeneration_Mode takes nothing returns nothing
set gg_trg_Super_Castle_Regeneration_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Super_Castle_Regeneration_Mode, Player(0), "-scrm", true )
call TriggerAddAction( gg_trg_Super_Castle_Regeneration_Mode, function Trig_Super_Castle_Regeneration_Mode_Actions )
endfunction
function Trig_Super_Castle_Regeneration_Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) < 500000.00 ) ) then
return false
endif
return true
endfunction
function Trig_Super_Castle_Regeneration_Actions takes nothing returns nothing
if ( Trig_Super_Castle_Regeneration_Func001C() ) then
call SetUnitLifeBJ( gg_unit_h000_0000, ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) + 1 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Super_Castle_Regeneration takes nothing returns nothing
set gg_trg_Super_Castle_Regeneration = CreateTrigger( )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call TriggerRegisterTimerEventPeriodic( gg_trg_Super_Castle_Regeneration, 0.75 )
call TriggerAddAction( gg_trg_Super_Castle_Regeneration, function Trig_Super_Castle_Regeneration_Actions )
endfunction
function Trig_Castle_Regeneration_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_905" )
call EnableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
endfunction
//===========================================================================
function InitTrig_Castle_Regeneration_Mode takes nothing returns nothing
set gg_trg_Castle_Regeneration_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Regeneration_Mode, Player(0), "-crm", true )
call TriggerAddAction( gg_trg_Castle_Regeneration_Mode, function Trig_Castle_Regeneration_Mode_Actions )
endfunction
function Trig_Castle_Regeneration_Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) < 500000.00 ) ) then
return false
endif
return true
endfunction
function Trig_Castle_Regeneration_Actions takes nothing returns nothing
if ( Trig_Castle_Regeneration_Func001C() ) then
call SetUnitLifeBJ( gg_unit_h000_0000, ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) + 1 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Castle_Regeneration takes nothing returns nothing
set gg_trg_Castle_Regeneration = CreateTrigger( )
call DisableTrigger( gg_trg_Castle_Regeneration )
call TriggerRegisterTimerEventPeriodic( gg_trg_Castle_Regeneration, 1.00 )
call TriggerAddAction( gg_trg_Castle_Regeneration, function Trig_Castle_Regeneration_Actions )
endfunction
function Trig_Low_Castle_Regeneration_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_906" )
call DisableTrigger( gg_trg_Castle_Regeneration )
call EnableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
endfunction
//===========================================================================
function InitTrig_Low_Castle_Regeneration_Mode takes nothing returns nothing
set gg_trg_Low_Castle_Regeneration_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Low_Castle_Regeneration_Mode, Player(0), "-lcrm", true )
call TriggerAddAction( gg_trg_Low_Castle_Regeneration_Mode, function Trig_Low_Castle_Regeneration_Mode_Actions )
endfunction
function Trig_Low_Castle_Regeneration_Func001C takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) < 500000.00 ) ) then
return false
endif
return true
endfunction
function Trig_Low_Castle_Regeneration_Actions takes nothing returns nothing
if ( Trig_Low_Castle_Regeneration_Func001C() ) then
call SetUnitLifeBJ( gg_unit_h000_0000, ( GetUnitStateSwap(UNIT_STATE_LIFE, gg_unit_h000_0000) + 1 ) )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Low_Castle_Regeneration takes nothing returns nothing
set gg_trg_Low_Castle_Regeneration = CreateTrigger( )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call TriggerRegisterTimerEventPeriodic( gg_trg_Low_Castle_Regeneration, 1.50 )
call TriggerAddAction( gg_trg_Low_Castle_Regeneration, function Trig_Low_Castle_Regeneration_Actions )
endfunction
function Trig_No_Castle_Regeneration_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_909" )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
endfunction
//===========================================================================
function InitTrig_No_Castle_Regeneration_Mode takes nothing returns nothing
set gg_trg_No_Castle_Regeneration_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_No_Castle_Regeneration_Mode, Player(0), "-ncr", true )
call TriggerAddAction( gg_trg_No_Castle_Regeneration_Mode, function Trig_No_Castle_Regeneration_Mode_Actions )
endfunction
function Trig_Reset_Mode_Actions takes nothing returns nothing
call SetPlayerHandicapBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), 100.00 )
call EnableTrigger( gg_trg_respawn )
call DisableTrigger( gg_trg_Slow_Respawn )
call DisableTrigger( gg_trg_Fast_Respawn )
call DisableTrigger( gg_trg_Low_Power_Up )
call DisableTrigger( gg_trg_Power_Up )
call DisableTrigger( gg_trg_Super_Power_Up )
call DisableTrigger( gg_trg_Gold )
call DisableTrigger( gg_trg_Super_Gold )
call DisableTrigger( gg_trg_Low_Gold )
call DisableTrigger( gg_trg_Mega_Gold )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration )
call DisableTrigger( gg_trg_Super_Castle_Regeneration )
call DisableTrigger( gg_trg_Castle_Regeneration )
call DisableTrigger( gg_trg_Low_Castle_Regeneration )
call DisableTrigger( gg_trg_Ultra_Gold )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration )
call DisableTrigger( gg_trg_Very_Slow_Respawn )
call DisableTrigger( gg_trg_Mega_Power_Up )
call DisableTrigger( gg_trg_Event_Random )
call SetUnitLifeBJ( gg_unit_h000_0000, 500000.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_624" )
endfunction
//===========================================================================
function InitTrig_Reset_Mode takes nothing returns nothing
set gg_trg_Reset_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Reset_Mode, Player(0), "-rm", true )
call TriggerAddAction( gg_trg_Reset_Mode, function Trig_Reset_Mode_Actions )
endfunction
function Trig_limite_temps_choix_mode_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Double_Hero_Mode )
call DisableTrigger( gg_trg_Triple_Hero_Mode )
call DisableTrigger( gg_trg_All_Random )
call DisableTrigger( gg_trg_Elimination_Mode_5 )
call DisableTrigger( gg_trg_Elimination_Mode_10 )
call DisableTrigger( gg_trg_Elimination_Mode_with_Death_5 )
call DisableTrigger( gg_trg_Elimination_Mode_with_Death_10 )
call TriggerSleepAction( 52.00 )
call DisableTrigger( gg_trg_Easy_Mode )
call DisableTrigger( gg_trg_Normal_Mode )
call DisableTrigger( gg_trg_Hard_Mode )
call DisableTrigger( gg_trg_Very_Hard_Mode )
call DisableTrigger( gg_trg_Insane_Mode )
call DisableTrigger( gg_trg_Very_Easy_Mode )
call DisableTrigger( gg_trg_Low_Power_Up_Mode )
call DisableTrigger( gg_trg_Power_Up_Mode )
call DisableTrigger( gg_trg_Super_Power_Up_Mode )
call DisableTrigger( gg_trg_No_Power_Up_Mode )
call DisableTrigger( gg_trg_Low_Castle_Mode )
call DisableTrigger( gg_trg_Normal_Castle_Mode )
call DisableTrigger( gg_trg_Very_Low_Castle_Mode )
call DisableTrigger( gg_trg_Not_Any_Respawn_Mode )
call DisableTrigger( gg_trg_Fast_Respawn_Mode )
call DisableTrigger( gg_trg_Slow_Respawn_Mode )
call DisableTrigger( gg_trg_Normal_Respawn_Mode )
call DisableTrigger( gg_trg_Low_Gold_Mode )
call DisableTrigger( gg_trg_Gold_Mode )
call DisableTrigger( gg_trg_Super_Gold_Mode )
call DisableTrigger( gg_trg_Mega_Gold_Mode )
call DisableTrigger( gg_trg_Ultra_Gold_Mode )
call DisableTrigger( gg_trg_No_Gold_Mode )
call DisableTrigger( gg_trg_Base_Gold_Mode )
call DisableTrigger( gg_trg_Low_Base_Gold_Mode )
call DisableTrigger( gg_trg_Super_Base_Gold_Mode )
call DisableTrigger( gg_trg_Mega_Base_Gold_Mode )
call DisableTrigger( gg_trg_Reset_Mode )
call DisableTrigger( gg_trg_repick )
call DisableTrigger( gg_trg_Castle_Regeneration_Mode )
call DisableTrigger( gg_trg_Low_Castle_Regeneration_Mode )
call DisableTrigger( gg_trg_Mega_Castle_Regeneration_Mode )
call DisableTrigger( gg_trg_Super_Castle_Regeneration_Mode )
call DisableTrigger( gg_trg_No_Castle_Regeneration_Mode )
call DisableTrigger( gg_trg_Test_Mode )
call DisableTrigger( gg_trg_Ultra_Castle_Regeneration_Mode )
call DisableTrigger( gg_trg_Very_Slow_Respawn_Mode )
call DisableTrigger( gg_trg_Mega_Power_Up_Mode )
call DisableTrigger( gg_trg_Event_Mode )
call DisableTrigger( gg_trg_No_Event_Mode )
call DisableTrigger( gg_trg_No_Bonus_Mode )
call DisableTrigger( gg_trg_Bonus_Mode )
endfunction
//===========================================================================
function InitTrig_limite_temps_choix_mode takes nothing returns nothing
set gg_trg_limite_temps_choix_mode = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_limite_temps_choix_mode, 10.00 )
call TriggerAddAction( gg_trg_limite_temps_choix_mode, function Trig_limite_temps_choix_mode_Actions )
endfunction
function Trig_repick_Func001001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'ewsp' )
endfunction
function Trig_repick_Func001001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'h000' )
endfunction
function Trig_repick_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_repick_Func001001002001(), Trig_repick_Func001001002002() )
endfunction
function Trig_repick_Func001A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 1 )
endfunction
function Trig_repick_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerMatching(GetTriggerPlayer(), Condition(function Trig_repick_Func001001002)), function Trig_repick_Func001A )
endfunction
//===========================================================================
function InitTrig_repick takes nothing returns nothing
set gg_trg_repick = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(0), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(1), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(2), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(3), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(4), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(5), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(6), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(7), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(8), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(9), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(10), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_repick, Player(11), "-repick", true )
call TriggerAddAction( gg_trg_repick, function Trig_repick_Actions )
endfunction
function Trig_Clear_Func001001001 takes nothing returns boolean
return ( GetFilterPlayer() == GetTriggerPlayer() )
endfunction
function Trig_Clear_Actions takes nothing returns nothing
call ClearTextMessagesBJ( GetPlayersMatching(Condition(function Trig_Clear_Func001001001)) )
endfunction
//===========================================================================
function InitTrig_Clear takes nothing returns nothing
set gg_trg_Clear = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(0), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(1), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(2), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(3), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(4), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(5), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(6), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(7), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(8), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(9), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(10), "-clear", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear, Player(11), "-clear", true )
call TriggerAddAction( gg_trg_Clear, function Trig_Clear_Actions )
endfunction
function Trig_No_Bonus_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1297" )
call DisableTrigger( gg_trg_bonus_100 )
call DisableTrigger( gg_trg_bonus_1000 )
call DisableTrigger( gg_trg_bonus_10000 )
call DisableTrigger( gg_trg_bonus_250 )
call DisableTrigger( gg_trg_bonus_2500 )
call DisableTrigger( gg_trg_bonus_500 )
call DisableTrigger( gg_trg_bonus_5000 )
endfunction
//===========================================================================
function InitTrig_No_Bonus_Mode takes nothing returns nothing
set gg_trg_No_Bonus_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_No_Bonus_Mode, Player(0), "-nb", true )
call TriggerAddAction( gg_trg_No_Bonus_Mode, function Trig_No_Bonus_Mode_Actions )
endfunction
function Trig_Bonus_Mode_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1298" )
call EnableTrigger( gg_trg_bonus_100 )
call EnableTrigger( gg_trg_bonus_1000 )
call EnableTrigger( gg_trg_bonus_10000 )
call EnableTrigger( gg_trg_bonus_250 )
call EnableTrigger( gg_trg_bonus_2500 )
call EnableTrigger( gg_trg_bonus_500 )
call EnableTrigger( gg_trg_bonus_5000 )
endfunction
//===========================================================================
function InitTrig_Bonus_Mode takes nothing returns nothing
set gg_trg_Bonus_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Bonus_Mode, Player(0), "-bonus", true )
call TriggerAddAction( gg_trg_Bonus_Mode, function Trig_Bonus_Mode_Actions )
endfunction
function Trig_bonus_100_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 8 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 7 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 6 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 5 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 4 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 100 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_100_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_100_Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 8)
if ( Trig_bonus_100_Func002Func002C() ) then
call UnitAddItemByIdSwapped( 'I01E', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func002001001)), "TRIGSTR_1077" )
else
if ( Trig_bonus_100_Func002Func002Func004C() ) then
call UnitAddItemByIdSwapped( 'I01F', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func002001001)), "TRIGSTR_1078" )
else
if ( Trig_bonus_100_Func002Func002Func004Func004C() ) then
call UnitAddItemByIdSwapped( 'I003', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func004Func002001001)), "TRIGSTR_1079" )
else
if ( Trig_bonus_100_Func002Func002Func004Func004Func004C() ) then
call UnitAddItemByIdSwapped( 'I004', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func004Func004Func002001001)), "TRIGSTR_1080" )
else
if ( Trig_bonus_100_Func002Func002Func004Func004Func004Func004C() ) then
call UnitAddItemByIdSwapped( 'I01G', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func002001001)), "TRIGSTR_1081" )
else
if ( Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004C() ) then
call AdjustPlayerStateBJ( 500, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func002001001)), "TRIGSTR_1075" )
else
if ( Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004C() ) then
call AdjustPlayerStateBJ( ( 110 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004Func002001001)), "TRIGSTR_1073" )
else
if ( Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 5 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 5 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_100_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func004001001)), "TRIGSTR_1076" )
else
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_bonus_100 takes nothing returns nothing
set gg_trg_bonus_100 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_100, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_100, Condition( function Trig_bonus_100_Conditions ) )
call TriggerAddAction( gg_trg_bonus_100, function Trig_bonus_100_Actions )
endfunction
function Trig_bonus_250_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 10 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 9 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func005001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 8 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 7 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 6 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 5 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 4 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 250 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_250_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_250_Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 10)
if ( Trig_bonus_250_Func002Func002C() ) then
call UnitAddItemByIdSwapped( 'I005', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func002001001)), "TRIGSTR_1082" )
else
if ( Trig_bonus_250_Func002Func002Func004C() ) then
call UnitAddItemByIdSwapped( 'I006', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func002001001)), "TRIGSTR_1083" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004C() ) then
call UnitAddItemByIdSwapped( 'I003', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func002001001)), "TRIGSTR_1084" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004C() ) then
call UnitAddItemByIdSwapped( 'I004', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func002001001)), "TRIGSTR_1085" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004Func004C() ) then
call UnitAddItemByIdSwapped( 'I01B', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func002001001)), "TRIGSTR_1086" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004C() ) then
call AdjustPlayerStateBJ( 1000, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func002001001)), "TRIGSTR_1087" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004C() ) then
call AdjustPlayerStateBJ( ( 122 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func002001001)), "TRIGSTR_1088" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 10 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func005001001)), "TRIGSTR_1089" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'I000', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001Func002001001)), "TRIGSTR_1090" )
else
if ( Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001Func004C() ) then
call UnitAddItemByIdSwapped( 'I01H', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_250_Func002Func002Func004Func004Func004Func004Func004Func004Func004Func001Func004Func002001001)), "TRIGSTR_1091" )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_bonus_250 takes nothing returns nothing
set gg_trg_bonus_250 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_250, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_250, Condition( function Trig_bonus_250_Conditions ) )
call TriggerAddAction( gg_trg_bonus_250, function Trig_bonus_250_Actions )
endfunction
function Trig_bonus_500_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002Func001Func001Func001Func003C takes nothing returns boolean
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Obla' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Ewar' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'E005' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Nbrn' ) ) then
return true
endif
return false
endfunction
function Trig_bonus_500_Func002Func002Func001Func001Func001C takes nothing returns boolean
if ( not Trig_bonus_500_Func002Func002Func001Func001Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002Func001Func001Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Hmkg' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'H00P' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Orex' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Ucrl' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Otch' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Nalc' ) ) then
return true
endif
return false
endfunction
function Trig_bonus_500_Func002Func002Func001Func001C takes nothing returns boolean
if ( not Trig_bonus_500_Func002Func002Func001Func001Func004C() ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002Func001Func004C takes nothing returns boolean
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Hblm' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Hjai' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Orkn' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetKillingUnitBJ()) == 'Uktl' ) ) then
return true
endif
return false
endfunction
function Trig_bonus_500_Func002Func002Func001C takes nothing returns boolean
if ( not Trig_bonus_500_Func002Func002Func001Func004C() ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002Func003Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_500_Func002Func002Func003Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_500_Func002Func002Func003Func004Func004Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_500_Func002Func002Func003Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 4 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002Func003Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002Func003C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 500 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_500_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_500_Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 4)
if ( Trig_bonus_500_Func002Func002C() ) then
if ( Trig_bonus_500_Func002Func002Func001C() ) then
call UnitAddItemByIdSwapped( 'I008', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1103" )
else
if ( Trig_bonus_500_Func002Func002Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'I00A', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1104" )
else
if ( Trig_bonus_500_Func002Func002Func001Func001Func001C() ) then
call UnitAddItemByIdSwapped( 'I009', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1105" )
else
endif
endif
endif
else
if ( Trig_bonus_500_Func002Func002Func003C() ) then
call AdjustPlayerStateBJ( 2500, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_500_Func002Func002Func003Func002001001)), "TRIGSTR_1100" )
else
if ( Trig_bonus_500_Func002Func002Func003Func004C() ) then
call AdjustPlayerStateBJ( ( 136 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_500_Func002Func002Func003Func004Func002001001)), "TRIGSTR_1101" )
else
if ( Trig_bonus_500_Func002Func002Func003Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 25 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 25 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 25 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_500_Func002Func002Func003Func004Func004Func004001001)), "TRIGSTR_1102" )
else
endif
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_bonus_500 takes nothing returns nothing
set gg_trg_bonus_500 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_500, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_500, Condition( function Trig_bonus_500_Conditions ) )
call TriggerAddAction( gg_trg_bonus_500, function Trig_bonus_500_Actions )
endfunction
function Trig_bonus_1000_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004Func004Func004Func001C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 5 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004Func004Func004Func005001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 4 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func001Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func001Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func001C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 1000 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func002Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_1000_Func002Func002Func002Func004Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_1000_Func002Func002Func002Func004Func004Func004Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_1000_Func002Func002Func002Func004Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 4 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func002Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func002Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 1000 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Func002C takes nothing returns boolean
if ( not ( udg_Upgrade_Ultimate_Boolean[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == true ) ) then
return false
endif
return true
endfunction
function Trig_bonus_1000_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_1000_Func002C() ) then
if ( Trig_bonus_1000_Func002Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 4)
if ( Trig_bonus_1000_Func002Func002Func002C() ) then
call UnitAddItemByIdSwapped( 'I01D', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1116" )
else
if ( Trig_bonus_1000_Func002Func002Func002Func004C() ) then
call AdjustPlayerStateBJ( 5000, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_1000_Func002Func002Func002Func004Func002001001)), "TRIGSTR_1117" )
else
if ( Trig_bonus_1000_Func002Func002Func002Func004Func004C() ) then
call AdjustPlayerStateBJ( ( 152 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_1000_Func002Func002Func002Func004Func004Func002001001)), "TRIGSTR_1118" )
else
if ( Trig_bonus_1000_Func002Func002Func002Func004Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 50 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 50 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 50 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_1000_Func002Func002Func002Func004Func004Func004Func004001001)), "TRIGSTR_1119" )
else
endif
endif
endif
endif
else
endif
else
if ( Trig_bonus_1000_Func002Func001C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 5)
if ( Trig_bonus_1000_Func002Func001Func002C() ) then
call UnitAddItemByIdSwapped( 'I01D', GetKillingUnitBJ() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1128" )
else
if ( Trig_bonus_1000_Func002Func001Func002Func004C() ) then
call AdjustPlayerStateBJ( 5000, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_1000_Func002Func001Func002Func004Func002001001)), "TRIGSTR_1129" )
else
if ( Trig_bonus_1000_Func002Func001Func002Func004Func004C() ) then
call AdjustPlayerStateBJ( ( 152 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_1000_Func002Func001Func002Func004Func004Func002001001)), "TRIGSTR_1130" )
else
if ( Trig_bonus_1000_Func002Func001Func002Func004Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 50 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 50 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 50 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_1000_Func002Func001Func002Func004Func004Func004Func005001001)), "TRIGSTR_1131" )
else
if ( Trig_bonus_1000_Func002Func001Func002Func004Func004Func004Func001C() ) then
call UnitAddItemByIdSwapped( 'I001', GetKillingUnitBJ() )
set udg_Upgrade_Ultimate_Boolean[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = true
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_1132" )
else
endif
endif
endif
endif
endif
else
endif
endif
endfunction
//===========================================================================
function InitTrig_bonus_1000 takes nothing returns nothing
set gg_trg_bonus_1000 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_1000, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_1000, Condition( function Trig_bonus_1000_Conditions ) )
call TriggerAddAction( gg_trg_bonus_1000, function Trig_bonus_1000_Actions )
endfunction
function Trig_bonus_2500_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_2500_Func002Func002Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_2500_Func002Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_2500_Func002Func002Func004Func004Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_2500_Func002Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_2500_Func002Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_2500_Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_2500_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 2500 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_2500_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_2500_Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 3)
if ( Trig_bonus_2500_Func002Func002C() ) then
call AdjustPlayerStateBJ( 10000, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_2500_Func002Func002Func002001001)), "TRIGSTR_1139" )
else
if ( Trig_bonus_2500_Func002Func002Func004C() ) then
call AdjustPlayerStateBJ( ( 170 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_2500_Func002Func002Func004Func002001001)), "TRIGSTR_1140" )
else
if ( Trig_bonus_2500_Func002Func002Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 100 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_2500_Func002Func002Func004Func004Func004001001)), "TRIGSTR_1141" )
else
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_bonus_2500 takes nothing returns nothing
set gg_trg_bonus_2500 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_2500, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_2500, Condition( function Trig_bonus_2500_Conditions ) )
call TriggerAddAction( gg_trg_bonus_2500, function Trig_bonus_2500_Actions )
endfunction
function Trig_bonus_5000_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_5000_Func002Func002Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_5000_Func002Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_5000_Func002Func002Func004Func004Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_5000_Func002Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_5000_Func002Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_5000_Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_5000_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 5000 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_5000_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_5000_Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 3)
if ( Trig_bonus_5000_Func002Func002C() ) then
call AdjustPlayerStateBJ( 25000, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_5000_Func002Func002Func002001001)), "TRIGSTR_1142" )
else
if ( Trig_bonus_5000_Func002Func002Func004C() ) then
call AdjustPlayerStateBJ( ( 190 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_5000_Func002Func002Func004Func002001001)), "TRIGSTR_1143" )
else
if ( Trig_bonus_5000_Func002Func002Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 250 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 250 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 250 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_5000_Func002Func002Func004Func004Func004001001)), "TRIGSTR_1144" )
else
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_bonus_5000 takes nothing returns nothing
set gg_trg_bonus_5000 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_5000, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_5000, Condition( function Trig_bonus_5000_Conditions ) )
call TriggerAddAction( gg_trg_bonus_5000, function Trig_bonus_5000_Actions )
endfunction
function Trig_bonus_10000_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
return false
endif
return true
endfunction
function Trig_bonus_10000_Func002Func002Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_10000_Func002Func002Func004Func002001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_10000_Func002Func002Func004Func004Func004001001 takes nothing returns boolean
return ( GetOwningPlayer(GetKillingUnitBJ()) == GetFilterPlayer() )
endfunction
function Trig_bonus_10000_Func002Func002Func004Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 1 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_10000_Func002Func002Func004C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 3 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_10000_Func002Func002C takes nothing returns boolean
if ( not ( udg_Bonus_Kills_Random_Entier == 2 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_10000_Func002C takes nothing returns boolean
if ( not ( udg_Kill[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))] == 10000 ) ) then
return false
endif
return true
endfunction
function Trig_bonus_10000_Actions takes nothing returns nothing
call TriggerSleepAction( 0.01 )
if ( Trig_bonus_10000_Func002C() ) then
set udg_Bonus_Kills_Random_Entier = GetRandomInt(1, 3)
if ( Trig_bonus_10000_Func002Func002C() ) then
call AdjustPlayerStateBJ( 50000, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_10000_Func002Func002Func002001001)), "TRIGSTR_1145" )
else
if ( Trig_bonus_10000_Func002Func002Func004C() ) then
call AdjustPlayerStateBJ( ( 212 * ( GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD) / 100 ) ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_10000_Func002Func002Func004Func002001001)), "TRIGSTR_1146" )
else
if ( Trig_bonus_10000_Func002Func002Func004Func004C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 500 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 500 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetKillingUnitBJ(), bj_MODIFYMETHOD_ADD, 500 )
call DisplayTextToForce( GetPlayersMatching(Condition(function Trig_bonus_10000_Func002Func002Func004Func004Func004001001)), "TRIGSTR_1147" )
else
endif
endif
endif
else
endif
endfunction
//===========================================================================
function InitTrig_bonus_10000 takes nothing returns nothing
set gg_trg_bonus_10000 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_bonus_10000, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_bonus_10000, Condition( function Trig_bonus_10000_Conditions ) )
call TriggerAddAction( gg_trg_bonus_10000, function Trig_bonus_10000_Actions )
endfunction
function Trig_Test_Mode_Func001Func013001001001001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Test_Mode_Func001Func013001001001002 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Test_Mode_Func001Func013001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Test_Mode_Func001Func013001001001001(), Trig_Test_Mode_Func001Func013001001001002() )
endfunction
function Trig_Test_Mode_Func001C takes nothing returns boolean
if ( not ( CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Test_Mode_Func001Func013001001001))) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Test_Mode_Actions takes nothing returns nothing
if ( Trig_Test_Mode_Func001C() ) then
call EnableTrigger( gg_trg_All_Refresh )
call EnableTrigger( gg_trg_Life )
call EnableTrigger( gg_trg_Mana )
call EnableTrigger( gg_trg_Money )
call EnableTrigger( gg_trg_Refresh )
call EnableTrigger( gg_trg_Stats_10 )
call EnableTrigger( gg_trg_Stats_100 )
call EnableTrigger( gg_trg_Stats_1000 )
call EnableTrigger( gg_trg_Repel )
call EnableTrigger( gg_trg_Castle_Max )
call DisplayTimedTextToForce( GetPlayersAll(), 30, "TRIGSTR_927" )
else
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_929" )
endif
endfunction
//===========================================================================
function InitTrig_Test_Mode takes nothing returns nothing
set gg_trg_Test_Mode = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(0), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(1), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(2), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(3), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(4), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(5), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(6), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(7), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(8), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(9), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(10), "-test", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Test_Mode, Player(11), "-test", true )
call TriggerAddAction( gg_trg_Test_Mode, function Trig_Test_Mode_Actions )
endfunction
function Trig_Repel_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 15.00, "TRIGSTR_930" )
endfunction
//===========================================================================
function InitTrig_Repel takes nothing returns nothing
set gg_trg_Repel = CreateTrigger( )
call DisableTrigger( gg_trg_Repel )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(0), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(1), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(2), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(3), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(4), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(5), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(6), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(7), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(8), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(9), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(10), "-repel", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repel, Player(11), "-repel", true )
call TriggerAddAction( gg_trg_Repel, function Trig_Repel_Actions )
endfunction
function Trig_Stats_10_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Stats_10_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Stats_10_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Stats_10_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Stats_10_Func001001002002001(), Trig_Stats_10_Func001001002002002() )
endfunction
function Trig_Stats_10_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Stats_10_Func001001002001(), Trig_Stats_10_Func001001002002() )
endfunction
function Trig_Stats_10_Func001A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 10 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 10 )
endfunction
function Trig_Stats_10_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Stats_10_Func001001002)), function Trig_Stats_10_Func001A )
endfunction
//===========================================================================
function InitTrig_Stats_10 takes nothing returns nothing
set gg_trg_Stats_10 = CreateTrigger( )
call DisableTrigger( gg_trg_Stats_10 )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(0), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(1), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(2), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(3), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(4), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(5), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(6), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(7), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(8), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(9), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(10), "-stats 10", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_10, Player(11), "-stats 10", true )
call TriggerAddAction( gg_trg_Stats_10, function Trig_Stats_10_Actions )
endfunction
function Trig_Stats_100_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Stats_100_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Stats_100_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Stats_100_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Stats_100_Func001001002002001(), Trig_Stats_100_Func001001002002002() )
endfunction
function Trig_Stats_100_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Stats_100_Func001001002001(), Trig_Stats_100_Func001001002002() )
endfunction
function Trig_Stats_100_Func001A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 100 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 100 )
endfunction
function Trig_Stats_100_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Stats_100_Func001001002)), function Trig_Stats_100_Func001A )
endfunction
//===========================================================================
function InitTrig_Stats_100 takes nothing returns nothing
set gg_trg_Stats_100 = CreateTrigger( )
call DisableTrigger( gg_trg_Stats_100 )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(0), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(1), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(2), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(3), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(4), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(5), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(6), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(7), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(8), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(9), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(10), "-stats 100", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_100, Player(11), "-stats 100", true )
call TriggerAddAction( gg_trg_Stats_100, function Trig_Stats_100_Actions )
endfunction
function Trig_Stats_1000_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Stats_1000_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Stats_1000_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Stats_1000_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Stats_1000_Func001001002002001(), Trig_Stats_1000_Func001001002002002() )
endfunction
function Trig_Stats_1000_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Stats_1000_Func001001002001(), Trig_Stats_1000_Func001001002002() )
endfunction
function Trig_Stats_1000_Func001A takes nothing returns nothing
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 1000 )
call ModifyHeroStat( bj_HEROSTAT_AGI, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 1000 )
call ModifyHeroStat( bj_HEROSTAT_INT, GetEnumUnit(), bj_MODIFYMETHOD_ADD, 1000 )
endfunction
function Trig_Stats_1000_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Stats_1000_Func001001002)), function Trig_Stats_1000_Func001A )
endfunction
//===========================================================================
function InitTrig_Stats_1000 takes nothing returns nothing
set gg_trg_Stats_1000 = CreateTrigger( )
call DisableTrigger( gg_trg_Stats_1000 )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(0), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(1), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(2), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(3), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(4), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(5), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(6), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(7), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(8), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(9), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(10), "-stats 1000", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Stats_1000, Player(11), "-stats 1000", true )
call TriggerAddAction( gg_trg_Stats_1000, function Trig_Stats_1000_Actions )
endfunction
function Trig_Life_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Life_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Life_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Life_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Life_Func001001002002001(), Trig_Life_Func001001002002002() )
endfunction
function Trig_Life_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Life_Func001001002001(), Trig_Life_Func001001002002() )
endfunction
function Trig_Life_Func001A takes nothing returns nothing
call SetUnitLifePercentBJ( GetEnumUnit(), 100 )
endfunction
function Trig_Life_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Life_Func001001002)), function Trig_Life_Func001A )
endfunction
//===========================================================================
function InitTrig_Life takes nothing returns nothing
set gg_trg_Life = CreateTrigger( )
call DisableTrigger( gg_trg_Life )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(0), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(1), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(2), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(3), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(4), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(5), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(6), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(7), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(8), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(9), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(10), "-life", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Life, Player(11), "-life", true )
call TriggerAddAction( gg_trg_Life, function Trig_Life_Actions )
endfunction
function Trig_Mana_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Mana_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Mana_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Mana_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mana_Func001001002002001(), Trig_Mana_Func001001002002002() )
endfunction
function Trig_Mana_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Mana_Func001001002001(), Trig_Mana_Func001001002002() )
endfunction
function Trig_Mana_Func001A takes nothing returns nothing
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
endfunction
function Trig_Mana_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Mana_Func001001002)), function Trig_Mana_Func001A )
endfunction
//===========================================================================
function InitTrig_Mana takes nothing returns nothing
set gg_trg_Mana = CreateTrigger( )
call DisableTrigger( gg_trg_Mana )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(0), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(1), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(2), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(3), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(4), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(5), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(6), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(7), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(8), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(9), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(10), "-mana", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Mana, Player(11), "-mana", true )
call TriggerAddAction( gg_trg_Mana, function Trig_Mana_Actions )
endfunction
function Trig_Refresh_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Refresh_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_Refresh_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Refresh_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Refresh_Func001001002002001(), Trig_Refresh_Func001001002002002() )
endfunction
function Trig_Refresh_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Refresh_Func001001002001(), Trig_Refresh_Func001001002002() )
endfunction
function Trig_Refresh_Func001A takes nothing returns nothing
call UnitResetCooldown( GetEnumUnit() )
endfunction
function Trig_Refresh_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Refresh_Func001001002)), function Trig_Refresh_Func001A )
endfunction
//===========================================================================
function InitTrig_Refresh takes nothing returns nothing
set gg_trg_Refresh = CreateTrigger( )
call DisableTrigger( gg_trg_Refresh )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(0), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(1), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(2), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(3), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(4), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(5), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(6), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(7), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(8), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(9), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(10), "-refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Refresh, Player(11), "-refresh", true )
call TriggerAddAction( gg_trg_Refresh, function Trig_Refresh_Actions )
endfunction
function Trig_All_Refresh_Func001001002001 takes nothing returns boolean
return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_All_Refresh_Func001001002002001 takes nothing returns boolean
return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction
function Trig_All_Refresh_Func001001002002002 takes nothing returns boolean
return ( GetPlayerSlotState(GetOwningPlayer(GetFilterUnit())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_All_Refresh_Func001001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_All_Refresh_Func001001002002001(), Trig_All_Refresh_Func001001002002002() )
endfunction
function Trig_All_Refresh_Func001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_All_Refresh_Func001001002001(), Trig_All_Refresh_Func001001002002() )
endfunction
function Trig_All_Refresh_Func001A takes nothing returns nothing
call UnitResetCooldown( GetEnumUnit() )
call SetUnitManaPercentBJ( GetEnumUnit(), 100 )
call SetUnitLifePercentBJ( GetEnumUnit(), 100 )
endfunction
function Trig_All_Refresh_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_All_Refresh_Func001001002)), function Trig_All_Refresh_Func001A )
endfunction
//===========================================================================
function InitTrig_All_Refresh takes nothing returns nothing
set gg_trg_All_Refresh = CreateTrigger( )
call DisableTrigger( gg_trg_All_Refresh )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(0), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(1), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(2), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(3), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(4), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(5), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(6), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(7), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(8), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(9), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(10), "-all refresh", true )
call TriggerRegisterPlayerChatEvent( gg_trg_All_Refresh, Player(11), "-all refresh", true )
call TriggerAddAction( gg_trg_All_Refresh, function Trig_All_Refresh_Actions )
endfunction
function Trig_Money_Func001001001001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Money_Func001001001002 takes nothing returns boolean
return ( GetPlayerController(GetFilterPlayer()) == MAP_CONTROL_USER )
endfunction
function Trig_Money_Func001001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Money_Func001001001001(), Trig_Money_Func001001001002() )
endfunction
function Trig_Money_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ( 1000, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Money_Actions takes nothing returns nothing
call ForForce( GetPlayersMatching(Condition(function Trig_Money_Func001001001)), function Trig_Money_Func001A )
endfunction
//===========================================================================
function InitTrig_Money takes nothing returns nothing
set gg_trg_Money = CreateTrigger( )
call DisableTrigger( gg_trg_Money )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(0), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(1), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(2), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(3), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(4), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(5), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(6), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(7), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(8), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(9), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(10), "-money", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Money, Player(11), "-money", true )
call TriggerAddAction( gg_trg_Money, function Trig_Money_Actions )
endfunction
function Trig_Castle_Max_Actions takes nothing returns nothing
call SetUnitLifeBJ( gg_unit_h000_0000, GetUnitStateSwap(UNIT_STATE_MAX_LIFE, gg_unit_h000_0000) )
endfunction
//===========================================================================
function InitTrig_Castle_Max takes nothing returns nothing
set gg_trg_Castle_Max = CreateTrigger( )
call DisableTrigger( gg_trg_Castle_Max )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(0), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(1), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(2), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(3), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(4), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(5), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(6), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(7), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(8), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(9), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(10), "-castle max", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Castle_Max, Player(11), "-castle max", true )
call TriggerAddAction( gg_trg_Castle_Max, function Trig_Castle_Max_Actions )
endfunction
function Trig_Who_Want_To_Be_Millionaire_Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "overhead", GetEnumUnit(), "Objects\\InventoryItems\\PotofGold\\PotofGold.mdl" )
endfunction
function Trig_Who_Want_To_Be_Millionaire_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( "Who Want To Be A Millionaire ? " + ( GetPlayerName(GetTriggerPlayer()) + ( " want to be a millionaire ! Last Question... Oh My God ! It's again the good answer ! It's a Perfect ! " + ( GetPlayerName(GetTriggerPlayer()) + " is now a millionaire !" ) ) ) ) )
call ForGroupBJ( GetUnitsInRectOfPlayer(GetPlayableMapRect(), GetTriggerPlayer()), function Trig_Who_Want_To_Be_Millionaire_Func002A )
endfunction
//===========================================================================
function InitTrig_Who_Want_To_Be_Millionaire takes nothing returns nothing
set gg_trg_Who_Want_To_Be_Millionaire = CreateTrigger( )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(0), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(1), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(2), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(3), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(4), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(5), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(6), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(7), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(8), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(9), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(10), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerRegisterPlayerStateEvent( gg_trg_Who_Want_To_Be_Millionaire, Player(11), PLAYER_STATE_RESOURCE_GOLD, GREATER_THAN_OR_EQUAL, 1000000.00 )
call TriggerAddAction( gg_trg_Who_Want_To_Be_Millionaire, function Trig_Who_Want_To_Be_Millionaire_Actions )
endfunction
function Trig_Anti_MapHack_Func003C takes nothing returns boolean
if ( ( IsFogEnabled() == false ) ) then
return true
endif
if ( ( IsFogMaskEnabled() == false ) ) then
return true
endif
return false
endfunction
function Trig_Anti_MapHack_Conditions takes nothing returns boolean
if ( not Trig_Anti_MapHack_Func003C() ) then
return false
endif
return true
endfunction
function Trig_Anti_MapHack_Actions takes nothing returns nothing
call FogEnableOn( )
call FogMaskEnableOn( )
endfunction
//===========================================================================
function InitTrig_Anti_MapHack takes nothing returns nothing
set gg_trg_Anti_MapHack = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Anti_MapHack, 0.10 )
call TriggerAddCondition( gg_trg_Anti_MapHack, Condition( function Trig_Anti_MapHack_Conditions ) )
call TriggerAddAction( gg_trg_Anti_MapHack, function Trig_Anti_MapHack_Actions )
endfunction
function Trig_AdminsModos_Func001Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Vladadamm" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "vlada_dotA" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func001Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func001Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func002Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "P0P0M]" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "PoneyPRO" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func002Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func002Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func003Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Dryzz" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Dryzzer" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func003Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func003Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func004Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Wareditor" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "AresTBR" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func004Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func004Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func005Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Sadradifu" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func005Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func005Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func006Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Hoth" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func006Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func006Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func007Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Nerzulll" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func007Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func007Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func008Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Nykhret" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Dracorb" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func008Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func008Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func009Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Fulldragon" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Osef." ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func009Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func009Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func010Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Detheroc" ) ) then
return true
endif
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Guileastos" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func010Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func010Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Func011Func001Func001C takes nothing returns boolean
if ( ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) == "Kisame97one" ) ) then
return true
endif
return false
endfunction
function Trig_AdminsModos_Func011Func001C takes nothing returns boolean
if ( not Trig_AdminsModos_Func011Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_AdminsModos_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func001Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Super-Admin Vos droits : Kicker fou !" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func002Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Admin Vos droits : Kicks autres que Admins" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func003Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func004Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func005Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func006Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func007Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func008Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func009Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func010Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_AdminsModos_Func011Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( "Bonjour " + ( GetPlayerName(ConvertedPlayer(GetForLoopIndexA())) + " ! Votre rang : Modérateur Vos droits : Kicks autres que Admins et Modos" ) ) )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_AdminsModos takes nothing returns nothing
set gg_trg_AdminsModos = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_AdminsModos, 1.00 )
call TriggerAddAction( gg_trg_AdminsModos, function Trig_AdminsModos_Actions )
endfunction
function Trig_Kick_Conditions takes nothing returns boolean
if ( not ( "-kick Vladadamm" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick vlada_dotA" != GetEventPlayerChatString() ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func001Func017C takes nothing returns boolean
if ( ( GetPlayerName(GetTriggerPlayer()) == "Wareditor" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "AresTBR" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Dryzz" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Dryzzer" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Hoth" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Nerzulll" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Nykhret" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Dracorb" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Sadradifu" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "fulldragon" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "osef." ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Detheroc" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Guileastos" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Kisame97one" ) ) then
return true
endif
return false
endfunction
function Trig_Kick_Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( "-kick P0P0M]" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick PoneyPRO" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Wareditor" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick AresTBR" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Dryzz" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Dryzzer" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Hoth" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Nerzulll" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Dracorb" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Nykhret" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Sadradifu" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick fulldragon" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick osef." != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Detheroc" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Guileastos" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick Kisame97one" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not Trig_Kick_Func001Func001Func001Func001Func017C() ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(11)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(10)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(9)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(8)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(7)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(6)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(5)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(4)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(3)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(2)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(1)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001Func002C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(0)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func001C takes nothing returns boolean
if ( not Trig_Kick_Func001Func001Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(11)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(10)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(9)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(8)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(7)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(6)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(5)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(4)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(3)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(2)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(1)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func002C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(0)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001Func003Func003C takes nothing returns boolean
if ( ( GetPlayerName(GetTriggerPlayer()) == "P0P0M]" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "PoneyPRO" ) ) then
return true
endif
return false
endfunction
function Trig_Kick_Func001Func001Func003C takes nothing returns boolean
if ( not ( "-kick P0P0M]" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( "-kick PoneyPRO" != GetEventPlayerChatString() ) ) then
return false
endif
if ( not Trig_Kick_Func001Func001Func003Func003C() ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func001C takes nothing returns boolean
if ( not Trig_Kick_Func001Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(11)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(10)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(10) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(9)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(9) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(8)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(8) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(7)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(7) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(6)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(5)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(4)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(3)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(2)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002Func001C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(1)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func002C takes nothing returns boolean
if ( not ( ( "-kick " + GetPlayerName(Player(0)) ) == GetEventPlayerChatString() ) ) then
return false
endif
if ( not ( GetTriggerPlayer() != Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_Kick_Func001Func003C takes nothing returns boolean
if ( ( GetPlayerName(GetTriggerPlayer()) == "Vladadamm" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "vlada_dotA" ) ) then
return true
endif
return false
endfunction
function Trig_Kick_Func001C takes nothing returns boolean
if ( not Trig_Kick_Func001Func003C() ) then
return false
endif
return true
endfunction
function Trig_Kick_Actions takes nothing returns nothing
if ( Trig_Kick_Func001C() ) then
if ( Trig_Kick_Func001Func002C() ) then
call CustomDefeatBJ( Player(0), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(0)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001C() ) then
call CustomDefeatBJ( Player(1), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(1)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001C() ) then
call CustomDefeatBJ( Player(2), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(2)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(3), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(3)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(4), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(4)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(5), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(5)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(6), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(6)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(7), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(7)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(8), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(8)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(9), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(9)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(10), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(10)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(11), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(11)) + " !" ) ) ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_Kick_Func001Func001C() ) then
if ( Trig_Kick_Func001Func001Func002C() ) then
call CustomDefeatBJ( Player(0), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(0)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001C() ) then
call CustomDefeatBJ( Player(1), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(1)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001C() ) then
call CustomDefeatBJ( Player(2), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(2)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(3), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(3)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(4), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(4)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(5), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(5)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(6), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(6)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(7), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(7)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(8), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(8)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(9), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(9)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(10), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(10)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(11), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(11)) + " !" ) ) ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if ( Trig_Kick_Func001Func001Func001C() ) then
if ( Trig_Kick_Func001Func001Func001Func002C() ) then
call CustomDefeatBJ( Player(0), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(0)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001C() ) then
call CustomDefeatBJ( Player(1), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(1)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001C() ) then
call CustomDefeatBJ( Player(2), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(2)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(3), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(3)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(4), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(4)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(5), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(5)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(6), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(6)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(7), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(7)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(8), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(8)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(9), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(9)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(10), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(10)) + " !" ) ) ) )
else
if ( Trig_Kick_Func001Func001Func001Func002Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C() ) then
call CustomDefeatBJ( Player(11), ( "You just been kicked by " + ( GetPlayerName(GetTriggerPlayer()) + " !" ) ) )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + ( " has kick " + ( GetPlayerName(Player(11)) + " !" ) ) ) )
else
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
endif
endif
endif
endfunction
//===========================================================================
function InitTrig_Kick takes nothing returns nothing
set gg_trg_Kick = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(0), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(1), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(2), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(3), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(4), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(5), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(6), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(7), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(8), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(9), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(10), "-kick", false )
call TriggerRegisterPlayerChatEvent( gg_trg_Kick, Player(11), "-kick", false )
call TriggerAddCondition( gg_trg_Kick, Condition( function Trig_Kick_Conditions ) )
call TriggerAddAction( gg_trg_Kick, function Trig_Kick_Actions )
endfunction
function Trig_Clear_all_Func002C takes nothing returns boolean
if ( ( GetPlayerName(GetTriggerPlayer()) == "Wareditor" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "AresTBR" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Dryzz" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Dryzzer" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Hoth" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Nerzulll" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Nykhret" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Dracorb" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Sadradifu" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "P0P0M]" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "PoneyPRO" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Vladadamm" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "vlada_dotA" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "fulldragon" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "osef." ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Detheroc" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Guileastos" ) ) then
return true
endif
if ( ( GetPlayerName(GetTriggerPlayer()) == "Kisame97one" ) ) then
return true
endif
return false
endfunction
function Trig_Clear_all_Conditions takes nothing returns boolean
if ( not Trig_Clear_all_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Clear_all_Actions takes nothing returns nothing
call ClearTextMessagesBJ( GetPlayersAll() )
endfunction
//===========================================================================
function InitTrig_Clear_all takes nothing returns nothing
set gg_trg_Clear_all = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(0), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(1), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(2), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(3), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(4), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(5), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(6), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(7), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(8), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(9), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(10), "-clear all", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Clear_all, Player(11), "-clear all", true )
call TriggerAddCondition( gg_trg_Clear_all, Condition( function Trig_Clear_all_Conditions ) )
call TriggerAddAction( gg_trg_Clear_all, function Trig_Clear_all_Actions )
endfunction