Name | Type | is_array | initial_value |
BladeDistance | real | No | |
BladePointVar | location | No | |
BladeRealVar | real | No | |
BladeThrowVar | integer | No | |
BladeUnitVar | unit | No | |
BladeUnitVar2 | unit | No | |
Caster | unit | No | |
casterunit | unit | No | |
CasterUnit | unit | No | |
CastingUnit | location | No | |
CastingUnit1 | unit | No | |
CastingUnit7 | unit | No | |
castloc | location | No | |
Count | integer | No | 1 |
DamageTextPoint | location | No | |
Defeat | boolean | Yes | false |
distance | real | No | |
Distance | real | No | |
faceangle | real | No | |
FrostCannonPoint | real | No | |
FrostOrnamentCounter | integer | No | |
FrostOrnamentEffect | effect | Yes | |
FrostUnit | location | No | |
Group | group | No | |
Illusion | unit | No | |
IntegerToMoveCastingUnit1 | integer | No | |
IntegerToMoveCastingUnit7 | integer | No | |
Item | integer | No | |
Kills | integer | Yes | |
Leap | unit | No | |
LeapEffect | effect | Yes | |
magiccircle | unit | No | |
magiccircletransparency | real | No | |
Message | texttag | No | |
PlayerGroup | force | Yes | |
Point | location | No | |
Point_of_Illusion | location | No | |
PointUnit | unit | No | |
polarproj | location | No | |
sd_const | real | No | |
Shadow | unit | Yes | |
ShadowTimer1 | timer | No | |
ShadowTimer2 | timer | No | |
ShadowTimer3 | timer | No | |
ShadowTimer4 | timer | No | |
ShadowTimer5 | timer | No | |
size | real | No | 100.00 |
SpawnGroup1 | group | No | |
ss_const | real | No | |
Target | unit | No | |
target | location | No | |
TargetUnit | unit | No | |
TempPoint | location | No | |
Timer | timer | No | |
TrueOrcVisiblity | fogmodifier | No | |
Unit | unit | No | |
UnitNo | unit | Yes | |
UnitVar | unit | No |
function Trig_Start_Func005002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(PLAYER_NEUTRAL_PASSIVE), bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Func006002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(11), bj_ALLIANCE_UNALLIED )
endfunction
function Trig_Start_Func007002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(10), bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Func008002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(10), bj_ALLIANCE_UNALLIED )
endfunction
function Trig_Start_Func009002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(11), bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Func010002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetEnumPlayer(), bj_ALLIANCE_UNALLIED_VISION )
endfunction
function Trig_Start_Func013002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( Player(11), GetEnumPlayer(), bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Func014002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( Player(10), GetEnumPlayer(), bj_ALLIANCE_ALLIED_VISION )
endfunction
function Trig_Start_Actions takes nothing returns nothing
call StopMusicBJ( false )
call EndThematicMusicBJ( )
set udg_PlayerGroup[0] = GetPlayersAllies(Player(0))
set udg_PlayerGroup[1] = GetPlayersAllies(Player(5))
call ForForce( GetPlayersAll(), function Trig_Start_Func005002 )
call ForForce( udg_PlayerGroup[0], function Trig_Start_Func006002 )
call ForForce( udg_PlayerGroup[0], function Trig_Start_Func007002 )
call ForForce( udg_PlayerGroup[1], function Trig_Start_Func008002 )
call ForForce( udg_PlayerGroup[1], function Trig_Start_Func009002 )
call ForForce( GetPlayersAll(), function Trig_Start_Func010002 )
call SetPlayerAllianceStateBJ( Player(10), Player(11), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(11), Player(10), bj_ALLIANCE_UNALLIED )
call ForForce( udg_PlayerGroup[1], function Trig_Start_Func013002 )
call ForForce( udg_PlayerGroup[0], function Trig_Start_Func014002 )
call TriggerSleepAction( 10.00 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_0130 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_0300 )
endfunction
//===========================================================================
function InitTrig_Start takes nothing returns nothing
set gg_trg_Start = CreateTrigger( )
call TriggerAddAction( gg_trg_Start, function Trig_Start_Actions )
endfunction
function Trig_Horde_1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_1_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O000', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_1 takes nothing returns nothing
set gg_trg_Horde_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_1, gg_rct_Horde_1 )
call TriggerAddCondition( gg_trg_Horde_1, Condition( function Trig_Horde_1_Conditions ) )
call TriggerAddAction( gg_trg_Horde_1, function Trig_Horde_1_Actions )
endfunction
function Trig_Horde_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_2_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O001', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_2 takes nothing returns nothing
set gg_trg_Horde_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_2, gg_rct_Horde_2 )
call TriggerAddCondition( gg_trg_Horde_2, Condition( function Trig_Horde_2_Conditions ) )
call TriggerAddAction( gg_trg_Horde_2, function Trig_Horde_2_Actions )
endfunction
function Trig_Horde_3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_3_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O002', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_3 takes nothing returns nothing
set gg_trg_Horde_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_3, gg_rct_Horde_3 )
call TriggerAddCondition( gg_trg_Horde_3, Condition( function Trig_Horde_3_Conditions ) )
call TriggerAddAction( gg_trg_Horde_3, function Trig_Horde_3_Actions )
endfunction
function Trig_Horde_4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_4_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O004', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_4 takes nothing returns nothing
set gg_trg_Horde_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_4, gg_rct_Horde_4 )
call TriggerAddCondition( gg_trg_Horde_4, Condition( function Trig_Horde_4_Conditions ) )
call TriggerAddAction( gg_trg_Horde_4, function Trig_Horde_4_Actions )
endfunction
function Trig_Horde_5_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_5_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O003', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_5 takes nothing returns nothing
set gg_trg_Horde_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_5, gg_rct_Horde_5 )
call TriggerAddCondition( gg_trg_Horde_5, Condition( function Trig_Horde_5_Conditions ) )
call TriggerAddAction( gg_trg_Horde_5, function Trig_Horde_5_Actions )
endfunction
function Trig_Horde_6_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_6_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O00E', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_6 takes nothing returns nothing
set gg_trg_Horde_6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_6, gg_rct_Horde_6 )
call TriggerAddCondition( gg_trg_Horde_6, Condition( function Trig_Horde_6_Conditions ) )
call TriggerAddAction( gg_trg_Horde_6, function Trig_Horde_6_Actions )
endfunction
function Trig_Horde_7_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_7_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O00F', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_7 takes nothing returns nothing
set gg_trg_Horde_7 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_7, gg_rct_Horde_7 )
call TriggerAddCondition( gg_trg_Horde_7, Condition( function Trig_Horde_7_Conditions ) )
call TriggerAddAction( gg_trg_Horde_7, function Trig_Horde_7_Actions )
endfunction
function Trig_Horde_8_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Horde_8_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O00G', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_8 takes nothing returns nothing
set gg_trg_Horde_8 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_8, gg_rct_Horde_8 )
call TriggerAddCondition( gg_trg_Horde_8, Condition( function Trig_Horde_8_Conditions ) )
call TriggerAddAction( gg_trg_Horde_8, function Trig_Horde_8_Actions )
endfunction
function Trig_Horde_9_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O00J', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_9 takes nothing returns nothing
set gg_trg_Horde_9 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_9, gg_rct_Horde_9 )
call TriggerAddAction( gg_trg_Horde_9, function Trig_Horde_9_Actions )
endfunction
function Trig_Horde_10_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'O00H', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Horde_10 takes nothing returns nothing
set gg_trg_Horde_10 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_10, gg_rct_Horde_10 )
call TriggerAddAction( gg_trg_Horde_10, function Trig_Horde_10_Actions )
endfunction
function Trig_Alliance_1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_1_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H000', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_1 takes nothing returns nothing
set gg_trg_Alliance_1 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_1, gg_rct_Alliance_1 )
call TriggerAddCondition( gg_trg_Alliance_1, Condition( function Trig_Alliance_1_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_1, function Trig_Alliance_1_Actions )
endfunction
function Trig_Alliance_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_2_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H001', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_2 takes nothing returns nothing
set gg_trg_Alliance_2 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_2, gg_rct_Alliance_2 )
call TriggerAddCondition( gg_trg_Alliance_2, Condition( function Trig_Alliance_2_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_2, function Trig_Alliance_2_Actions )
endfunction
function Trig_Alliance_3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_3_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H004', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_3 takes nothing returns nothing
set gg_trg_Alliance_3 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_3, gg_rct_Alliance_3 )
call TriggerAddCondition( gg_trg_Alliance_3, Condition( function Trig_Alliance_3_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_3, function Trig_Alliance_3_Actions )
endfunction
function Trig_Alliance_4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_4_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H00E', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_4 takes nothing returns nothing
set gg_trg_Alliance_4 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_4, gg_rct_Alliance_4 )
call TriggerAddCondition( gg_trg_Alliance_4, Condition( function Trig_Alliance_4_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_4, function Trig_Alliance_4_Actions )
endfunction
function Trig_Alliance_5_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_5_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H00F', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_5 takes nothing returns nothing
set gg_trg_Alliance_5 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_5, gg_rct_Alliance_5 )
call TriggerAddCondition( gg_trg_Alliance_5, Condition( function Trig_Alliance_5_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_5, function Trig_Alliance_5_Actions )
endfunction
function Trig_Alliance_6_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_6_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H003', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_6 takes nothing returns nothing
set gg_trg_Alliance_6 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_6, gg_rct_Alliance_6 )
call TriggerAddCondition( gg_trg_Alliance_6, Condition( function Trig_Alliance_6_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_6, function Trig_Alliance_6_Actions )
endfunction
function Trig_Alliance_7_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_7_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H002', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_7 takes nothing returns nothing
set gg_trg_Alliance_7 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_7, gg_rct_Alliance_7 )
call TriggerAddCondition( gg_trg_Alliance_7, Condition( function Trig_Alliance_7_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_7, function Trig_Alliance_7_Actions )
endfunction
function Trig_Alliance_8_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'u003' ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_8_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H00H', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_8 takes nothing returns nothing
set gg_trg_Alliance_8 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_8, gg_rct_Alliance_8 )
call TriggerAddCondition( gg_trg_Alliance_8, Condition( function Trig_Alliance_8_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_8, function Trig_Alliance_8_Actions )
endfunction
function Trig_Alliance_9_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H00L', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_9 takes nothing returns nothing
set gg_trg_Alliance_9 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_9, gg_rct_Alliance_9 )
call TriggerAddAction( gg_trg_Alliance_9, function Trig_Alliance_9_Actions )
endfunction
function Trig_Alliance_10_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( GetEnteringUnit() )
call CreateNUnitsAtLoc( 1, 'H00N', GetOwningPlayer(GetEnteringUnit()), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
endfunction
//===========================================================================
function InitTrig_Alliance_10 takes nothing returns nothing
set gg_trg_Alliance_10 = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_10, gg_rct_Alliance_10 )
call TriggerAddAction( gg_trg_Alliance_10, function Trig_Alliance_10_Actions )
endfunction
function Trig_Cerebrate_Fate_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Alliance_Castle), 0.20 )
call RemoveUnit( gg_unit_u003_0067 )
call CreateNUnitsAtLoc( 1, 'H00O', GetTriggerPlayer(), GetRectCenter(gg_rct_Alliance_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Cerebrate_Fate takes nothing returns nothing
set gg_trg_Cerebrate_Fate = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Cerebrate_Fate, Player(2), "Dont fuck with fate¤", true )
call TriggerAddAction( gg_trg_Cerebrate_Fate, function Trig_Cerebrate_Fate_Actions )
endfunction
function Trig_Cerebrate_Fate_2_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_Horde_Castle), 0.20 )
call RemoveUnit( gg_unit_u003_0073 )
call CreateNUnitsAtLoc( 1, 'H00O', GetTriggerPlayer(), GetRectCenter(gg_rct_Horde_Castle), bj_UNIT_FACING )
call AddSpecialEffectLocBJ( GetUnitLoc(GetLastCreatedUnit()), "Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl" )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Cerebrate_Fate_2 takes nothing returns nothing
set gg_trg_Cerebrate_Fate_2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Cerebrate_Fate_2, Player(5), "Dont fuck with fate¤", true )
call TriggerAddAction( gg_trg_Cerebrate_Fate_2, function Trig_Cerebrate_Fate_2_Actions )
endfunction
function Trig_Alliance_Unit_Types_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_GROUND) == true ) ) then
return false
endif
return true
endfunction
function Trig_Alliance_Unit_Types_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Alliance_Unit_Types) )
call SetUnitInvulnerable( GetEnteringUnit(), true )
endfunction
//===========================================================================
function InitTrig_Alliance_Unit_Types takes nothing returns nothing
set gg_trg_Alliance_Unit_Types = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Alliance_Unit_Types, gg_rct_Alliance_Unit_Selection )
call TriggerAddCondition( gg_trg_Alliance_Unit_Types, Condition( function Trig_Alliance_Unit_Types_Conditions ) )
call TriggerAddAction( gg_trg_Alliance_Unit_Types, function Trig_Alliance_Unit_Types_Actions )
endfunction
function Trig_Horde_Unit_Types_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_GROUND) == true ) ) then
return false
endif
return true
endfunction
function Trig_Horde_Unit_Types_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), GetRectCenter(gg_rct_Horde_Unit_Types) )
call SetUnitInvulnerable( GetEnteringUnit(), true )
endfunction
//===========================================================================
function InitTrig_Horde_Unit_Types takes nothing returns nothing
set gg_trg_Horde_Unit_Types = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Horde_Unit_Types, gg_rct_Horde_Unit_Selection )
call TriggerAddCondition( gg_trg_Horde_Unit_Types, Condition( function Trig_Horde_Unit_Types_Conditions ) )
call TriggerAddAction( gg_trg_Horde_Unit_Types, function Trig_Horde_Unit_Types_Actions )
endfunction
function Trig_Alliance_Spawn_Func001002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetEnumUnit()), Player(10), GetRectCenter(gg_rct_Alliance_Unit_Spawn), bj_UNIT_FACING )
endfunction
function Trig_Alliance_Spawn_Func002002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_Horde_Castle) )
endfunction
function Trig_Alliance_Spawn_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Alliance_Unit_Types), function Trig_Alliance_Spawn_Func001002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Alliance_Unit_Spawn), function Trig_Alliance_Spawn_Func002002 )
endfunction
//===========================================================================
function InitTrig_Alliance_Spawn takes nothing returns nothing
set gg_trg_Alliance_Spawn = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Alliance_Spawn, 45.00 )
call TriggerAddAction( gg_trg_Alliance_Spawn, function Trig_Alliance_Spawn_Actions )
endfunction
function Trig_Horde_Spawn_Func002002 takes nothing returns nothing
call CreateNUnitsAtLoc( 1, GetUnitTypeId(GetEnumUnit()), Player(11), GetRectCenter(gg_rct_Hordes_Unit_Spawn), bj_UNIT_FACING )
endfunction
function Trig_Horde_Spawn_Func003002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRectCenter(gg_rct_Alliance_Castle) )
endfunction
function Trig_Horde_Spawn_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Horde_Unit_Types), function Trig_Horde_Spawn_Func002002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Hordes_Unit_Spawn), function Trig_Horde_Spawn_Func003002 )
call TriggerSleepAction( 10.00 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_ATg1_0130 )
call ModifyGateBJ( bj_GATEOPERATION_CLOSE, gg_dest_LTg1_0300 )
call SetDestructableInvulnerableBJ( gg_dest_ATg1_0130, true )
call SetDestructableInvulnerableBJ( gg_dest_LTg1_0300, true )
call TriggerSleepAction( 30.00 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_ATg1_0130 )
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg1_0300 )
endfunction
//===========================================================================
function InitTrig_Horde_Spawn takes nothing returns nothing
set gg_trg_Horde_Spawn = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Horde_Spawn, 45.00 )
call TriggerAddAction( gg_trg_Horde_Spawn, function Trig_Horde_Spawn_Actions )
endfunction
function Trig_Unit_Remover_2_Actions takes nothing returns nothing
call RemoveUnit( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Unit_Remover_2 takes nothing returns nothing
set gg_trg_Unit_Remover_2 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Unit_Remover_2, 100.00, gg_unit_ncp3_0129 )
call TriggerAddAction( gg_trg_Unit_Remover_2, function Trig_Unit_Remover_2_Actions )
endfunction
function Trig_Unit_Remover_1_Actions takes nothing returns nothing
call RemoveUnit( GetEnteringUnit() )
endfunction
//===========================================================================
function InitTrig_Unit_Remover_1 takes nothing returns nothing
set gg_trg_Unit_Remover_1 = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_Unit_Remover_1, 100.00, gg_unit_ncp3_0128 )
call TriggerAddAction( gg_trg_Unit_Remover_1, function Trig_Unit_Remover_1_Actions )
endfunction
function Trig_RepickHuman_Func006002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_RepickHuman_Func006002 takes nothing returns nothing
if ( Trig_RepickHuman_Func006002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_RepickHuman_Func007002001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'u003' )
endfunction
function Trig_RepickHuman_Func007002 takes nothing returns nothing
if ( Trig_RepickHuman_Func007002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_RepickHuman_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_RepickHuman_Func006002 )
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_RepickHuman_Func007002 )
call TriggerSleepAction( 0.25 )
call CreateNUnitsAtLoc( 1, 'u003', GetTriggerPlayer(), GetRectCenter(gg_rct_Alliance_Hero_Area), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetUnitLoc(GetLastCreatedUnit()), 0.20 )
endfunction
//===========================================================================
function InitTrig_Repick_Human takes nothing returns nothing
set gg_trg_Repick_Human = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Human, Player(0), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Human, Player(1), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Human, Player(2), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Human, Player(3), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Human, Player(4), "-repick", true )
call TriggerAddAction( gg_trg_Repick_Human, function Trig_RepickHuman_Actions )
endfunction
function Trig_DefeatHuman_Func007002 takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_1366" )
endfunction
function Trig_DefeatHuman_Actions takes nothing returns nothing
call PauseAllUnitsBJ( true )
call DisableTrigger( gg_trg_Alliance_Spawn )
call DisableTrigger( gg_trg_Horde_Spawn )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1365" )
call TriggerSleepAction( 4.00 )
call DisableTrigger( gg_trg_Defeat_Orc )
call ForForce( udg_PlayerGroup[1], function Trig_DefeatHuman_Func007002 )
call TriggerExecute( gg_trg_VictoryOrc )
endfunction
//===========================================================================
function InitTrig_DefeatHuman takes nothing returns nothing
set gg_trg_DefeatHuman = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_DefeatHuman, gg_unit_h005_0027, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_DefeatHuman, function Trig_DefeatHuman_Actions )
endfunction
function Trig_VictoryHuman_Func002002 takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), true, true )
endfunction
function Trig_VictoryHuman_Actions takes nothing returns nothing
call TriggerSleepAction( 2 )
call ForForce( udg_PlayerGroup[0], function Trig_VictoryHuman_Func002002 )
call DisableTrigger( gg_trg_Horde_Spawn )
call DisableTrigger( gg_trg_Alliance_Spawn )
endfunction
//===========================================================================
function InitTrig_VictoryHuman takes nothing returns nothing
set gg_trg_VictoryHuman = CreateTrigger( )
call DisableTrigger( gg_trg_VictoryHuman )
call TriggerAddAction( gg_trg_VictoryHuman, function Trig_VictoryHuman_Actions )
endfunction
function Trig_RepickOrc_Func006002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_RepickOrc_Func006002 takes nothing returns nothing
if ( Trig_RepickOrc_Func006002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_RepickOrc_Func007002001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'u003' )
endfunction
function Trig_RepickOrc_Func007002 takes nothing returns nothing
if ( Trig_RepickOrc_Func007002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_RepickOrc_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_RepickOrc_Func006002 )
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_RepickOrc_Func007002 )
call TriggerSleepAction( 0.25 )
call CreateNUnitsAtLoc( 1, 'u003', GetTriggerPlayer(), GetRectCenter(gg_rct_Horde_Hero_Area), bj_UNIT_FACING )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetUnitLoc(GetLastCreatedUnit()), 0.20 )
endfunction
//===========================================================================
function InitTrig_Repick_Orc takes nothing returns nothing
set gg_trg_Repick_Orc = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Orc, Player(5), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Orc, Player(6), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Orc, Player(7), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Orc, Player(8), "-repick", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Repick_Orc, Player(9), "-repick", true )
call TriggerAddAction( gg_trg_Repick_Orc, function Trig_RepickOrc_Actions )
endfunction
function Trig_DefeatOrc_Func007002 takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_316" )
endfunction
function Trig_DefeatOrc_Actions takes nothing returns nothing
call PauseAllUnitsBJ( true )
call DisableTrigger( gg_trg_Horde_Spawn )
call DisableTrigger( gg_trg_Alliance_Spawn )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_063" )
call TriggerSleepAction( 4.00 )
call DisableTrigger( gg_trg_DefeatHuman )
call ForForce( udg_PlayerGroup[1], function Trig_DefeatOrc_Func007002 )
call TriggerExecute( gg_trg_VictoryHuman )
endfunction
//===========================================================================
function InitTrig_Defeat_Orc takes nothing returns nothing
set gg_trg_Defeat_Orc = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Defeat_Orc, gg_unit_o005_0042, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Defeat_Orc, function Trig_DefeatOrc_Actions )
endfunction
function Trig_VictoryOrc_Func002002 takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), true, true )
endfunction
function Trig_VictoryOrc_Actions takes nothing returns nothing
call TriggerSleepAction( 2 )
call ForForce( udg_PlayerGroup[1], function Trig_VictoryOrc_Func002002 )
call DisableTrigger( gg_trg_Horde_Spawn )
call DisableTrigger( gg_trg_Alliance_Spawn )
endfunction
//===========================================================================
function InitTrig_VictoryOrc takes nothing returns nothing
set gg_trg_VictoryOrc = CreateTrigger( )
call DisableTrigger( gg_trg_VictoryOrc )
call TriggerAddAction( gg_trg_VictoryOrc, function Trig_VictoryOrc_Actions )
endfunction
function Trig_Respawn_Red_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Red_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Alliance_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Red takes nothing returns nothing
set gg_trg_Respawn_Red = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Red, Player(0), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Red, Condition( function Trig_Respawn_Red_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Red, function Trig_Respawn_Red_Actions )
endfunction
function Trig_Respawn_Blue_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Blue_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Alliance_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Blue takes nothing returns nothing
set gg_trg_Respawn_Blue = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Blue, Player(1), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Blue, Condition( function Trig_Respawn_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Blue, function Trig_Respawn_Blue_Actions )
endfunction
function Trig_Respawn_Teal_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Teal_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Alliance_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Teal takes nothing returns nothing
set gg_trg_Respawn_Teal = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Teal, Player(2), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Teal, Condition( function Trig_Respawn_Teal_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Teal, function Trig_Respawn_Teal_Actions )
endfunction
function Trig_Respawn_Purple_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Purple_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Alliance_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Purple takes nothing returns nothing
set gg_trg_Respawn_Purple = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Purple, Player(3), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Purple, Condition( function Trig_Respawn_Purple_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Purple, function Trig_Respawn_Purple_Actions )
endfunction
function Trig_Respawn_Yellow_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Yellow_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Alliance_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Yellow takes nothing returns nothing
set gg_trg_Respawn_Yellow = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Yellow, Player(4), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Yellow, Condition( function Trig_Respawn_Yellow_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Yellow, function Trig_Respawn_Yellow_Actions )
endfunction
function Trig_Respawn_Orange_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Orange_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Horde_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Orange takes nothing returns nothing
set gg_trg_Respawn_Orange = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Orange, Player(5), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Orange, Condition( function Trig_Respawn_Orange_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Orange, function Trig_Respawn_Orange_Actions )
endfunction
function Trig_Respawn_Green_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Green_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Horde_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Green takes nothing returns nothing
set gg_trg_Respawn_Green = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Green, Player(6), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Green, Condition( function Trig_Respawn_Green_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Green, function Trig_Respawn_Green_Actions )
endfunction
function Trig_Respawn_Pink_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Pink_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(7), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Horde_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Pink takes nothing returns nothing
set gg_trg_Respawn_Pink = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Pink, Player(7), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Pink, Condition( function Trig_Respawn_Pink_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Pink, function Trig_Respawn_Pink_Actions )
endfunction
function Trig_Respawn_Gray_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Gray_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Horde_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Gray takes nothing returns nothing
set gg_trg_Respawn_Gray = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Gray, Player(8), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Gray, Condition( function Trig_Respawn_Gray_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Gray, function Trig_Respawn_Gray_Actions )
endfunction
function Trig_Respawn_Light_Blue_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction
function Trig_Respawn_Light_Blue_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( -100, Player(9), PLAYER_STATE_RESOURCE_GOLD )
call TriggerSleepAction( 7.00 )
call ReviveHeroLoc( GetDyingUnit(), GetRectCenter(gg_rct_Horde_Castle), true )
endfunction
//===========================================================================
function InitTrig_Respawn_Light_Blue takes nothing returns nothing
set gg_trg_Respawn_Light_Blue = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Respawn_Light_Blue, Player(9), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Respawn_Light_Blue, Condition( function Trig_Respawn_Light_Blue_Conditions ) )
call TriggerAddAction( gg_trg_Respawn_Light_Blue, function Trig_Respawn_Light_Blue_Actions )
endfunction
function Trig_CorpseCleanup_Actions takes nothing returns nothing
call TriggerSleepAction( 50.00 )
call RemoveUnit( GetDyingUnit() )
endfunction
//===========================================================================
function InitTrig_CorpseCleanup takes nothing returns nothing
set gg_trg_CorpseCleanup = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_CorpseCleanup, Player(10), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_CorpseCleanup, Player(11), EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_CorpseCleanup, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_CorpseCleanup, function Trig_CorpseCleanup_Actions )
endfunction
function Trig_Periodic_Gold_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 10, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(7), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 10, Player(9), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Periodic_Gold takes nothing returns nothing
set gg_trg_Periodic_Gold = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Periodic_Gold, 9.00 )
call TriggerAddAction( gg_trg_Periodic_Gold, function Trig_Periodic_Gold_Actions )
endfunction
function Trig_Starting_Gold_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 125, Player(0), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(1), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(2), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(3), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(4), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(5), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(6), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(7), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(8), PLAYER_STATE_RESOURCE_GOLD )
call AdjustPlayerStateBJ( 125, Player(9), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Starting_Gold takes nothing returns nothing
set gg_trg_Starting_Gold = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Starting_Gold, 0.25 )
call TriggerAddAction( gg_trg_Starting_Gold, function Trig_Starting_Gold_Actions )
endfunction
function Trig_Player_Left_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, ( GetPlayerName(GetTriggerPlayer()) + " has left the game!" ) )
endfunction
//===========================================================================
function InitTrig_Player_Left takes nothing returns nothing
set gg_trg_Player_Left = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(6) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_Player_Left, Player(9) )
call TriggerAddAction( gg_trg_Player_Left, function Trig_Player_Left_Actions )
endfunction
function Trig_Bounty_Actions takes nothing returns nothing
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(10) )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(11) )
endfunction
//===========================================================================
function InitTrig_Bounty takes nothing returns nothing
set gg_trg_Bounty = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Bounty, 1.00 )
call TriggerAddAction( gg_trg_Bounty, function Trig_Bounty_Actions )
endfunction
function Trig_CreepCreate1_Func001001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_Alliance_Creeps_1)) < 6 )
endfunction
function Trig_CreepCreate1_Func002001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_Alliance_Creeps_2)) < 4 )
endfunction
function Trig_CreepCreate1_Actions takes nothing returns nothing
if ( Trig_CreepCreate1_Func001001() ) then
call CreateNUnitsAtLoc( 1, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRandomLocInRect(gg_rct_Alliance_Creeps_1), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_CreepCreate1_Func002001() ) then
call CreateNUnitsAtLoc( 1, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRandomLocInRect(gg_rct_Alliance_Creeps_2), bj_UNIT_FACING )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_CreepCreate1 takes nothing returns nothing
set gg_trg_CreepCreate1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_CreepCreate1, 20.00 )
call TriggerAddAction( gg_trg_CreepCreate1, function Trig_CreepCreate1_Actions )
endfunction
function Trig_CreepCreate2_Func001001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_Horde_Creeps_1)) < 6 )
endfunction
function Trig_CreepCreate2_Func002001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectAll(gg_rct_Horde_Creeps_2)) < 4 )
endfunction
function Trig_CreepCreate2_Actions takes nothing returns nothing
if ( Trig_CreepCreate2_Func001001() ) then
call CreateNUnitsAtLoc( 1, 'n001', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRandomLocInRect(gg_rct_Horde_Creeps_1), bj_UNIT_FACING )
else
call DoNothing( )
endif
if ( Trig_CreepCreate2_Func002001() ) then
call CreateNUnitsAtLoc( 1, 'n002', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetRandomLocInRect(gg_rct_Horde_Creeps_2), bj_UNIT_FACING )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_CreepCreate2 takes nothing returns nothing
set gg_trg_CreepCreate2 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_CreepCreate2, 20.00 )
call TriggerAddAction( gg_trg_CreepCreate2, function Trig_CreepCreate2_Actions )
endfunction