Name | Type | is_array | initial_value |
Bridge | destructable | No | |
ForceBridge1 | destructable | No | |
ForceBridge2 | destructable | No | |
HeavyRain | weathereffect | No | |
P1 | texttag | No | |
P1CameraHeight | real | No | |
P2 | texttag | No | |
P2CameraHeight | real | No | |
P3 | texttag | No | |
P3CameraHeight | real | No | |
P4 | texttag | No | |
P4CameraHeight | real | No | |
Team1DoorHP | real | No | |
Team2DoorHP | real | No | |
TempLoc | location | No | |
TreeP1 | destructable | No | |
TreeP2 | destructable | No | |
TreeP3 | destructable | No | |
TreeP4 | destructable | No |
function Trig_Melee_Initialization_Actions takes nothing returns nothing
call MeleeStartingVisibility( )
call MeleeStartingHeroLimit( )
call MeleeGrantHeroItems( )
call MeleeStartingResources( )
call MeleeClearExcessUnits( )
call MeleeStartingUnits( )
call MeleeInitVictoryDefeat( )
call TriggerSleepAction( 5.00 )
call MeleeStartingAI( )
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_Sistem_Set_Up_Actions takes nothing returns nothing
call AddWeatherEffectSaveLast( GetPlayableMapRect(), 'RAhr' )
set udg_HeavyRain = GetLastCreatedWeatherEffect()
set udg_Bridge = gg_dest_YT22_0214
set udg_ForceBridge1 = gg_dest_DTsb_0911
set udg_ForceBridge2 = gg_dest_DTsb_0912
call TriggerSleepAction( 1.00 )
set udg_TreeP1 = gg_dest_ZTtw_0839
set udg_TreeP2 = gg_dest_ZTtw_0838
set udg_TreeP3 = gg_dest_ZTtw_0840
set udg_TreeP4 = gg_dest_ZTtw_0844
call TriggerSleepAction( 1.00 )
set udg_P1CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
set udg_P2CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
set udg_P3CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
set udg_P4CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
call TriggerSleepAction( 1.00 )
call ShowDestructableBJ( false, gg_dest_LTg3_0845 )
call ShowDestructableBJ( false, gg_dest_LTg3_0913 )
call TriggerSleepAction( 1.00 )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0053 )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0052 )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0054 )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0055 )
call TriggerSleepAction( 2 )
call KillDestructable( udg_ForceBridge1 )
call KillDestructable( udg_ForceBridge2 )
call EnableWeatherEffect( udg_HeavyRain, false )
endfunction
//===========================================================================
function InitTrig_Sistem_Set_Up takes nothing returns nothing
set gg_trg_Sistem_Set_Up = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Sistem_Set_Up, 4.00 )
call TriggerAddAction( gg_trg_Sistem_Set_Up, function Trig_Sistem_Set_Up_Actions )
endfunction
function Trig_P1_Camera_Func001Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_P1_Camera_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_P1_Camera_Actions takes nothing returns nothing
if ( Trig_P1_Camera_Func001C() ) then
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ZOFFSET, ( udg_P1CameraHeight + 100.00 ), 1.00 )
set udg_P1CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
if ( Trig_P1_Camera_Func001Func001C() ) then
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_ZOFFSET, ( udg_P1CameraHeight - 100.00 ), 1.00 )
set udg_P1CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
endif
endif
endfunction
//===========================================================================
function InitTrig_P1_Camera takes nothing returns nothing
set gg_trg_P1_Camera = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_P1_Camera, Player(0), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddAction( gg_trg_P1_Camera, function Trig_P1_Camera_Actions )
endfunction
function Trig_P2_Camera_Func001Func003C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_P2_Camera_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_P2_Camera_Actions takes nothing returns nothing
if ( Trig_P2_Camera_Func001C() ) then
call SetCameraFieldForPlayer( Player(1), CAMERA_FIELD_ZOFFSET, ( udg_P2CameraHeight + 100.00 ), 1.00 )
set udg_P2CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
if ( Trig_P2_Camera_Func001Func003C() ) then
call SetCameraFieldForPlayer( Player(1), CAMERA_FIELD_ZOFFSET, ( udg_P2CameraHeight - 100.00 ), 1.00 )
set udg_P2CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
endif
endif
endfunction
//===========================================================================
function InitTrig_P2_Camera takes nothing returns nothing
set gg_trg_P2_Camera = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_P2_Camera, Player(1), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddAction( gg_trg_P2_Camera, function Trig_P2_Camera_Actions )
endfunction
function Trig_P3_Camera_Func001Func003C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_P3_Camera_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_P3_Camera_Actions takes nothing returns nothing
if ( Trig_P3_Camera_Func001C() ) then
call SetCameraFieldForPlayer( Player(2), CAMERA_FIELD_ZOFFSET, ( udg_P3CameraHeight + 100.00 ), 1.00 )
set udg_P3CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
if ( Trig_P3_Camera_Func001Func003C() ) then
call SetCameraFieldForPlayer( Player(2), CAMERA_FIELD_ZOFFSET, ( udg_P3CameraHeight - 100.00 ), 1.00 )
set udg_P3CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
endif
endif
endfunction
//===========================================================================
function InitTrig_P3_Camera takes nothing returns nothing
set gg_trg_P3_Camera = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_P3_Camera, Player(2), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddAction( gg_trg_P3_Camera, function Trig_P3_Camera_Actions )
endfunction
function Trig_P4_Camera_Func001Func003C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A004' ) ) then
return false
endif
return true
endfunction
function Trig_P4_Camera_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A002' ) ) then
return false
endif
return true
endfunction
function Trig_P4_Camera_Actions takes nothing returns nothing
if ( Trig_P4_Camera_Func001C() ) then
call SetCameraFieldForPlayer( Player(3), CAMERA_FIELD_ZOFFSET, ( udg_P4CameraHeight + 100.00 ), 1.00 )
set udg_P4CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
if ( Trig_P4_Camera_Func001Func003C() ) then
call SetCameraFieldForPlayer( Player(3), CAMERA_FIELD_ZOFFSET, ( udg_P4CameraHeight - 100.00 ), 1.00 )
set udg_P4CameraHeight = GetCameraField(CAMERA_FIELD_ZOFFSET)
else
endif
endif
endfunction
//===========================================================================
function InitTrig_P4_Camera takes nothing returns nothing
set gg_trg_P4_Camera = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_P4_Camera, Player(3), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddAction( gg_trg_P4_Camera, function Trig_P4_Camera_Actions )
endfunction
function Trig_Magic_Tree_P1_Actions takes nothing returns nothing
call TriggerSleepAction( 10.00 )
call DestructableRestoreLife( udg_TreeP1, GetDestructableMaxLife(udg_TreeP1), true )
endfunction
//===========================================================================
function InitTrig_Magic_Tree_P1 takes nothing returns nothing
set gg_trg_Magic_Tree_P1 = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Magic_Tree_P1, gg_dest_ZTtw_0839 )
call TriggerAddAction( gg_trg_Magic_Tree_P1, function Trig_Magic_Tree_P1_Actions )
endfunction
function Trig_Magic_Tree_P2_Actions takes nothing returns nothing
call TriggerSleepAction( 10.00 )
call DestructableRestoreLife( udg_TreeP2, GetDestructableMaxLife(udg_TreeP2), true )
endfunction
//===========================================================================
function InitTrig_Magic_Tree_P2 takes nothing returns nothing
set gg_trg_Magic_Tree_P2 = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Magic_Tree_P2, gg_dest_ZTtw_0838 )
call TriggerAddAction( gg_trg_Magic_Tree_P2, function Trig_Magic_Tree_P2_Actions )
endfunction
function Trig_Magic_Tree_P3_Actions takes nothing returns nothing
call TriggerSleepAction( 10.00 )
call DestructableRestoreLife( udg_TreeP3, GetDestructableMaxLife(udg_TreeP3), true )
endfunction
//===========================================================================
function InitTrig_Magic_Tree_P3 takes nothing returns nothing
set gg_trg_Magic_Tree_P3 = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Magic_Tree_P3, gg_dest_ZTtw_0840 )
call TriggerAddAction( gg_trg_Magic_Tree_P3, function Trig_Magic_Tree_P3_Actions )
endfunction
function Trig_Magic_Tree_P4_Actions takes nothing returns nothing
call TriggerSleepAction( 10.00 )
call DestructableRestoreLife( udg_TreeP4, GetDestructableMaxLife(udg_TreeP4), true )
endfunction
//===========================================================================
function InitTrig_Magic_Tree_P4 takes nothing returns nothing
set gg_trg_Magic_Tree_P4 = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Magic_Tree_P4, gg_dest_ZTtw_0844 )
call TriggerAddAction( gg_trg_Magic_Tree_P4, function Trig_Magic_Tree_P4_Actions )
endfunction
function Trig_Bridge_Down_Func009002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_Bridge_Down_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call KillDestructable( gg_dest_LTex_0282 )
call KillDestructable( gg_dest_LTex_0377 )
call AddSpecialEffectLocBJ( GetDestructableLoc(gg_dest_YT22_0214), "war3mapImported\\NuclearExplosion.mdx" )
call TriggerSleepAction( 0.20 )
call KillDestructable( udg_Bridge )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_WARNING, "TRIGSTR_030" )
call PingMinimapLocForForceEx( GetPlayersAll(), GetDestructableLoc(udg_Bridge), 15.00, bj_MINIMAPPINGSTYLE_ATTACK, 100.00, 0.00, 0.00 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Boom_Region), function Trig_Bridge_Down_Func009002 )
call TriggerSleepAction( 60.00 )
call DestructableRestoreLife( udg_ForceBridge1, GetDestructableMaxLife(GetLastCreatedDestructable()), true )
call DestructableRestoreLife( udg_ForceBridge2, GetDestructableMaxLife(GetLastCreatedDestructable()), true )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UNITACQUIRED, "TRIGSTR_028" )
call PingMinimapLocForForceEx( GetPlayersAll(), GetDestructableLoc(udg_ForceBridge1), 15.00, bj_MINIMAPPINGSTYLE_ATTACK, 100.00, 0.00, 0.00 )
call PingMinimapLocForForceEx( GetPlayersAll(), GetDestructableLoc(udg_ForceBridge2), 15.00, bj_MINIMAPPINGSTYLE_ATTACK, 100.00, 0.00, 0.00 )
call TriggerSleepAction( 5.00 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_ITEMACQUIRED, "TRIGSTR_029" )
endfunction
//===========================================================================
function InitTrig_Bridge_Down takes nothing returns nothing
set gg_trg_Bridge_Down = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Bridge_Down, gg_dest_LTex_0377 )
call TriggerRegisterDeathEvent( gg_trg_Bridge_Down, gg_dest_LTex_0282 )
call TriggerAddAction( gg_trg_Bridge_Down, function Trig_Bridge_Down_Actions )
endfunction
function Trig_Gnoll_P1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call SetDoodadAnimationRectBJ( "death", 'NOfp', gg_rct_Camp_Fire_1 )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P1 takes nothing returns nothing
set gg_trg_Gnoll_P1 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P1, gg_unit_ngt2_0039, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P1, function Trig_Gnoll_P1_Actions )
endfunction
function Trig_Gnoll_P2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call SetDoodadAnimationRectBJ( "death", 'NOfp', gg_rct_Camp_Fire_2 )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P2 takes nothing returns nothing
set gg_trg_Gnoll_P2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P2, gg_unit_ngt2_0040, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P2, function Trig_Gnoll_P2_Actions )
endfunction
function Trig_Gnoll_P3_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call SetDoodadAnimationRectBJ( "death", 'NOfp', gg_rct_Camp_Fire_3 )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P3 takes nothing returns nothing
set gg_trg_Gnoll_P3 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P3, gg_unit_ngnh_0014, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P3, function Trig_Gnoll_P3_Actions )
endfunction
function Trig_Gnoll_P4_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngns', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call SetDoodadAnimationRectBJ( "death", 'NOfp', gg_rct_Camp_Fire_4 )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P4 takes nothing returns nothing
set gg_trg_Gnoll_P4 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P4, gg_unit_ngnh_0013, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P4, function Trig_Gnoll_P4_Actions )
endfunction
function Trig_Spider_P1_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Spider_P1 takes nothing returns nothing
set gg_trg_Spider_P1 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Spider_P1, gg_unit_nspb_0036, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Spider_P1, function Trig_Spider_P1_Actions )
endfunction
function Trig_Spider_P2_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Spider_P2 takes nothing returns nothing
set gg_trg_Spider_P2 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Spider_P2, gg_unit_nspb_0033, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Spider_P2, function Trig_Spider_P2_Actions )
endfunction
function Trig_Spider_P3_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Spider_P3 takes nothing returns nothing
set gg_trg_Spider_P3 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Spider_P3, gg_unit_nspb_0005, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Spider_P3, function Trig_Spider_P3_Actions )
endfunction
function Trig_Spider_P4_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetUnitLoc(GetDyingUnit())
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'nspg', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Spider_P4 takes nothing returns nothing
set gg_trg_Spider_P4 = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Spider_P4, gg_unit_nspb_0002, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Spider_P4, function Trig_Spider_P4_Actions )
endfunction
function Trig_Gnoll_P1_Up_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P1_Up takes nothing returns nothing
set gg_trg_Gnoll_P1_Up = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P1_Up, gg_unit_ngt2_0072, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P1_Up, function Trig_Gnoll_P1_Up_Actions )
endfunction
function Trig_Gnoll_P2_Up_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P2_Up takes nothing returns nothing
set gg_trg_Gnoll_P2_Up = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P2_Up, gg_unit_ngt2_0075, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P2_Up, function Trig_Gnoll_P2_Up_Actions )
endfunction
function Trig_Gnoll_P3_Up_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P3_Up takes nothing returns nothing
set gg_trg_Gnoll_P3_Up = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P3_Up, gg_unit_ngnh_0079, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P3_Up, function Trig_Gnoll_P3_Up_Actions )
endfunction
function Trig_Gnoll_P4_Up_Actions takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngna', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngnb', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
endfunction
//===========================================================================
function InitTrig_Gnoll_P4_Up takes nothing returns nothing
set gg_trg_Gnoll_P4_Up = CreateTrigger( )
call TriggerRegisterUnitEvent( gg_trg_Gnoll_P4_Up, gg_unit_ngnh_0080, EVENT_UNIT_DEATH )
call TriggerAddAction( gg_trg_Gnoll_P4_Up, function Trig_Gnoll_P4_Up_Actions )
endfunction
function Trig_ROCKS_Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 3) == 2 ) ) then
return false
endif
return true
endfunction
function Trig_ROCKS_Actions takes nothing returns nothing
if ( Trig_ROCKS_Func001C() ) then
set udg_TempLoc = GetDestructableLoc(GetDyingDestructable())
call CreateNUnitsAtLoc( 1, 'nspr', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetDestructableLoc(GetDyingDestructable()), bj_UNIT_FACING )
call RemoveLocation (udg_TempLoc)
else
endif
endfunction
//===========================================================================
function InitTrig_ROCKS takes nothing returns nothing
set gg_trg_ROCKS = CreateTrigger( )
call TriggerRegisterDestDeathInRegionEvent( gg_trg_ROCKS, gg_rct_Rocks_Region )
call TriggerAddAction( gg_trg_ROCKS, function Trig_ROCKS_Actions )
endfunction
function Trig_Team_1_Func001Func002C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Team_1_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Team_1_Actions takes nothing returns nothing
if ( Trig_Team_1_Func001C() ) then
set udg_Team1DoorHP = GetDestructableLife(gg_dest_LTg3_0593)
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_0593 )
call UnitRemoveAbilityBJ( 'A000', gg_unit_n000_0053 )
call UnitRemoveAbilityBJ( 'A000', gg_unit_n000_0052 )
call UnitAddAbilityBJ( 'A001', gg_unit_n000_0053 )
call UnitAddAbilityBJ( 'A001', gg_unit_n000_0052 )
else
if ( Trig_Team_1_Func001Func002C() ) then
call DestructableRestoreLife( gg_dest_LTg3_0593, udg_Team1DoorHP, true )
call SetDestructableLife( gg_dest_LTg3_0845, udg_Team1DoorHP )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0053 )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0052 )
call UnitAddAbilityBJ( 'A000', gg_unit_n000_0053 )
call UnitAddAbilityBJ( 'A000', gg_unit_n000_0052 )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Team_1 takes nothing returns nothing
set gg_trg_Team_1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team_1, Player(0), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team_1, Player(1), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddAction( gg_trg_Team_1, function Trig_Team_1_Actions )
endfunction
function Trig_Team_1_Anti_Cheat_Actions takes nothing returns nothing
call KillUnit( gg_unit_n000_0053 )
call KillUnit( gg_unit_n000_0052 )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Team_1 )
call KillDestructable( gg_dest_LTg3_0593 )
endfunction
//===========================================================================
function InitTrig_Team_1_Anti_Cheat takes nothing returns nothing
set gg_trg_Team_1_Anti_Cheat = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Team_1_Anti_Cheat, gg_dest_LTg3_0845 )
call TriggerAddAction( gg_trg_Team_1_Anti_Cheat, function Trig_Team_1_Anti_Cheat_Actions )
endfunction
function Trig_Team_2_Func001Func002C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A001' ) ) then
return false
endif
return true
endfunction
function Trig_Team_2_Func001C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A000' ) ) then
return false
endif
return true
endfunction
function Trig_Team_2_Actions takes nothing returns nothing
if ( Trig_Team_2_Func001C() ) then
set udg_Team2DoorHP = GetDestructableLife(gg_dest_LTg3_0212)
call ModifyGateBJ( bj_GATEOPERATION_OPEN, gg_dest_LTg3_0212 )
call UnitRemoveAbilityBJ( 'A000', gg_unit_n000_0054 )
call UnitRemoveAbilityBJ( 'A000', gg_unit_n000_0055 )
call UnitAddAbilityBJ( 'A001', gg_unit_n000_0054 )
call UnitAddAbilityBJ( 'A001', gg_unit_n000_0055 )
else
if ( Trig_Team_2_Func001Func002C() ) then
call DestructableRestoreLife( gg_dest_LTg3_0212, udg_Team2DoorHP, true )
call SetDestructableLife( gg_dest_LTg3_0913, udg_Team2DoorHP )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0054 )
call UnitRemoveAbilityBJ( 'A001', gg_unit_n000_0055 )
call UnitAddAbilityBJ( 'A000', gg_unit_n000_0054 )
call UnitAddAbilityBJ( 'A000', gg_unit_n000_0055 )
else
endif
endif
endfunction
//===========================================================================
function InitTrig_Team_2 takes nothing returns nothing
set gg_trg_Team_2 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team_2, Player(2), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Team_2, Player(3), EVENT_PLAYER_UNIT_SPELL_FINISH )
call TriggerAddAction( gg_trg_Team_2, function Trig_Team_2_Actions )
endfunction
function Trig_Team_2_Anti_Cheat_Actions takes nothing returns nothing
call KillUnit( gg_unit_n000_0054 )
call KillUnit( gg_unit_n000_0055 )
call DisableTrigger( GetTriggeringTrigger() )
call DisableTrigger( gg_trg_Team_2 )
call KillDestructable( gg_dest_LTg3_0212 )
endfunction
//===========================================================================
function InitTrig_Team_2_Anti_Cheat takes nothing returns nothing
set gg_trg_Team_2_Anti_Cheat = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Team_2_Anti_Cheat, gg_dest_LTg3_0913 )
call TriggerAddAction( gg_trg_Team_2_Anti_Cheat, function Trig_Team_2_Anti_Cheat_Actions )
endfunction
function Trig_Sistem_Info_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_043", "TRIGSTR_044", "ReplaceableTextures\\WorldEditUI\\Doodad-Cinematic.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_045", "TRIGSTR_046", "ReplaceableTextures\\WorldEditUI\\Doodad-Bridge.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_047", "TRIGSTR_048", "ReplaceableTextures\\WorldEditUI\\Doodad-Destructible.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_049", "TRIGSTR_050", "UI\\Minimap\\MiniMap-Entrance.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_051", "TRIGSTR_052", "ReplaceableTextures\\CommandButtons\\BTNAmbush.blp" )
endfunction
//===========================================================================
function InitTrig_Sistem_Info takes nothing returns nothing
set gg_trg_Sistem_Info = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Sistem_Info, 5.00 )
call TriggerAddAction( gg_trg_Sistem_Info, function Trig_Sistem_Info_Actions )
endfunction
function Trig_Map_Info_Actions takes nothing returns nothing
call TriggerSleepAction( 1.00 )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_055", "TRIGSTR_056", "ReplaceableTextures\\WorldEditUI\\Editor-MultipleDoodads.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_065", "TRIGSTR_066", "ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp" )
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_070", "TRIGSTR_071", "ReplaceableTextures\\CommandButtons\\BTNArcaniteArchitecture.blp" )
endfunction
//===========================================================================
function InitTrig_Map_Info takes nothing returns nothing
set gg_trg_Map_Info = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Map_Info, 5.00 )
call TriggerAddAction( gg_trg_Map_Info, function Trig_Map_Info_Actions )
endfunction
function Trig_Day_Actions takes nothing returns nothing
call SetDoodadAnimationRectBJ( "death", 'LOlp', GetPlayableMapRect() )
call EnableWeatherEffect( udg_HeavyRain, false )
endfunction
//===========================================================================
function InitTrig_Day takes nothing returns nothing
set gg_trg_Day = CreateTrigger( )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Day, EQUAL, 6.00 )
call TriggerAddAction( gg_trg_Day, function Trig_Day_Actions )
endfunction
function Trig_Night_Actions takes nothing returns nothing
call EnableWeatherEffect( udg_HeavyRain, true )
call SetDoodadAnimationRectBJ( "stand", 'LOlp', GetPlayableMapRect() )
endfunction
//===========================================================================
function InitTrig_Night takes nothing returns nothing
set gg_trg_Night = CreateTrigger( )
call TriggerRegisterGameStateEventTimeOfDay( gg_trg_Night, EQUAL, 18.00 )
call TriggerAddAction( gg_trg_Night, function Trig_Night_Actions )
endfunction
function Trig_AI_P1_Conditions takes nothing returns boolean
if ( not ( GetPlayerController(Player(0)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_AI_P1_Actions takes nothing returns nothing
call KillUnit( gg_unit_n000_0053 )
call KillUnit( gg_unit_n001_0061 )
endfunction
//===========================================================================
function InitTrig_AI_P1 takes nothing returns nothing
set gg_trg_AI_P1 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_AI_P1, 1.00 )
call TriggerAddCondition( gg_trg_AI_P1, Condition( function Trig_AI_P1_Conditions ) )
call TriggerAddAction( gg_trg_AI_P1, function Trig_AI_P1_Actions )
endfunction
function Trig_AI_P2_Conditions takes nothing returns boolean
if ( not ( GetPlayerController(Player(1)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_AI_P2_Actions takes nothing returns nothing
call KillUnit( gg_unit_n000_0052 )
call KillUnit( gg_unit_n001_0046 )
endfunction
//===========================================================================
function InitTrig_AI_P2 takes nothing returns nothing
set gg_trg_AI_P2 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_AI_P2, 1.00 )
call TriggerAddCondition( gg_trg_AI_P2, Condition( function Trig_AI_P2_Conditions ) )
call TriggerAddAction( gg_trg_AI_P2, function Trig_AI_P2_Actions )
endfunction
function Trig_AI_P3_Conditions takes nothing returns boolean
if ( not ( GetPlayerController(Player(2)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_AI_P3_Actions takes nothing returns nothing
call KillUnit( gg_unit_n000_0055 )
call KillUnit( gg_unit_n001_0065 )
endfunction
//===========================================================================
function InitTrig_AI_P3 takes nothing returns nothing
set gg_trg_AI_P3 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_AI_P3, 1.00 )
call TriggerAddCondition( gg_trg_AI_P3, Condition( function Trig_AI_P3_Conditions ) )
call TriggerAddAction( gg_trg_AI_P3, function Trig_AI_P3_Actions )
endfunction
function Trig_AI_P4_Conditions takes nothing returns boolean
if ( not ( GetPlayerController(Player(3)) == MAP_CONTROL_COMPUTER ) ) then
return false
endif
return true
endfunction
function Trig_AI_P4_Actions takes nothing returns nothing
call KillUnit( gg_unit_n000_0054 )
call KillUnit( gg_unit_n001_0064 )
endfunction
//===========================================================================
function InitTrig_AI_P4 takes nothing returns nothing
set gg_trg_AI_P4 = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_AI_P4, 1.00 )
call TriggerAddCondition( gg_trg_AI_P4, Condition( function Trig_AI_P4_Conditions ) )
call TriggerAddAction( gg_trg_AI_P4, function Trig_AI_P4_Actions )
endfunction
function Trig_P1_Leaves_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_WARNING, "TRIGSTR_082" )
call PauseGameOn( )
call TriggerSleepAction( 3.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.50, "TRIGSTR_089" )
call TriggerSleepAction( 1.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_084" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_085" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_086" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_087" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_088" )
call TriggerSleepAction( 0.75 )
call StartMeleeAI( Player(0), "map.ai" )
call PauseGameOff( )
endfunction
//===========================================================================
function InitTrig_P1_Leaves takes nothing returns nothing
set gg_trg_P1_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_P1_Leaves, Player(0) )
call TriggerAddAction( gg_trg_P1_Leaves, function Trig_P1_Leaves_Actions )
endfunction
function Trig_P2_Leaves_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_090" )
call PauseGameOn( )
call TriggerSleepAction( 3.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.50, "TRIGSTR_091" )
call TriggerSleepAction( 1.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_092" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_093" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_094" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_095" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_096" )
call TriggerSleepAction( 0.75 )
call StartMeleeAI( Player(1), "map.ai" )
call PauseGameOff( )
endfunction
//===========================================================================
function InitTrig_P2_Leaves takes nothing returns nothing
set gg_trg_P2_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_P2_Leaves, Player(1) )
call TriggerAddAction( gg_trg_P2_Leaves, function Trig_P2_Leaves_Actions )
endfunction
function Trig_P3_Leaves_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_097" )
call PauseGameOn( )
call TriggerSleepAction( 3.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.50, "TRIGSTR_098" )
call TriggerSleepAction( 1.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_099" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_100" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_101" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_102" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_103" )
call TriggerSleepAction( 0.75 )
call StartMeleeAI( Player(2), "map.ai" )
call PauseGameOff( )
endfunction
//===========================================================================
function InitTrig_P3_Leaves takes nothing returns nothing
set gg_trg_P3_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_P3_Leaves, Player(2) )
call TriggerAddAction( gg_trg_P3_Leaves, function Trig_P3_Leaves_Actions )
endfunction
function Trig_P4_Leaves_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "TRIGSTR_104" )
call PauseGameOn( )
call TriggerSleepAction( 3.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.50, "TRIGSTR_105" )
call TriggerSleepAction( 1.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_106" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_107" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_108" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_109" )
call TriggerSleepAction( 1.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_110" )
call TriggerSleepAction( 0.75 )
call StartMeleeAI( Player(3), "map.ai" )
call PauseGameOff( )
endfunction
//===========================================================================
function InitTrig_P4_Leaves takes nothing returns nothing
set gg_trg_P4_Leaves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_P4_Leaves, Player(3) )
call TriggerAddAction( gg_trg_P4_Leaves, function Trig_P4_Leaves_Actions )
endfunction
function Trig_What_it_says_Actions takes nothing returns nothing
call CreateTextTagLocBJ( "TRIGSTR_214", GetRectCenter(gg_rct_P1_Bonus_Mine), 0, 10, 100, 100, 100, 0 )
set udg_P1 = GetLastCreatedTextTag()
call CreateTextTagLocBJ( "TRIGSTR_215", GetRectCenter(gg_rct_P2_Bonus_Mine), 0, 10, 100, 100, 100, 0 )
set udg_P2 = GetLastCreatedTextTag()
call CreateTextTagLocBJ( "TRIGSTR_216", GetRectCenter(gg_rct_P3_Bonus_Mine), 0, 10, 100, 100, 100, 0 )
set udg_P3 = GetLastCreatedTextTag()
call CreateTextTagLocBJ( "TRIGSTR_217", GetRectCenter(gg_rct_P4_Bonus_Mine), 0, 10, 100, 100, 100, 0 )
set udg_P4 = GetLastCreatedTextTag()
call TriggerSleepAction( 60.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_218", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_219", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_220", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_221", 10 )
call TriggerSleepAction( 60.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_222", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_223", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_224", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_225", 10 )
call TriggerSleepAction( 60.00 )
call TriggerExecute( gg_trg_And_what_else_it_will_say )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_What_it_says takes nothing returns nothing
set gg_trg_What_it_says = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_What_it_says, 1.00 )
call TriggerAddAction( gg_trg_What_it_says, function Trig_What_it_says_Actions )
endfunction
function Trig_And_what_else_it_will_say_Actions takes nothing returns nothing
call SetTextTagTextBJ( udg_P1, "TRIGSTR_132", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_136", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_137", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_138", 10 )
call TriggerSleepAction( 60.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_139", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_140", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_141", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_142", 10 )
call TriggerSleepAction( 60.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_143", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_144", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_145", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_146", 10 )
call TriggerSleepAction( 60.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_147", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_148", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_149", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_150", 10 )
call TriggerSleepAction( 30.00 )
call DisableTrigger( GetTriggeringTrigger() )
call TriggerExecute( gg_trg_What_else )
endfunction
//===========================================================================
function InitTrig_And_what_else_it_will_say takes nothing returns nothing
set gg_trg_And_what_else_it_will_say = CreateTrigger( )
call TriggerAddAction( gg_trg_And_what_else_it_will_say, function Trig_And_what_else_it_will_say_Actions )
endfunction
function Trig_What_else_Actions takes nothing returns nothing
call SetTextTagTextBJ( udg_P1, "TRIGSTR_151", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_152", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_153", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_154", 10 )
call TriggerSleepAction( 10.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_155", 20.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_156", 20.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_157", 20.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_158", 20.00 )
call TriggerSleepAction( 5.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_159", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_160", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_161", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_162", 10 )
call TriggerSleepAction( 5.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_163", 20.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_164", 20.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_165", 20.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_166", 20.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_167", 15.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_168", 15.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_169", 15.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_170", 15.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_171", 15.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_172", 15.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_173", 15.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_174", 15.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_175", 15.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_176", 15.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_177", 15.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_178", 15.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_180", 15.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_181", 15.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_182", 15.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_183", 15.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_184", 20.00 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_185", 20.00 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_186", 20.00 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_187", 20.00 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_188", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_189", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_190", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_191", 10 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_192", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_193", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_194", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_195", 10 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_196", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_197", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_198", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_199", 10 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_200", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_201", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_202", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_203", 10 )
call TriggerSleepAction( 1.00 )
call SetTextTagTextBJ( udg_P1, "TRIGSTR_204", 10 )
call SetTextTagTextBJ( udg_P2, "TRIGSTR_205", 10 )
call SetTextTagTextBJ( udg_P3, "TRIGSTR_206", 10 )
call SetTextTagTextBJ( udg_P4, "TRIGSTR_207", 10 )
call TriggerSleepAction( 0.30 )
call DestroyTextTagBJ( udg_P1 )
call DestroyTextTagBJ( udg_P2 )
call DestroyTextTagBJ( udg_P3 )
call DestroyTextTagBJ( udg_P4 )
endfunction
//===========================================================================
function InitTrig_What_else takes nothing returns nothing
set gg_trg_What_else = CreateTrigger( )
call TriggerAddAction( gg_trg_What_else, function Trig_What_else_Actions )
endfunction
function Trig_What_Happens_Actions takes nothing returns nothing
call KillDestructable( gg_dest_LTbr_1760 )
call KillDestructable( gg_dest_LTbr_1759 )
call KillDestructable( gg_dest_LTbr_1758 )
call KillDestructable( gg_dest_LTbr_1757 )
call TriggerSleepAction( 0.10 )
call CreateNUnitsAtLoc( 1, 'ngol', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_P1_Bonus_Mine), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngol', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_P2_Bonus_Mine), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngol', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_P3_Bonus_Mine), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'ngol', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_P4_Bonus_Mine), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_What_Happens takes nothing returns nothing
set gg_trg_What_Happens = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_What_Happens, 423.00 )
call TriggerAddAction( gg_trg_What_Happens, function Trig_What_Happens_Actions )
endfunction