Name | Type | is_array | initial_value |
Abilities | boolean | No | |
Game_On_OFF | boolean | No | |
Game_Timer | timer | No | |
Random_Chance | integer | No | |
Run_Tag | triggeraction | No | |
Sheep_Group | force | No | |
Switch_Group_Sh | force | No | |
Switch_Group_W | force | No | |
Wolf_Group | force | No |
function Trig_Melee_Initialization_Func001Func009A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Melee_Initialization_Func001A takes nothing returns nothing
call SetPlayerTechMaxAllowedSwap( 'h00G', 5, GetEnumPlayer() )
call SetPlayerTechMaxAllowedSwap( 'h00F', 20, GetEnumPlayer() )
call SetPlayerTechMaxAllowedSwap( 'h00K', 15, GetEnumPlayer() )
call SetPlayerTechMaxAllowedSwap( 'h00R', 10, GetEnumPlayer() )
call SetPlayerTechMaxAllowedSwap( 'h00S', 5, GetEnumPlayer() )
call SetPlayerTechMaxAllowedSwap( 'h00T', 5, GetEnumPlayer() )
call SetPlayerTechMaxAllowedSwap( 'h00U', 2, GetEnumPlayer() )
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 30 )
call ForGroupBJ( GetUnitsOfPlayerAll(GetEnumPlayer()), function Trig_Melee_Initialization_Func001Func009A )
endfunction
function Trig_Melee_Initialization_Func002A takes nothing returns nothing
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, GetEnumPlayer() )
endfunction
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_Melee_Initialization_Func001A )
call ForForce( GetPlayersAll(), function Trig_Melee_Initialization_Func002A )
endfunction
//===========================================================================
function InitTrig_Melee_Initialization takes nothing returns nothing
set gg_trg_Melee_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Melee_Initialization, function Trig_Melee_Initialization_Actions )
endfunction
function Trig_Destroy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTrainedUnit()) == 'h00L' ) ) then
return false
endif
return true
endfunction
function Trig_Destroy_Actions takes nothing returns nothing
call RemoveUnit( GetTrainedUnit() )
call RemoveUnit( GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Destroy takes nothing returns nothing
set gg_trg_Destroy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Destroy, EVENT_PLAYER_UNIT_TRAIN_FINISH )
call TriggerAddCondition( gg_trg_Destroy, Condition( function Trig_Destroy_Conditions ) )
call TriggerAddAction( gg_trg_Destroy, function Trig_Destroy_Actions )
endfunction
function Trig_Destroy_All_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h00V' ) ) then
return false
endif
return true
endfunction
function Trig_Destroy_All_Func002001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) != 'U000' )
endfunction
function Trig_Destroy_All_Func002A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Destroy_All_Actions takes nothing returns nothing
call RemoveUnit( GetSoldUnit() )
call ForGroupBJ( GetUnitsOfPlayerMatching(GetOwningPlayer(GetSellingUnit()), Condition(function Trig_Destroy_All_Func002001002)), function Trig_Destroy_All_Func002A )
endfunction
//===========================================================================
function InitTrig_Destroy_All takes nothing returns nothing
set gg_trg_Destroy_All = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Destroy_All, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Destroy_All, Condition( function Trig_Destroy_All_Conditions ) )
call TriggerAddAction( gg_trg_Destroy_All, function Trig_Destroy_All_Actions )
endfunction
function Trig_Round_1_Actions takes nothing returns nothing
call ConditionalTriggerExecute( gg_trg_Generic_Script_Start )
set udg_Abilities = false
endfunction
//===========================================================================
function InitTrig_Round_1 takes nothing returns nothing
set gg_trg_Round_1 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Round_1, 0.50 )
call TriggerAddAction( gg_trg_Round_1, function Trig_Round_1_Actions )
endfunction
function Trig_Generic_Script_Start_Func010C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func012Func001A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Generic_Script_Start_Func012A takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetEnumPlayer()), function Trig_Generic_Script_Start_Func012Func001A )
endfunction
function Trig_Generic_Script_Start_Func013A takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Select), 0 )
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 30 )
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 0 )
endfunction
function Trig_Generic_Script_Start_Func014Func001A takes nothing returns nothing
call SetUnitOwner( gg_unit_h00A_0009, GetEnumPlayer(), true )
call DisplayTextToForce( GetPlayersAll(), ( "Since RED is not here, the Sanctum will be given to " + GetPlayerName(GetOwningPlayer(gg_unit_h00A_0009)) ) )
endfunction
function Trig_Generic_Script_Start_Func014C takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func018Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(0)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func018C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func018Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func019Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(1)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func019C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func019Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func020Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(2)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func020C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func020Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func021Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(3)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func021C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func021Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func022Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(4)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func022C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func022Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func023Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(5)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func023C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func023Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func025Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(6)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func025C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func025Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func026Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(7)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func026C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func026Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func027Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(8)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func027C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func027Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func028Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(9)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func028C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func028Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func029Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(10)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func029C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func029Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func030Func002C takes nothing returns boolean
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
if ( not ( GetPlayerSlotState(Player(11)) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Func030C takes nothing returns boolean
if ( not Trig_Generic_Script_Start_Func030Func002C() ) then
return false
endif
return true
endfunction
function Trig_Generic_Script_Start_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_Abilities_SMASH )
call DisableTrigger( gg_trg_Switch )
call DisableTrigger( gg_trg_InstaBuild )
call EnableTrigger( gg_trg_Attacked )
call EnableTrigger( gg_trg_Wispy )
call FogEnableOn( )
call FogMaskEnableOn( )
call DisableTrigger( gg_trg_RunTag )
set udg_Abilities = false
if ( Trig_Generic_Script_Start_Func010C() ) then
set udg_Game_On_OFF = false
else
set udg_Game_On_OFF = true
endif
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_052" )
call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_Generic_Script_Start_Func012A )
call ForForce( GetPlayersAll(), function Trig_Generic_Script_Start_Func013A )
if ( Trig_Generic_Script_Start_Func014C() ) then
call SetUnitOwner( gg_unit_h00A_0009, Player(0), true )
else
call ForForce( GetPlayersByMapControl(GetPlayerController(ForcePickRandomPlayer(GetPlayersByMapControl(MAP_CONTROL_USER)))), function Trig_Generic_Script_Start_Func014Func001A )
endif
call TriggerSleepAction( 0.01 )
call SelectUnitForPlayerSingle( gg_unit_h00A_0009, GetOwningPlayer(gg_unit_h00A_0009) )
// Sheepies
if ( Trig_Generic_Script_Start_Func018C() ) then
call ForceAddPlayerSimple( Player(0), udg_Sheep_Group )
else
endif
if ( Trig_Generic_Script_Start_Func019C() ) then
call ForceAddPlayerSimple( Player(1), udg_Sheep_Group )
else
endif
if ( Trig_Generic_Script_Start_Func020C() ) then
call ForceAddPlayerSimple( Player(2), udg_Sheep_Group )
else
endif
if ( Trig_Generic_Script_Start_Func021C() ) then
call ForceAddPlayerSimple( Player(3), udg_Sheep_Group )
else
endif
if ( Trig_Generic_Script_Start_Func022C() ) then
call ForceAddPlayerSimple( Player(4), udg_Sheep_Group )
else
endif
if ( Trig_Generic_Script_Start_Func023C() ) then
call ForceAddPlayerSimple( Player(5), udg_Sheep_Group )
else
endif
// Wolfies
if ( Trig_Generic_Script_Start_Func025C() ) then
call ForceAddPlayerSimple( Player(6), udg_Wolf_Group )
else
endif
if ( Trig_Generic_Script_Start_Func026C() ) then
call ForceAddPlayerSimple( Player(7), udg_Wolf_Group )
else
endif
if ( Trig_Generic_Script_Start_Func027C() ) then
call ForceAddPlayerSimple( Player(8), udg_Wolf_Group )
else
endif
if ( Trig_Generic_Script_Start_Func028C() ) then
call ForceAddPlayerSimple( Player(9), udg_Wolf_Group )
else
endif
if ( Trig_Generic_Script_Start_Func029C() ) then
call ForceAddPlayerSimple( Player(10), udg_Wolf_Group )
else
endif
if ( Trig_Generic_Script_Start_Func030C() ) then
call ForceAddPlayerSimple( Player(11), udg_Wolf_Group )
else
endif
endfunction
//===========================================================================
function InitTrig_Generic_Script_Start takes nothing returns nothing
set gg_trg_Generic_Script_Start = CreateTrigger( )
call TriggerAddAction( gg_trg_Generic_Script_Start, function Trig_Generic_Script_Start_Actions )
endfunction
function Trig_Start_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h006' ) ) then
return false
endif
return true
endfunction
function Trig_Start_Func001A takes nothing returns nothing
call SetForceAllianceStateBJ( udg_Sheep_Group, udg_Wolf_Group, bj_ALLIANCE_UNALLIED )
call SetForceAllianceStateBJ( udg_Sheep_Group, udg_Sheep_Group, bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Func002A takes nothing returns nothing
call SetForceAllianceStateBJ( udg_Wolf_Group, udg_Sheep_Group, bj_ALLIANCE_UNALLIED )
call SetForceAllianceStateBJ( udg_Wolf_Group, udg_Wolf_Group, bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Func007Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerInForce(GetEnumPlayer(), udg_Sheep_Group) == true ) ) then
return false
endif
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
return true
endfunction
function Trig_Start_Func007Func001C takes nothing returns boolean
if ( not Trig_Start_Func007Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Start_Func007A takes nothing returns nothing
if ( Trig_Start_Func007Func001C() ) then
call CreateNUnitsAtLoc( 1, 'U000', GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), 0 )
else
endif
endfunction
function Trig_Start_Func008Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerInForce(GetEnumPlayer(), udg_Wolf_Group) == true ) ) then
return false
endif
if ( not ( udg_Game_On_OFF == false ) ) then
return false
endif
return true
endfunction
function Trig_Start_Func008Func001C takes nothing returns boolean
if ( not Trig_Start_Func008Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Start_Func008A takes nothing returns nothing
if ( Trig_Start_Func008Func001C() ) then
call CreateNUnitsAtLoc( 1, 'U000', GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), 0 )
else
endif
endfunction
function Trig_Start_Func011Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerInForce(GetEnumPlayer(), udg_Wolf_Group) == true ) ) then
return false
endif
if ( not ( udg_Game_On_OFF == true ) ) then
return false
endif
return true
endfunction
function Trig_Start_Func011Func001C takes nothing returns boolean
if ( not Trig_Start_Func011Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Start_Func011A takes nothing returns nothing
if ( Trig_Start_Func011Func001C() ) then
call CreateNUnitsAtLoc( 1, 'H000', GetEnumPlayer(), GetRectCenter(gg_rct_Wolf_Spawn), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Wolf_Spawn), 0 )
else
endif
endfunction
function Trig_Start_Func012Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerInForce(GetEnumPlayer(), udg_Sheep_Group) == true ) ) then
return false
endif
if ( not ( udg_Game_On_OFF == false ) ) then
return false
endif
return true
endfunction
function Trig_Start_Func012Func001C takes nothing returns boolean
if ( not Trig_Start_Func012Func001Func001C() ) then
return false
endif
return true
endfunction
function Trig_Start_Func012A takes nothing returns nothing
if ( Trig_Start_Func012Func001C() ) then
call CreateNUnitsAtLoc( 1, 'H000', GetEnumPlayer(), GetRectCenter(gg_rct_Wolf_Spawn), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetEnumPlayer(), GetRectCenter(gg_rct_Wolf_Spawn), 0 )
else
endif
endfunction
function Trig_Start_Actions takes nothing returns nothing
call ForForce( udg_Sheep_Group, function Trig_Start_Func001A )
call ForForce( udg_Wolf_Group, function Trig_Start_Func002A )
call RemoveUnit( GetSoldUnit() )
call TriggerSleepAction( 0.50 )
call SetUnitOwner( gg_unit_h00A_0009, Player(PLAYER_NEUTRAL_PASSIVE), true )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_053" )
call ForForce( GetPlayersAll(), function Trig_Start_Func007A )
call ForForce( GetPlayersAll(), function Trig_Start_Func008A )
call TriggerSleepAction( 7.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_054" )
call ForForce( GetPlayersAll(), function Trig_Start_Func011A )
call ForForce( GetPlayersAll(), function Trig_Start_Func012A )
call StartTimerBJ( udg_Game_Timer, false, ( I2R(CountPlayersInForceBJ(GetPlayersByMapControl(MAP_CONTROL_USER))) * 120.00 ) )
call DisplayTextToForce( GetPlayersAll(), ( "The Game will end in " + ( I2S(( CountPlayersInForceBJ(GetPlayersByMapControl(MAP_CONTROL_USER)) * 120 )) + " seconds." ) ) )
call CreateTimerDialogBJ( udg_Game_Timer, "TRIGSTR_064" )
endfunction
//===========================================================================
function InitTrig_Start takes nothing returns nothing
set gg_trg_Start = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Start, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Start, Condition( function Trig_Start_Conditions ) )
call TriggerAddAction( gg_trg_Start, function Trig_Start_Actions )
endfunction
function Trig_End_Func003A takes nothing returns nothing
call SetPlayerUnitAvailableBJ( 'h010', false, GetEnumPlayer() )
call SetPlayerUnitAvailableBJ( 'h00Z', true, GetEnumPlayer() )
endfunction
function Trig_End_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_065" )
call ConditionalTriggerExecute( gg_trg_Generic_Script_Start )
call ForForce( GetPlayersAll(), function Trig_End_Func003A )
endfunction
//===========================================================================
function InitTrig_End takes nothing returns nothing
set gg_trg_End = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_End, udg_Game_Timer )
call TriggerAddAction( gg_trg_End, function Trig_End_Actions )
endfunction
function Trig_View_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h008' ) ) then
return false
endif
return true
endfunction
function Trig_View_Actions takes nothing returns nothing
call RemoveUnit( GetSoldUnit() )
call FogEnableOff( )
call FogMaskEnableOff( )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_063" )
endfunction
//===========================================================================
function InitTrig_View takes nothing returns nothing
set gg_trg_View = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_View, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_View, Condition( function Trig_View_Conditions ) )
call TriggerAddAction( gg_trg_View, function Trig_View_Actions )
endfunction
function Trig_Disable_Shops_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h004' ) ) then
return false
endif
return true
endfunction
function Trig_Disable_Shops_Func002A takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'n000', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
function Trig_Disable_Shops_Func003A takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'n001', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
function Trig_Disable_Shops_Func004A takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'n003', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
function Trig_Disable_Shops_Func006A takes nothing returns nothing
call WaygateActivateBJ( false, GetEnumUnit() )
endfunction
function Trig_Disable_Shops_Actions takes nothing returns nothing
call RemoveUnit( GetSoldUnit() )
call ForGroupBJ( GetUnitsOfTypeIdAll('ngme'), function Trig_Disable_Shops_Func002A )
call ForGroupBJ( GetUnitsOfTypeIdAll('nfoh'), function Trig_Disable_Shops_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('nmoo'), function Trig_Disable_Shops_Func004A )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_062" )
call ForGroupBJ( GetUnitsOfTypeIdAll('nwgt'), function Trig_Disable_Shops_Func006A )
endfunction
//===========================================================================
function InitTrig_Disable_Shops takes nothing returns nothing
set gg_trg_Disable_Shops = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Disable_Shops, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Disable_Shops, Condition( function Trig_Disable_Shops_Conditions ) )
call TriggerAddAction( gg_trg_Disable_Shops, function Trig_Disable_Shops_Actions )
endfunction
function Trig_Enable_Shops_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h005' ) ) then
return false
endif
return true
endfunction
function Trig_Enable_Shops_Func003A takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'ngme', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
function Trig_Enable_Shops_Func004A takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'nfoh', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
function Trig_Enable_Shops_Func005A takes nothing returns nothing
call ReplaceUnitBJ( GetEnumUnit(), 'nmoo', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
function Trig_Enable_Shops_Func006A takes nothing returns nothing
call WaygateActivateBJ( true, GetEnumUnit() )
endfunction
function Trig_Enable_Shops_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_061" )
call RemoveUnit( GetSoldUnit() )
call ForGroupBJ( GetUnitsOfTypeIdAll('n000'), function Trig_Enable_Shops_Func003A )
call ForGroupBJ( GetUnitsOfTypeIdAll('n001'), function Trig_Enable_Shops_Func004A )
call ForGroupBJ( GetUnitsOfTypeIdAll('n003'), function Trig_Enable_Shops_Func005A )
call ForGroupBJ( GetUnitsOfTypeIdAll('nwgt'), function Trig_Enable_Shops_Func006A )
endfunction
//===========================================================================
function InitTrig_Enable_Shops takes nothing returns nothing
set gg_trg_Enable_Shops = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Enable_Shops, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Enable_Shops, Condition( function Trig_Enable_Shops_Conditions ) )
call TriggerAddAction( gg_trg_Enable_Shops, function Trig_Enable_Shops_Actions )
endfunction
function Trig_Abilities_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h003' ) ) then
return false
endif
return true
endfunction
function Trig_Abilities_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_060" )
call RemoveUnit( GetSoldUnit() )
call EnableTrigger( gg_trg_Abilities_SMASH )
endfunction
//===========================================================================
function InitTrig_Abilities takes nothing returns nothing
set gg_trg_Abilities = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Abilities, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Abilities, Condition( function Trig_Abilities_Conditions ) )
call TriggerAddAction( gg_trg_Abilities, function Trig_Abilities_Actions )
endfunction
function Trig_Abilities_SMASH_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'H000' ) ) then
return false
endif
return true
endfunction
function Trig_Abilities_SMASH_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'ACbh', GetAttacker() )
call UnitAddAbilityBJ( 'Ablo', GetAttacker() )
call UnitAddAbilityBJ( 'ACcl', GetAttacker() )
call UnitAddAbilityBJ( 'Afod', GetAttacker() )
endfunction
//===========================================================================
function InitTrig_Abilities_SMASH takes nothing returns nothing
set gg_trg_Abilities_SMASH = CreateTrigger( )
call DisableTrigger( gg_trg_Abilities_SMASH )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Abilities_SMASH, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Abilities_SMASH, Condition( function Trig_Abilities_SMASH_Conditions ) )
call TriggerAddAction( gg_trg_Abilities_SMASH, function Trig_Abilities_SMASH_Actions )
endfunction
function Trig_Running_Tag_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h002' ) ) then
return false
endif
return true
endfunction
function Trig_Running_Tag_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_059" )
call RemoveUnit( GetSoldUnit() )
call EnableTrigger( gg_trg_RunTag )
endfunction
//===========================================================================
function InitTrig_Running_Tag takes nothing returns nothing
set gg_trg_Running_Tag = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Running_Tag, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Running_Tag, Condition( function Trig_Running_Tag_Conditions ) )
call TriggerAddAction( gg_trg_Running_Tag, function Trig_Running_Tag_Actions )
endfunction
function Trig_RunTag_Actions takes nothing returns nothing
call TriggerSleepAction( 5.00 )
call RemoveUnit( GetConstructedStructure() )
endfunction
//===========================================================================
function InitTrig_RunTag takes nothing returns nothing
set gg_trg_RunTag = CreateTrigger( )
call DisableTrigger( gg_trg_RunTag )
call TriggerRegisterAnyUnitEventBJ( gg_trg_RunTag, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddAction( gg_trg_RunTag, function Trig_RunTag_Actions )
endfunction
function Trig_Gold_Func001A takes nothing returns nothing
call AddHeroXPSwapped( 2, GetEnumUnit(), false )
endfunction
function Trig_Gold_Func002A takes nothing returns nothing
call AdjustPlayerStateBJ( 1, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Gold_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(GetEntireMapRect()), function Trig_Gold_Func001A )
call ForForce( GetPlayersAll(), function Trig_Gold_Func002A )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(0)), Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(1)), Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(2)), Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(3)), Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(4)), Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(5)), Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(6)), Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(7)), Player(7), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(8)), Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(9)), Player(9), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(10)), Player(10), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( CountLivingPlayerUnitsOfTypeId('h00N', Player(11)), Player(11), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Gold takes nothing returns nothing
set gg_trg_Gold = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Gold, 10.00 )
call TriggerAddAction( gg_trg_Gold, function Trig_Gold_Actions )
endfunction
function Trig_Instant_Build_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h00C' ) ) then
return false
endif
return true
endfunction
function Trig_Instant_Build_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_084" )
call RemoveUnit( GetSoldUnit() )
call EnableTrigger( gg_trg_InstaBuild )
endfunction
//===========================================================================
function InitTrig_Instant_Build takes nothing returns nothing
set gg_trg_Instant_Build = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Instant_Build, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Instant_Build, Condition( function Trig_Instant_Build_Conditions ) )
call TriggerAddAction( gg_trg_Instant_Build, function Trig_Instant_Build_Actions )
endfunction
function Trig_InstaBuild_Actions takes nothing returns nothing
call UnitSetConstructionProgress( GetConstructingStructure(), 25 )
endfunction
//===========================================================================
function InitTrig_InstaBuild takes nothing returns nothing
set gg_trg_InstaBuild = CreateTrigger( )
call DisableTrigger( gg_trg_InstaBuild )
call TriggerRegisterAnyUnitEventBJ( gg_trg_InstaBuild, EVENT_PLAYER_UNIT_CONSTRUCT_START )
call TriggerAddAction( gg_trg_InstaBuild, function Trig_InstaBuild_Actions )
endfunction
function Trig_Crazy_Gold_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h009' ) ) then
return false
endif
return true
endfunction
function Trig_Crazy_Gold_Func003A takes nothing returns nothing
call AdjustPlayerStateBJ( 5000, GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig_Crazy_Gold_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_158" )
call RemoveUnit( GetSoldUnit() )
call ForForce( GetPlayersAll(), function Trig_Crazy_Gold_Func003A )
endfunction
//===========================================================================
function InitTrig_Crazy_Gold takes nothing returns nothing
set gg_trg_Crazy_Gold = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Crazy_Gold, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Crazy_Gold, Condition( function Trig_Crazy_Gold_Conditions ) )
call TriggerAddAction( gg_trg_Crazy_Gold, function Trig_Crazy_Gold_Actions )
endfunction
function Trig_Test_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'H000', Player(0), GetRectCenter(gg_rct_Wolf_Spawn), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'U002', Player(0), GetRectCenter(gg_rct_Wolf_Spawn), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_Test takes nothing returns nothing
set gg_trg_Test = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Test, Player(0), "Rick rolled", true )
call TriggerAddAction( gg_trg_Test, function Trig_Test_Actions )
endfunction
function Trig_Inferno_Stone_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSummonedUnit()) == 'ninf' ) ) then
return false
endif
return true
endfunction
function Trig_Inferno_Stone_Func001A takes nothing returns nothing
call SetDestructableLife( GetEnumDestructable(), ( GetDestructableLife(GetEnumDestructable()) - 150.00 ) )
endfunction
function Trig_Inferno_Stone_Actions takes nothing returns nothing
call EnumDestructablesInCircleBJ( 500.00, GetUnitLoc(GetSummonedUnit()), function Trig_Inferno_Stone_Func001A )
call RemoveUnit( GetSummonedUnit() )
endfunction
//===========================================================================
function InitTrig_Inferno_Stone takes nothing returns nothing
set gg_trg_Inferno_Stone = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Inferno_Stone, EVENT_PLAYER_UNIT_SUMMON )
call TriggerAddCondition( gg_trg_Inferno_Stone, Condition( function Trig_Inferno_Stone_Conditions ) )
call TriggerAddAction( gg_trg_Inferno_Stone, function Trig_Inferno_Stone_Actions )
endfunction
function Trig_Hotkeys_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h00Y' ) ) then
return false
endif
return true
endfunction
function Trig_Hotkeys_Actions takes nothing returns nothing
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetSoldUnit())), "TRIGSTR_238" )
call RemoveUnit( GetSoldUnit() )
endfunction
//===========================================================================
function InitTrig_Hotkeys takes nothing returns nothing
set gg_trg_Hotkeys = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Hotkeys, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Hotkeys, Condition( function Trig_Hotkeys_Conditions ) )
call TriggerAddAction( gg_trg_Hotkeys, function Trig_Hotkeys_Actions )
endfunction
function Trig_St_B_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h00Z' ) ) then
return false
endif
return true
endfunction
function Trig_St_B_Actions takes nothing returns nothing
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetSoldUnit())), "TRIGSTR_246" )
call RemoveUnit( GetSoldUnit() )
endfunction
//===========================================================================
function InitTrig_St_B takes nothing returns nothing
set gg_trg_St_B = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_St_B, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_St_B, Condition( function Trig_St_B_Conditions ) )
call TriggerAddAction( gg_trg_St_B, function Trig_St_B_Actions )
endfunction
function Trig_Switch_Guide_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h010' ) ) then
return false
endif
return true
endfunction
function Trig_Switch_Guide_Actions takes nothing returns nothing
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetSoldUnit())), "TRIGSTR_252" )
call RemoveUnit( GetSoldUnit() )
endfunction
//===========================================================================
function InitTrig_Switch_Guide takes nothing returns nothing
set gg_trg_Switch_Guide = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Switch_Guide, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Switch_Guide, Condition( function Trig_Switch_Guide_Conditions ) )
call TriggerAddAction( gg_trg_Switch_Guide, function Trig_Switch_Guide_Actions )
endfunction
function Trig_Leaderboard_Func002A takes nothing returns nothing
call LeaderboardAddItemBJ( GetEnumPlayer(), GetLastCreatedLeaderboard(), GetPlayerName(GetEnumPlayer()), 0 )
endfunction
function Trig_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_271" )
call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_Leaderboard_Func002A )
endfunction
//===========================================================================
function InitTrig_Leaderboard takes nothing returns nothing
set gg_trg_Leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Leaderboard, 0.01 )
call TriggerAddAction( gg_trg_Leaderboard, function Trig_Leaderboard_Actions )
endfunction
function Trig_Farms_Built_Func002C takes nothing returns boolean
if ( ( CountLivingPlayerUnitsOfTypeId('U001', GetOwningPlayer(GetConstructingStructure())) > 0 ) ) then
return true
endif
if ( ( CountLivingPlayerUnitsOfTypeId('U002', GetOwningPlayer(GetConstructingStructure())) > 0 ) ) then
return true
endif
if ( ( CountLivingPlayerUnitsOfTypeId('U000', GetOwningPlayer(GetConstructingStructure())) > 0 ) ) then
return true
endif
return false
endfunction
function Trig_Farms_Built_Conditions takes nothing returns boolean
if ( not Trig_Farms_Built_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Farms_Built_Actions takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetConstructedStructure()), GetLastCreatedLeaderboard(), ( CountUnitsInGroup(GetUnitsOfPlayerAll(GetOwningPlayer(GetConstructedStructure()))) - 1 ) )
endfunction
//===========================================================================
function InitTrig_Farms_Built takes nothing returns nothing
set gg_trg_Farms_Built = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Farms_Built, EVENT_PLAYER_UNIT_CONSTRUCT_FINISH )
call TriggerAddCondition( gg_trg_Farms_Built, Condition( function Trig_Farms_Built_Conditions ) )
call TriggerAddAction( gg_trg_Farms_Built, function Trig_Farms_Built_Actions )
endfunction
function Trig_Chaos_Wolf_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I008' ) ) then
return false
endif
return true
endfunction
function Trig_Chaos_Wolf_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_281" )
call ReplaceUnitBJ( GetManipulatingUnit(), 'H011', bj_UNIT_STATE_METHOD_MAXIMUM )
endfunction
//===========================================================================
function InitTrig_Chaos_Wolf takes nothing returns nothing
set gg_trg_Chaos_Wolf = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Chaos_Wolf, EVENT_PLAYER_UNIT_USE_ITEM )
call TriggerAddCondition( gg_trg_Chaos_Wolf, Condition( function Trig_Chaos_Wolf_Conditions ) )
call TriggerAddAction( gg_trg_Chaos_Wolf, function Trig_Chaos_Wolf_Actions )
endfunction
function Trig_Attacked_Func002C takes nothing returns boolean
if ( ( GetUnitTypeId(GetDyingUnit()) == 'U000' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'U002' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetDyingUnit()) == 'U001' ) ) then
return true
endif
return false
endfunction
function Trig_Attacked_Conditions takes nothing returns boolean
if ( not Trig_Attacked_Func002C() ) then
return false
endif
return true
endfunction
function Trig_Attacked_Func004Func001C takes nothing returns boolean
if ( ( GetUnitUserData(GetKillingUnitBJ()) == 5 ) ) then
return true
endif
if ( ( GetUnitUserData(GetKillingUnitBJ()) == 10 ) ) then
return true
endif
if ( ( GetUnitUserData(GetKillingUnitBJ()) >= 20 ) ) then
return true
endif
return false
endfunction
function Trig_Attacked_Func004C takes nothing returns boolean
if ( not Trig_Attacked_Func004Func001C() ) then
return false
endif
return true
endfunction
function Trig_Attacked_Func005A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Attacked_Func011Func005C takes nothing returns boolean
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(0)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(1)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(2)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(3)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(4)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(5)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(6)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(7)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(8)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(9)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(10)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U000', Player(11)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(0)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(1)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(2)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(3)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(4)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(5)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(6)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(7)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(8)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(9)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(10)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U002', Player(11)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(11)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(10)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(9)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(8)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(7)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(6)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(5)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(4)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(3)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(2)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(1)) == 0 ) ) then
return false
endif
if ( not ( CountLivingPlayerUnitsOfTypeId('U001', Player(0)) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_Attacked_Func011C takes nothing returns boolean
if ( not Trig_Attacked_Func011Func005C() ) then
return false
endif
return true
endfunction
function Trig_Attacked_Actions takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetKillingUnitBJ()), GetLastCreatedLeaderboard(), GetUnitUserData(GetKillingUnitBJ()) )
call SetUnitUserData( GetKillingUnitBJ(), ( GetUnitUserData(GetKillingUnitBJ()) + 1 ) )
if ( Trig_Attacked_Func004C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " has gained a piece of Lumber." ) )
call AdjustPlayerStateBJ( 1, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_LUMBER )
else
endif
call ForGroupBJ( GetUnitsOfPlayerAll(GetOwningPlayer(GetDyingUnit())), function Trig_Attacked_Func005A )
call CreateNUnitsAtLoc( 1, 'e001', GetOwningPlayer(GetDyingUnit()), GetRectCenter(gg_rct_Wolf_Spawn), bj_UNIT_FACING )
call TriggerSleepAction( 0.01 )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetDyingUnit())) + "'s Sheep has fallen." ) )
call CreateItemLoc( 'tstr', GetUnitLoc(GetDyingUnit()) )
call AdjustPlayerStateBJ( ( GetHeroLevel(GetDyingUnit()) * 10 ), GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
if ( Trig_Attacked_Func011C() ) then
call DestroyTimerDialogBJ( GetLastCreatedTimerDialogBJ() )
call PauseTimerBJ( true, udg_Game_Timer )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_057" )
call TriggerExecute( gg_trg_Generic_Script_Start )
else
endif
endfunction
//===========================================================================
function InitTrig_Attacked takes nothing returns nothing
set gg_trg_Attacked = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Attacked, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Attacked, Condition( function Trig_Attacked_Conditions ) )
call TriggerAddAction( gg_trg_Attacked, function Trig_Attacked_Actions )
endfunction
function Trig_Wispy_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'e001' ) ) then
return false
endif
return true
endfunction
function Trig_Wispy_Func002Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetKillingUnitBJ()) == 'U000' ) ) then
return false
endif
return true
endfunction
function Trig_Wispy_Func002C takes nothing returns boolean
if ( not ( GetUnitUserData(GetKillingUnitBJ()) == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Wispy_Actions takes nothing returns nothing
call SetUnitUserData( GetKillingUnitBJ(), ( GetUnitUserData(GetKillingUnitBJ()) + 1 ) )
if ( Trig_Wispy_Func002C() ) then
if ( Trig_Wispy_Func002Func001C() ) then
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " is now a Dark Sheep. If this Sheep dies, the owner will be reverted back to a normal Sheep." ) )
call ReplaceUnitBJ( GetKillingUnitBJ(), 'U001', bj_UNIT_STATE_METHOD_MAXIMUM )
else
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) + " is now a Doom Sheep." ) )
call ReplaceUnitBJ( GetKillingUnitBJ(), 'U002', bj_UNIT_STATE_METHOD_MAXIMUM )
endif
else
endif
call AddHeroXPSwapped( 50, GetKillingUnitBJ(), true )
call CreateNUnitsAtLoc( 1, 'U000', GetOwningPlayer(GetDyingUnit()), GetPlayerStartLocationLoc(GetOwningPlayer(GetDyingUnit())), bj_UNIT_FACING )
call SetPlayerStateBJ( GetOwningPlayer(GetDyingUnit()), PLAYER_STATE_RESOURCE_GOLD, 30 )
call AdjustPlayerStateBJ( 100, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetDyingUnit()), GetPlayerStartLocationLoc(GetOwningPlayer(GetDyingUnit())), 0 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), GetOwningPlayer(GetDyingUnit()) )
endfunction
//===========================================================================
function InitTrig_Wispy takes nothing returns nothing
set gg_trg_Wispy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Wispy, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Wispy, Condition( function Trig_Wispy_Conditions ) )
call TriggerAddAction( gg_trg_Wispy, function Trig_Wispy_Actions )
endfunction
function Trig_Wisps_Leave_Jail_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetLeavingUnit()) == 'e001' ) ) then
return false
endif
return true
endfunction
function Trig_Wisps_Leave_Jail_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetLeavingUnit(), GetRectCenter(gg_rct_Wolf_Spawn) )
endfunction
//===========================================================================
function InitTrig_Wisps_Leave_Jail takes nothing returns nothing
set gg_trg_Wisps_Leave_Jail = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Wisps_Leave_Jail, gg_rct_Wispy )
call TriggerAddCondition( gg_trg_Wisps_Leave_Jail, Condition( function Trig_Wisps_Leave_Jail_Conditions ) )
call TriggerAddAction( gg_trg_Wisps_Leave_Jail, function Trig_Wisps_Leave_Jail_Actions )
endfunction
function Trig_Shreddin_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'h00R' ) ) then
return false
endif
return true
endfunction
function Trig_Shreddin_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( GetAttackedUnitBJ(), "immolation" )
call IssuePointOrderLocBJ( GetAttackedUnitBJ(), "shockwave", GetUnitLoc(GetAttacker()) )
call TriggerSleepAction( 0.01 )
call UnitResetCooldown( GetAttackedUnitBJ() )
endfunction
//===========================================================================
function InitTrig_Shreddin takes nothing returns nothing
set gg_trg_Shreddin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Shreddin, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Shreddin, Condition( function Trig_Shreddin_Conditions ) )
call TriggerAddAction( gg_trg_Shreddin, function Trig_Shreddin_Actions )
endfunction
function Trig_Burnin_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'h00S' ) ) then
return false
endif
return true
endfunction
function Trig_Burnin_Actions takes nothing returns nothing
call IssueTargetOrderBJ( GetAttacker(), "manaburn", GetAttackedUnitBJ() )
call TriggerSleepAction( 0.01 )
call UnitResetCooldown( GetAttackedUnitBJ() )
endfunction
//===========================================================================
function InitTrig_Burnin takes nothing returns nothing
set gg_trg_Burnin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Burnin, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Burnin, Condition( function Trig_Burnin_Conditions ) )
call TriggerAddAction( gg_trg_Burnin, function Trig_Burnin_Actions )
endfunction
function Trig_Freezin_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'h00T' ) ) then
return false
endif
return true
endfunction
function Trig_Freezin_Actions takes nothing returns nothing
call IssueTargetOrderBJ( GetAttacker(), "frostnova", GetAttackedUnitBJ() )
call TriggerSleepAction( 0.01 )
call UnitResetCooldown( GetAttackedUnitBJ() )
endfunction
//===========================================================================
function InitTrig_Freezin takes nothing returns nothing
set gg_trg_Freezin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Freezin, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Freezin, Condition( function Trig_Freezin_Conditions ) )
call TriggerAddAction( gg_trg_Freezin, function Trig_Freezin_Actions )
endfunction
function Trig_Dispellin_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttacker()) == 'h00U' ) ) then
return false
endif
return true
endfunction
function Trig_Dispellin_Actions takes nothing returns nothing
call IssueTargetOrderBJ( GetAttacker(), "autodispel", GetAttackedUnitBJ() )
call TriggerSleepAction( 0.01 )
call IssueTargetOrderBJ( GetAttacker(), "dispel", GetAttackedUnitBJ() )
call UnitResetCooldown( GetAttackedUnitBJ() )
endfunction
//===========================================================================
function InitTrig_Dispellin takes nothing returns nothing
set gg_trg_Dispellin = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dispellin, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Dispellin, Condition( function Trig_Dispellin_Conditions ) )
call TriggerAddAction( gg_trg_Dispellin, function Trig_Dispellin_Actions )
endfunction
function Trig_Switch_ON_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetSoldUnit()) == 'h007' ) ) then
return false
endif
return true
endfunction
function Trig_Switch_ON_Func006A takes nothing returns nothing
call SetPlayerUnitAvailableBJ( 'h010', true, GetEnumPlayer() )
call SetPlayerUnitAvailableBJ( 'h00Z', false, GetEnumPlayer() )
endfunction
function Trig_Switch_ON_Actions takes nothing returns nothing
call RemoveUnit( GetSoldUnit() )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_058" )
call DisableTrigger( gg_trg_Attacked )
call DisableTrigger( gg_trg_Wispy )
call EnableTrigger( gg_trg_Switch )
call ForForce( GetPlayersAll(), function Trig_Switch_ON_Func006A )
endfunction
//===========================================================================
function InitTrig_Switch_ON takes nothing returns nothing
set gg_trg_Switch_ON = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Switch_ON, EVENT_PLAYER_UNIT_SELL )
call TriggerAddCondition( gg_trg_Switch_ON, Condition( function Trig_Switch_ON_Conditions ) )
call TriggerAddAction( gg_trg_Switch_ON, function Trig_Switch_ON_Actions )
endfunction
function Trig_Switch_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U000' ) ) then
return false
endif
return true
endfunction
function Trig_Switch_Func001A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Switch_Func002A takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Switch_Func015001001 takes nothing returns boolean
return ( CountLivingPlayerUnitsOfTypeId('H000', GetFilterPlayer()) >= 1 )
endfunction
function Trig_Switch_Func015A takes nothing returns nothing
call ForceAddPlayerSimple( GetEnumPlayer(), udg_Switch_Group_W )
call SetForceAllianceStateBJ( udg_Switch_Group_W, udg_Switch_Group_W, bj_ALLIANCE_ALLIED_VISION )
call SetForceAllianceStateBJ( udg_Switch_Group_W, udg_Switch_Group_Sh, bj_ALLIANCE_UNALLIED )
endfunction
function Trig_Switch_Func016001001 takes nothing returns boolean
return ( CountLivingPlayerUnitsOfTypeId('H000', GetFilterPlayer()) == 0 )
endfunction
function Trig_Switch_Func016A takes nothing returns nothing
call ForceAddPlayerSimple( GetEnumPlayer(), udg_Switch_Group_Sh )
call SetForceAllianceStateBJ( udg_Switch_Group_Sh, udg_Switch_Group_Sh, bj_ALLIANCE_ALLIED_VISION )
call SetForceAllianceStateBJ( udg_Switch_Group_Sh, udg_Switch_Group_W, bj_ALLIANCE_UNALLIED )
endfunction
function Trig_Switch_Func018A takes nothing returns nothing
call UnitRemoveAbilityBJ( 'Avul', GetEnumUnit() )
endfunction
function Trig_Switch_Func025001001 takes nothing returns boolean
return ( CountLivingPlayerUnitsOfTypeId('H000', GetFilterPlayer()) >= 1 )
endfunction
function Trig_Switch_Func025A takes nothing returns nothing
call ForceAddPlayerSimple( GetEnumPlayer(), udg_Switch_Group_W )
call SetForceAllianceStateBJ( udg_Switch_Group_W, udg_Switch_Group_W, bj_ALLIANCE_ALLIED_VISION )
call SetForceAllianceStateBJ( udg_Switch_Group_W, udg_Switch_Group_Sh, bj_ALLIANCE_UNALLIED )
endfunction
function Trig_Switch_Func026001001 takes nothing returns boolean
return ( CountLivingPlayerUnitsOfTypeId('H000', GetFilterPlayer()) == 0 )
endfunction
function Trig_Switch_Func026A takes nothing returns nothing
call ForceAddPlayerSimple( GetEnumPlayer(), udg_Switch_Group_Sh )
call SetForceAllianceStateBJ( udg_Switch_Group_Sh, udg_Switch_Group_Sh, bj_ALLIANCE_ALLIED_VISION )
call SetForceAllianceStateBJ( udg_Switch_Group_Sh, udg_Switch_Group_W, bj_ALLIANCE_UNALLIED )
endfunction
function Trig_Switch_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetOwningPlayer(GetDyingUnit())), function Trig_Switch_Func001A )
call ForGroupBJ( GetUnitsOfPlayerAll(GetOwningPlayer(GetKillingUnitBJ())), function Trig_Switch_Func002A )
call CreateNUnitsAtLoc( 1, 'H000', GetOwningPlayer(GetDyingUnit()), GetRectCenter(gg_rct_Wolf_Spawn), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetDyingUnit()), GetRectCenter(gg_rct_Wolf_Spawn), 0 )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetKillingUnitBJ()), GetUnitLoc(GetDyingUnit()), 0 )
call CreateNUnitsAtLoc( 1, 'U000', GetOwningPlayer(GetKillingUnitBJ()), GetUnitLoc(GetKillingUnitBJ()), bj_UNIT_FACING )
call UnitAddAbilityBJ( 'Avul', GetLastCreatedUnit() )
call SetPlayerStateBJ( GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD, 100 )
call SetPlayerStateBJ( GetOwningPlayer(GetDyingUnit()), PLAYER_STATE_RESOURCE_GOLD, 200 )
call ForceClear( udg_Switch_Group_W )
call ForceClear( udg_Switch_Group_Sh )
call SetForceAllianceStateBJ( GetPlayersAllies(Player(0)), GetPlayersAll(), bj_ALLIANCE_UNALLIED )
call SetForceAllianceStateBJ( GetPlayersEnemies(Player(0)), GetPlayersAll(), bj_ALLIANCE_UNALLIED )
call SetForceAllianceStateBJ( GetPlayersAll(), GetPlayersAll(), bj_ALLIANCE_UNALLIED )
call ForForce( GetPlayersMatching(Condition(function Trig_Switch_Func015001001)), function Trig_Switch_Func015A )
call ForForce( GetPlayersMatching(Condition(function Trig_Switch_Func016001001)), function Trig_Switch_Func016A )
call TriggerSleepAction( 7.00 )
call ForGroupBJ( GetUnitsOfTypeIdAll('U000'), function Trig_Switch_Func018A )
call ForceClear( udg_Switch_Group_W )
call ForceClear( udg_Switch_Group_Sh )
call SetForceAllianceStateBJ( GetPlayersAllies(Player(0)), GetPlayersAll(), bj_ALLIANCE_UNALLIED )
call SetForceAllianceStateBJ( GetPlayersEnemies(Player(0)), GetPlayersAll(), bj_ALLIANCE_UNALLIED )
call SetForceAllianceStateBJ( GetPlayersAll(), GetPlayersAll(), bj_ALLIANCE_UNALLIED )
call TriggerSleepAction( 0.01 )
call ForForce( GetPlayersMatching(Condition(function Trig_Switch_Func025001001)), function Trig_Switch_Func025A )
call ForForce( GetPlayersMatching(Condition(function Trig_Switch_Func026001001)), function Trig_Switch_Func026A )
endfunction
//===========================================================================
function InitTrig_Switch takes nothing returns nothing
set gg_trg_Switch = CreateTrigger( )
call DisableTrigger( gg_trg_Switch )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Switch, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Switch, Condition( function Trig_Switch_Conditions ) )
call TriggerAddAction( gg_trg_Switch, function Trig_Switch_Actions )
endfunction
function Trig_Trees_Conditions takes nothing returns boolean
if ( not ( IsUnitIdType(GetUnitTypeId(GetEnteringUnit()), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Trees_Func002Func001A takes nothing returns nothing
call KillDestructable( GetEnumDestructable() )
endfunction
function Trig_Trees_Func002C takes nothing returns boolean
if ( not ( udg_Random_Chance == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Trees_Actions takes nothing returns nothing
set udg_Random_Chance = GetRandomInt(1, 5)
if ( Trig_Trees_Func002C() ) then
call EnumDestructablesInRectAll( gg_rct_Trees_o_Fire, function Trig_Trees_Func002Func001A )
else
endif
endfunction
//===========================================================================
function InitTrig_Trees takes nothing returns nothing
set gg_trg_Trees = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Trees, gg_rct_Trees_o_Fire )
call TriggerAddCondition( gg_trg_Trees, Condition( function Trig_Trees_Conditions ) )
call TriggerAddAction( gg_trg_Trees, function Trig_Trees_Actions )
endfunction
function Trig_Distructible_Actions takes nothing returns nothing
call CreateItemLoc( 'I005', GetDestructableLoc(GetDyingDestructable()) )
endfunction
//===========================================================================
function InitTrig_Distructible takes nothing returns nothing
set gg_trg_Distructible = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Distructible, gg_dest_LTcr_0643 )
call TriggerAddAction( gg_trg_Distructible, function Trig_Distructible_Actions )
endfunction
function Trig_PHAT_LEWT_Conditions takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'phlt' ) ) then
return false
endif
return true
endfunction
function Trig_PHAT_LEWT_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())), "TRIGSTR_168" )
call AdjustPlayerStateBJ( 250, GetOwningPlayer(GetManipulatingUnit()), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_PHAT_LEWT takes nothing returns nothing
set gg_trg_PHAT_LEWT = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_PHAT_LEWT, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_PHAT_LEWT, Condition( function Trig_PHAT_LEWT_Conditions ) )
call TriggerAddAction( gg_trg_PHAT_LEWT, function Trig_PHAT_LEWT_Actions )
endfunction
function Trig_Bridge_1_Func005A takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetRectCenter(gg_rct_Wispy), 0 )
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Wispy) )
endfunction
function Trig_Bridge_1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( gg_unit_ncop_0062 )
call KillDestructable( gg_dest_YT31_0053 )
call PingMinimapLocForForce( GetPlayersAll(), GetDestructableLoc(gg_dest_YT31_0053), 2.00 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Bridge_go_Boom_1), function Trig_Bridge_1_Func005A )
endfunction
//===========================================================================
function InitTrig_Bridge_1 takes nothing returns nothing
set gg_trg_Bridge_1 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Bridge_1, 155.00, gg_unit_ncop_0062 )
call TriggerAddAction( gg_trg_Bridge_1, function Trig_Bridge_1_Actions )
endfunction
function Trig_Bridge_2_Func005A takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnumUnit()), GetRectCenter(gg_rct_Wispy), 0 )
call SetUnitPositionLoc( GetEnumUnit(), GetRandomLocInRect(gg_rct_Wispy) )
endfunction
function Trig_Bridge_2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call RemoveUnit( gg_unit_ncop_0042 )
call KillDestructable( gg_dest_YT16_0012 )
call PingMinimapLocForForce( GetPlayersAll(), GetDestructableLoc(gg_dest_YT16_0012), 2.00 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Bridge_go_Boom_2), function Trig_Bridge_2_Func005A )
endfunction
//===========================================================================
function InitTrig_Bridge_2 takes nothing returns nothing
set gg_trg_Bridge_2 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Bridge_2, 155.00, gg_unit_ncop_0042 )
call TriggerAddAction( gg_trg_Bridge_2, function Trig_Bridge_2_Actions )
endfunction
function Trig_Unknown_Effect_Actions takes nothing returns nothing
call AddHeroXPSwapped( 5, GetEnteringUnit(), true )
call SetUnitPositionLoc( GetEnteringUnit(), GetRandomLocInRect(gg_rct_Random_Warp) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetUnitLoc(GetEnteringUnit()), 0 )
endfunction
//===========================================================================
function InitTrig_Unknown_Effect takes nothing returns nothing
set gg_trg_Unknown_Effect = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Unknown_Effect, gg_rct_Rando_Warp )
call TriggerAddAction( gg_trg_Unknown_Effect, function Trig_Unknown_Effect_Actions )
endfunction