Name | Type | is_array | initial_value |
Angle1 | real | No | |
Circle | unit | Yes | |
Flying | boolean | No | |
Level | integer | No | |
Lives | real | No | 3.00 |
Point | location | No | |
Position | location | No | |
Speed | real | No | 5.00 |
function Trig_TIME_Copy_Actions takes nothing returns nothing
call SetTerrainTypeBJ( GetRectCenter(gg_rct_Region_043), 'Nice', -1, 1, 1 )
call SetTerrainTypeBJ( GetRectCenter(gg_rct_Region_044), 'Nice', -1, 1, 1 )
call TriggerSleepAction( 4.00 )
call SetTerrainTypeBJ( GetRectCenter(gg_rct_Region_043), 'Yhdg', -1, 1, 1 )
call SetTerrainTypeBJ( GetRectCenter(gg_rct_Region_044), 'Yhdg', -1, 1, 1 )
endfunction
//===========================================================================
function InitTrig_TIME_Copy takes nothing returns nothing
set gg_trg_TIME_Copy = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_TIME_Copy, 8.00 )
call TriggerAddAction( gg_trg_TIME_Copy, function Trig_TIME_Copy_Actions )
endfunction
function Trig_Turn_Conditions takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(GetUnitLoc(GetTriggerUnit())) == 'Nice' ) ) then
return false
endif
return true
endfunction
function Trig_Turn_Func001001 takes nothing returns boolean
return ( RectContainsUnit(gg_rct_Region_000_Copy_2, GetTriggerUnit()) != true )
endfunction
function Trig_Turn_Actions takes nothing returns nothing
if ( Trig_Turn_Func001001() ) then
call SetUnitFacingToFaceLocTimed( GetTriggerUnit(), GetOrderPointLoc(), 0 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Turn takes nothing returns nothing
set gg_trg_Turn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Turn, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Turn, Condition( function Trig_Turn_Conditions ) )
call TriggerAddAction( gg_trg_Turn, function Trig_Turn_Actions )
endfunction
function Trig_Leves_Func002002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig_Leves_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 30, ( ( GetPlayerName(GetTriggerPlayer()) + ( ( " (Player " + I2S(GetConvertedPlayerId(GetTriggerPlayer())) ) + ") " ) ) + "Has Left The Game." ) )
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig_Leves_Func002002 )
endfunction
//===========================================================================
function InitTrig_Leves takes nothing returns nothing
set gg_trg_Leves = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leves, Player(6) )
call TriggerAddAction( gg_trg_Leves, function Trig_Leves_Actions )
endfunction
function Trig_Dies_Conditions takes nothing returns boolean
if ( not ( IsUnitGroupDeadBJ(GetUnitsOfTypeIdAll('H002')) == true ) ) then
return false
endif
return true
endfunction
function Trig_Dies_Func001Func002001 takes nothing returns boolean
return ( udg_Level == 0 )
endfunction
function Trig_Dies_Func001Func003001 takes nothing returns boolean
return ( udg_Level == 1 )
endfunction
function Trig_Dies_Func001Func004001 takes nothing returns boolean
return ( udg_Level == 2 )
endfunction
function Trig_Dies_Func001Func005001 takes nothing returns boolean
return ( udg_Level == 3 )
endfunction
function Trig_Dies_Func001Func009002 takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_030" )
endfunction
function Trig_Dies_Func001C takes nothing returns boolean
if ( not ( udg_Lives <= 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Dies_Actions takes nothing returns nothing
if ( Trig_Dies_Func001C() ) then
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 2, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 5.00 )
call ForForce( GetPlayersAll(), function Trig_Dies_Func001Func009002 )
else
set udg_Lives = ( udg_Lives - 1 )
if ( Trig_Dies_Func001Func002001() ) then
call ConditionalTriggerExecute( gg_trg_CHECK_0 )
else
call DoNothing( )
endif
if ( Trig_Dies_Func001Func003001() ) then
call ConditionalTriggerExecute( gg_trg_CHECK )
else
call DoNothing( )
endif
if ( Trig_Dies_Func001Func004001() ) then
call ConditionalTriggerExecute( gg_trg_CHECK_Copy_2 )
else
call DoNothing( )
endif
if ( Trig_Dies_Func001Func005001() ) then
call ConditionalTriggerExecute( gg_trg_CHECK_Copy_2_Copy )
else
call DoNothing( )
endif
call ConditionalTriggerExecute( gg_trg_Board )
endif
endfunction
//===========================================================================
function InitTrig_Dies takes nothing returns nothing
set gg_trg_Dies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dies, EVENT_PLAYER_UNIT_DEATH )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Dies, Player(6) )
call TriggerAddCondition( gg_trg_Dies, Condition( function Trig_Dies_Conditions ) )
call TriggerAddAction( gg_trg_Dies, function Trig_Dies_Actions )
endfunction
function Trig_Dies2_Actions takes nothing returns nothing
set udg_Circle[1] = gg_unit_ncp3_0122
set udg_Circle[2] = gg_unit_ncp3_0123
set udg_Circle[3] = gg_unit_ncp3_0124
set udg_Circle[4] = gg_unit_ncp3_0128
set udg_Circle[5] = gg_unit_ncp3_0127
set udg_Circle[6] = gg_unit_ncp3_0126
set udg_Circle[7] = gg_unit_ncp3_0125
call SetUnitPositionLoc( udg_Circle[GetConvertedPlayerId(GetOwningPlayer(GetDyingUnit()))], GetUnitLoc(GetDyingUnit()) )
endfunction
//===========================================================================
function InitTrig_Dies2 takes nothing returns nothing
set gg_trg_Dies2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dies2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Dies2, function Trig_Dies2_Actions )
endfunction
function Trig_Slide_Func001Func002Func001C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Position) == 'Yblm' ) ) then
return false
endif
return true
endfunction
function Trig_Slide_Func001Func002C takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(udg_Position) == 'Nice' ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(GetEnumUnit()) == true ) ) then
return false
endif
return true
endfunction
function Trig_Slide_Func001A takes nothing returns nothing
set udg_Position = GetUnitLoc(GetEnumUnit())
if ( Trig_Slide_Func001Func002C() ) then
set udg_Point = PolarProjectionBJ(udg_Position, udg_Speed, GetUnitFacing(GetEnumUnit()))
call SetUnitPositionLoc( GetEnumUnit(), udg_Point )
call RemoveLocation( udg_Point )
else
if ( Trig_Slide_Func001Func002Func001C() ) then
call KillUnit( GetEnumUnit() )
else
endif
endif
call RemoveLocation( udg_Position )
endfunction
function Trig_Slide_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfTypeIdAll('H002'), function Trig_Slide_Func001A )
endfunction
//===========================================================================
function InitTrig_Slide takes nothing returns nothing
set gg_trg_Slide = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Slide, 0.03 )
call TriggerAddAction( gg_trg_Slide, function Trig_Slide_Actions )
endfunction
function Trig_Slide_Turn_Conditions takes nothing returns boolean
if ( not ( GetTerrainTypeBJ(GetUnitLoc(GetTriggerUnit())) == 'Nice' ) ) then
return false
endif
if ( not ( RectContainsUnit(gg_rct_Region_000_Copy_2, GetTriggerUnit()) == false ) ) then
return false
endif
return true
endfunction
function Trig_Slide_Turn_Actions takes nothing returns nothing
set udg_Position = GetUnitLoc(GetTriggerUnit())
call SetUnitPositionLocFacingLocBJ( GetTriggerUnit(), udg_Position, GetOrderPointLoc() )
call RemoveLocation( udg_Position )
endfunction
//===========================================================================
function InitTrig_Slide_Turn takes nothing returns nothing
set gg_trg_Slide_Turn = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Slide_Turn, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER )
call TriggerAddCondition( gg_trg_Slide_Turn, Condition( function Trig_Slide_Turn_Conditions ) )
call TriggerAddAction( gg_trg_Slide_Turn, function Trig_Slide_Turn_Actions )
endfunction
function Trig_P1_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(0) ) ) then
return false
endif
return true
endfunction
function Trig_P1_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0105, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(0), GetUnitLoc(gg_unit_ncp3_0122), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0122, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(0) )
endfunction
//===========================================================================
function InitTrig_P1_Revive takes nothing returns nothing
set gg_trg_P1_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P1_Revive, 70.00, gg_unit_ncp3_0122 )
call TriggerAddCondition( gg_trg_P1_Revive, Condition( function Trig_P1_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P1_Revive, function Trig_P1_Revive_Actions )
endfunction
function Trig_P2_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(1) ) ) then
return false
endif
return true
endfunction
function Trig_P2_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0104, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(1), GetUnitLoc(gg_unit_ncp3_0123), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0123, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(1) )
endfunction
//===========================================================================
function InitTrig_P2_Revive takes nothing returns nothing
set gg_trg_P2_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P2_Revive, 70.00, gg_unit_ncp3_0123 )
call TriggerAddCondition( gg_trg_P2_Revive, Condition( function Trig_P2_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P2_Revive, function Trig_P2_Revive_Actions )
endfunction
function Trig_P3_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(2) ) ) then
return false
endif
return true
endfunction
function Trig_P3_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0106, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(2), GetUnitLoc(gg_unit_ncp3_0124), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0124, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(2) )
endfunction
//===========================================================================
function InitTrig_P3_Revive takes nothing returns nothing
set gg_trg_P3_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P3_Revive, 70.00, gg_unit_ncp3_0124 )
call TriggerAddCondition( gg_trg_P3_Revive, Condition( function Trig_P3_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P3_Revive, function Trig_P3_Revive_Actions )
endfunction
function Trig_P4_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(3) ) ) then
return false
endif
return true
endfunction
function Trig_P4_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0107, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(3), GetUnitLoc(gg_unit_ncp3_0128), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0128, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(3) )
endfunction
//===========================================================================
function InitTrig_P4_Revive takes nothing returns nothing
set gg_trg_P4_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P4_Revive, 70.00, gg_unit_ncp3_0128 )
call TriggerAddCondition( gg_trg_P4_Revive, Condition( function Trig_P4_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P4_Revive, function Trig_P4_Revive_Actions )
endfunction
function Trig_P5_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(4) ) ) then
return false
endif
return true
endfunction
function Trig_P5_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0108, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(4), GetUnitLoc(gg_unit_ncp3_0127), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0127, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(4) )
endfunction
//===========================================================================
function InitTrig_P5_Revive takes nothing returns nothing
set gg_trg_P5_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P5_Revive, 70.00, gg_unit_ncp3_0127 )
call TriggerAddCondition( gg_trg_P5_Revive, Condition( function Trig_P5_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P5_Revive, function Trig_P5_Revive_Actions )
endfunction
function Trig_P6_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(5) ) ) then
return false
endif
return true
endfunction
function Trig_P6_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0109, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(5), GetUnitLoc(gg_unit_ncp3_0126), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0126, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(5) )
endfunction
//===========================================================================
function InitTrig_P6_Revive takes nothing returns nothing
set gg_trg_P6_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P6_Revive, 70.00, gg_unit_ncp3_0126 )
call TriggerAddCondition( gg_trg_P6_Revive, Condition( function Trig_P6_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P6_Revive, function Trig_P6_Revive_Actions )
endfunction
function Trig_P7_Revive_Conditions takes nothing returns boolean
if ( not ( RectContainsUnit(gg_rct_Region_097, GetTriggerUnit()) == false ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'H002' ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetTriggerUnit()) != Player(6) ) ) then
return false
endif
return true
endfunction
function Trig_P7_Revive_Actions takes nothing returns nothing
call ReviveHeroLoc( gg_unit_H002_0110, GetUnitLoc(GetTriggerUnit()), true )
call PanCameraToTimedLocForPlayer( Player(6), GetUnitLoc(gg_unit_ncp3_0125), 0.00 )
call SetUnitPositionLoc( gg_unit_ncp3_0125, GetRandomLocInRect(gg_rct_Region_097) )
call SelectUnitForPlayerSingle( GetRevivingUnit(), Player(6) )
endfunction
//===========================================================================
function InitTrig_P7_Revive takes nothing returns nothing
set gg_trg_P7_Revive = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_P7_Revive, 70.00, gg_unit_ncp3_0125 )
call TriggerAddCondition( gg_trg_P7_Revive, Condition( function Trig_P7_Revive_Conditions ) )
call TriggerAddAction( gg_trg_P7_Revive, function Trig_P7_Revive_Actions )
endfunction