Name | Type | is_array | initial_value |
Regions | rect | Yes | |
ResourceTime | timer | No | |
ResourceTimerWindow | timerdialog | No | |
Sound | sound | Yes | |
Team1Marines | force | No | |
Team2Virus | force | No | |
UnitTypeFortress | unitcode | Yes | |
VideoLevel | button | Yes | |
VideoVotes | integer | Yes | |
VirusTimer | timer | No | |
VirusTimerWindow | timerdialog | No | |
VoteDialog | dialog | No | |
WeatherEffect | weathereffect | Yes | |
WinningTimer | timer | No | |
WinningTimerWindow | timerdialog | No |
function Trig_GameSettings_Func001002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 150 )
endfunction
function Trig_GameSettings_Func002002 takes nothing returns nothing
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, GetEnumPlayer() )
endfunction
function Trig_GameSettings_Func004002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'LTw3' )
endfunction
function Trig_GameSettings_Func004002 takes nothing returns nothing
if ( Trig_GameSettings_Func004002001() ) then
call SetDestructableInvulnerableBJ( GetEnumDestructable(), true )
else
call DoNothing( )
endif
endfunction
function Trig_GameSettings_Func005002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'LTw1' )
endfunction
function Trig_GameSettings_Func005002 takes nothing returns nothing
if ( Trig_GameSettings_Func005002001() ) then
call SetDestructableInvulnerableBJ( GetEnumDestructable(), true )
else
call DoNothing( )
endif
endfunction
function Trig_GameSettings_Func006002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'LTw0' )
endfunction
function Trig_GameSettings_Func006002 takes nothing returns nothing
if ( Trig_GameSettings_Func006002001() ) then
call SetDestructableInvulnerableBJ( GetEnumDestructable(), true )
else
call DoNothing( )
endif
endfunction
function Trig_GameSettings_Func007002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'LTw2' )
endfunction
function Trig_GameSettings_Func007002 takes nothing returns nothing
if ( Trig_GameSettings_Func007002001() ) then
call SetDestructableInvulnerableBJ( GetEnumDestructable(), true )
else
call DoNothing( )
endif
endfunction
function Trig_GameSettings_Actions takes nothing returns nothing
call ForForce( GetPlayersAllies(Player(0)), function Trig_GameSettings_Func001002 )
call ForForce( GetPlayersAll(), function Trig_GameSettings_Func002002 )
call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(11) )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig_GameSettings_Func004002 )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig_GameSettings_Func005002 )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig_GameSettings_Func006002 )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig_GameSettings_Func007002 )
call SetPlayerStateBJ( Player(11), PLAYER_STATE_FOOD_CAP_CEILING, 90 )
call SetPlayerStateBJ( Player(11), PLAYER_STATE_RESOURCE_FOOD_CAP, 90 )
endfunction
//===========================================================================
function InitTrig_GameSettings takes nothing returns nothing
set gg_trg_GameSettings = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_GameSettings, 1.00 )
call TriggerAddAction( gg_trg_GameSettings, function Trig_GameSettings_Actions )
endfunction
function Trig______ConstantLumber_Func001002 takes nothing returns nothing
call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_LUMBER, 100 )
endfunction
function Trig______ConstantLumber_Actions takes nothing returns nothing
call ForForce( GetPlayersAllies(Player(0)), function Trig______ConstantLumber_Func001002 )
endfunction
//===========================================================================
function InitTrig______ConstantLumber takes nothing returns nothing
set gg_trg______ConstantLumber = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg______ConstantLumber, 10.00 )
call TriggerAddAction( gg_trg______ConstantLumber, function Trig______ConstantLumber_Actions )
endfunction
function Trig_StartingVideo_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 5.00 )
call TriggerExecute( gg_trg_Video )
endfunction
//===========================================================================
function InitTrig_StartingVideo takes nothing returns nothing
set gg_trg_StartingVideo = CreateTrigger( )
call TriggerAddAction( gg_trg_StartingVideo, function Trig_StartingVideo_Actions )
endfunction
function Trig_Video_Func006002 takes nothing returns nothing
call DialogDisplayBJ( true, udg_VoteDialog, GetEnumPlayer() )
endfunction
function Trig_Video_Actions takes nothing returns nothing
call DialogSetMessageBJ( udg_VoteDialog, "TRIGSTR_993" )
call DialogAddButtonBJ( udg_VoteDialog, "TRIGSTR_994" )
set udg_VideoLevel[1] = GetLastCreatedButtonBJ()
call DialogAddButtonBJ( udg_VoteDialog, "TRIGSTR_995" )
set udg_VideoLevel[2] = GetLastCreatedButtonBJ()
call ForForce( GetPlayersAll(), function Trig_Video_Func006002 )
endfunction
//===========================================================================
function InitTrig_Video takes nothing returns nothing
set gg_trg_Video = CreateTrigger( )
call DisableTrigger( gg_trg_Video )
call TriggerAddAction( gg_trg_Video, function Trig_Video_Actions )
endfunction
function Trig_Vote_For_Yes_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_VideoLevel[1] ) ) then
return false
endif
return true
endfunction
function Trig_Vote_For_Yes_Actions takes nothing returns nothing
set udg_VideoVotes[1] = ( udg_VideoVotes[1] + 1 )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " Has Picked For |CFF18BE00Yes" ) )
endfunction
//===========================================================================
function InitTrig_Vote_For_Yes takes nothing returns nothing
set gg_trg_Vote_For_Yes = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Vote_For_Yes, udg_VoteDialog )
call TriggerAddCondition( gg_trg_Vote_For_Yes, Condition( function Trig_Vote_For_Yes_Conditions ) )
call TriggerAddAction( gg_trg_Vote_For_Yes, function Trig_Vote_For_Yes_Actions )
endfunction
function Trig_Vote_For_No_Conditions takes nothing returns boolean
if ( not ( GetClickedButtonBJ() == udg_VideoLevel[2] ) ) then
return false
endif
return true
endfunction
function Trig_Vote_For_No_Actions takes nothing returns nothing
set udg_VideoVotes[2] = ( udg_VideoVotes[2] + 1 )
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " Has Picked For |CFFFF8A08No" ) )
endfunction
//===========================================================================
function InitTrig_Vote_For_No takes nothing returns nothing
set gg_trg_Vote_For_No = CreateTrigger( )
call TriggerRegisterDialogEventBJ( gg_trg_Vote_For_No, udg_VoteDialog )
call TriggerAddCondition( gg_trg_Vote_For_No, Condition( function Trig_Vote_For_No_Conditions ) )
call TriggerAddAction( gg_trg_Vote_For_No, function Trig_Vote_For_No_Actions )
endfunction
function Trig_Setting_It_Func002001 takes nothing returns boolean
return ( udg_VideoVotes[1] > udg_VideoVotes[2] )
endfunction
function Trig_Setting_It_Func004001 takes nothing returns boolean
return ( udg_VideoVotes[2] >= udg_VideoVotes[1] )
endfunction
function Trig_Setting_It_Actions takes nothing returns nothing
// Yes
if ( Trig_Setting_It_Func002001() ) then
call TriggerExecute( gg_trg_PlayVideo )
else
call DoNothing( )
endif
// No
if ( Trig_Setting_It_Func004001() ) then
call TriggerExecute( gg_trg_PlayGame )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Setting_It takes nothing returns nothing
set gg_trg_Setting_It = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Setting_It, 20.00 )
call TriggerAddAction( gg_trg_Setting_It, function Trig_Setting_It_Actions )
endfunction
function Trig_PlayVideo_Func009002 takes nothing returns nothing
call CameraSetTargetNoiseForPlayer( GetEnumPlayer(), 8.00, 4.00 )
endfunction
function Trig_PlayVideo_Actions takes nothing returns nothing
call IssueImmediateOrderBJ( gg_unit_u000_0070, "holdposition" )
call IssueImmediateOrderBJ( gg_unit_u000_0071, "holdposition" )
call IssueImmediateOrderBJ( gg_unit_u000_0072, "holdposition" )
call IssueImmediateOrderBJ( gg_unit_u000_0073, "holdposition" )
call SetTimeOfDay( 24.00 )
call UseTimeOfDayBJ( false )
call CinematicModeBJ( true, GetPlayersAll() )
call TriggerExecute( gg_trg______CameraSettings )
call ForForce( GetPlayersAll(), function Trig_PlayVideo_Func009002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[1]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[2]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[3]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[4]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[5]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[6]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[7]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[8]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[9]), 90.00 )
call CreateNUnitsAtLoc( 1, 'z000', Player(10), GetRectCenter(udg_Regions[10]), 90.00 )
endfunction
//===========================================================================
function InitTrig_PlayVideo takes nothing returns nothing
set gg_trg_PlayVideo = CreateTrigger( )
call DisableTrigger( gg_trg_PlayVideo )
call TriggerAddAction( gg_trg_PlayVideo, function Trig_PlayVideo_Actions )
endfunction
function Trig______CameraSettings_Func001002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_1, GetEnumPlayer(), 0 )
endfunction
function Trig______CameraSettings_Func003002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_2, GetEnumPlayer(), 6.00 )
endfunction
function Trig______CameraSettings_Func008002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_3, GetEnumPlayer(), 0.00 )
endfunction
function Trig______CameraSettings_Func014002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_4, GetEnumPlayer(), 6.00 )
endfunction
function Trig______CameraSettings_Func016002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_5, GetEnumPlayer(), 4.00 )
endfunction
function Trig______CameraSettings_Func047002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_S2, GetEnumPlayer(), 0.00 )
endfunction
function Trig______CameraSettings_Func070002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_6, GetEnumPlayer(), 0.00 )
endfunction
function Trig______CameraSettings_Func091002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_7, GetEnumPlayer(), 0.00 )
endfunction
function Trig______CameraSettings_Func104002001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'z000' )
endfunction
function Trig______CameraSettings_Func104002 takes nothing returns nothing
if ( Trig______CameraSettings_Func104002001() ) then
call ExplodeUnitBJ( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig______CameraSettings_Func107002 takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig______CameraSettings_Func109002001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'u000' )
endfunction
function Trig______CameraSettings_Func109002 takes nothing returns nothing
if ( Trig______CameraSettings_Func109002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig______CameraSettings_Actions takes nothing returns nothing
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func001002 )
call TriggerSleepAction( 3.00 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func003002 )
call TriggerSleepAction( 8.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 1.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func008002 )
call IssueTargetOrderBJ( gg_unit_u000_0070, "attack", gg_unit_z000_0069 )
call TriggerSleepAction( 3.90 )
call SetUnitMoveSpeed( gg_unit_u000_0070, 25.00 )
call SetUnitTimeScalePercent( gg_unit_u000_0070, 10.00 )
call TriggerSleepAction( 6.00 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func014002 )
call TriggerSleepAction( 6.00 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func016002 )
call TriggerSleepAction( 4.00 )
call IssuePointOrderLocBJ( gg_unit_u000_0071, "attack", GetRandomLocInRect(gg_rct_UnitSpeed1) )
call IssuePointOrderLocBJ( gg_unit_u000_0072, "attack", GetRandomLocInRect(gg_rct_UnitSpeed1) )
call IssuePointOrderLocBJ( gg_unit_u000_0073, "attack", GetRandomLocInRect(gg_rct_UnitSpeed1) )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 0.05 )
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call SetUnitMoveSpeed( gg_unit_u000_0070, 255.00 )
call TriggerSleepAction( 3.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 1.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func047002 )
call SetUnitMoveSpeed( gg_unit_u000_0070, 25.00 )
call SetUnitMoveSpeed( gg_unit_u000_0071, 25.00 )
call SetUnitMoveSpeed( gg_unit_u000_0072, 25.00 )
call SetUnitMoveSpeed( gg_unit_u000_0073, 25.00 )
call TriggerSleepAction( 6.00 )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0070, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0070, "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0071, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0071, "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0072, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0072, "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0073, "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl" )
call AddSpecialEffectTargetUnitBJ( "origin", gg_unit_u000_0073, "Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" )
call TriggerSleepAction( 1.00 )
call KillUnit( gg_unit_u000_0070 )
call KillUnit( gg_unit_u000_0071 )
call KillUnit( gg_unit_u000_0072 )
call KillUnit( gg_unit_u000_0073 )
call TriggerSleepAction( 2.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 1.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func070002 )
call TriggerSleepAction( 2 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Abilities\\Spells\\Undead\\DarkSummoning\\DarkSummonMissile.mdl" )
call TriggerSleepAction( 1.50 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
call TriggerSleepAction( 0.80 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl" )
call TriggerSleepAction( 0.50 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodLarge0.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodLarge0.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl" )
call CreateNUnitsAtLoc( 1, 'Uwar', Player(11), GetRectCenter(gg_rct_SpecialEffect), 315.00 )
call TriggerSleepAction( 1.25 )
call PlaySoundAtPointBJ( gg_snd_TichondriusYesAttack1, 100.00, GetRectCenter(gg_rct_SpecialEffect), 0 )
call SetUnitAnimation( GetLastCreatedUnit(), "spell slam" )
call TriggerSleepAction( 2.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 1.50 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 1.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func091002 )
call TriggerSleepAction( 1.25 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine1), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine2), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine3), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine4), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine5), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine6), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine7), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine8), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine9), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Marine10), "Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl" )
call TriggerSleepAction( 0.80 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_UnitSpeed0), function Trig______CameraSettings_Func104002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 6.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call TriggerSleepAction( 5.00 )
call ForForce( GetPlayersAll(), function Trig______CameraSettings_Func107002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 2.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_UnitSpeed0), function Trig______CameraSettings_Func109002 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraRed, Player(0), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraBlue, Player(1), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraTeal, Player(2), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraPurple, Player(3), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraYellow, Player(4), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraOrange, Player(5), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraGreen, Player(6), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraPink, Player(7), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraGray, Player(8), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraBrown, Player(11), 0 )
call CinematicModeBJ( false, GetPlayersAll() )
call TriggerExecute( gg_trg_TheVirusTimer )
call UseTimeOfDayBJ( true )
call SetTimeOfDayScalePercentBJ( 300.00 )
endfunction
//===========================================================================
function InitTrig______CameraSettings takes nothing returns nothing
set gg_trg______CameraSettings = CreateTrigger( )
call DisableTrigger( gg_trg______CameraSettings )
call TriggerAddAction( gg_trg______CameraSettings, function Trig______CameraSettings_Actions )
endfunction
function Trig_PlayGame_Func012002001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'z000' )
endfunction
function Trig_PlayGame_Func012002 takes nothing returns nothing
if ( Trig_PlayGame_Func012002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_PlayGame_Func013002001 takes nothing returns boolean
return ( GetUnitTypeId(GetEnumUnit()) == 'u000' )
endfunction
function Trig_PlayGame_Func013002 takes nothing returns nothing
if ( Trig_PlayGame_Func013002001() ) then
call RemoveUnit( GetEnumUnit() )
else
call DoNothing( )
endif
endfunction
function Trig_PlayGame_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraRed, Player(0), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraBlue, Player(1), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraTeal, Player(2), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraPurple, Player(3), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraYellow, Player(4), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraOrange, Player(5), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraGreen, Player(6), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraPink, Player(7), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraGray, Player(8), 0 )
call CameraSetupApplyForPlayer( true, gg_cam_GameCameraBrown, Player(11), 0 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_UnitSpeed0), function Trig_PlayGame_Func012002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_UnitSpeed0), function Trig_PlayGame_Func013002 )
call TriggerExecute( gg_trg_TheVirusTimer )
call UseTimeOfDayBJ( true )
call SetTimeOfDayScalePercentBJ( 300.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Abilities\\Spells\\Undead\\DarkSummoning\\DarkSummonMissile.mdl" )
call TriggerSleepAction( 1.50 )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl" )
call TriggerSleepAction( 0.80 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl" )
call TriggerSleepAction( 0.50 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodLarge0.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodLarge0.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl" )
call CreateNUnitsAtLoc( 1, 'Uwar', Player(11), GetRectCenter(gg_rct_SpecialEffect), 315.00 )
endfunction
//===========================================================================
function InitTrig_PlayGame takes nothing returns nothing
set gg_trg_PlayGame = CreateTrigger( )
call DisableTrigger( gg_trg_PlayGame )
call TriggerAddAction( gg_trg_PlayGame, function Trig_PlayGame_Actions )
endfunction
function Trig_Variables_Actions takes nothing returns nothing
set udg_Sound[1] = null
set udg_Regions[1] = gg_rct_Marine1
set udg_Regions[2] = gg_rct_Marine2
set udg_Regions[3] = gg_rct_Marine3
set udg_Regions[4] = gg_rct_Marine4
set udg_Regions[5] = gg_rct_Marine5
set udg_Regions[6] = gg_rct_Marine6
set udg_Regions[7] = gg_rct_Marine7
set udg_Regions[8] = gg_rct_Marine8
set udg_Regions[9] = gg_rct_Marine9
set udg_Regions[10] = gg_rct_Marine10
set udg_Regions[11] = gg_rct_ZombieSpawn1
set udg_Regions[12] = gg_rct_ZombieSpawn2
set udg_Regions[13] = gg_rct_ZombieSpawn3
set udg_UnitTypeFortress[1] = 'hwtw'
set udg_Team1Marines = GetPlayersAllies(Player(0))
set udg_Team2Virus = GetPlayersAllies(Player(11))
endfunction
//===========================================================================
function InitTrig_Variables takes nothing returns nothing
set gg_trg_Variables = CreateTrigger( )
call TriggerAddAction( gg_trg_Variables, function Trig_Variables_Actions )
endfunction
function Trig_Destructibles_Func001002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'LTba' )
endfunction
function Trig_Destructibles_Func001002 takes nothing returns nothing
if ( Trig_Destructibles_Func001002001() ) then
call SetDestructableLife( GetEnumDestructable(), 300.00 )
else
call DoNothing( )
endif
endfunction
function Trig_Destructibles_Actions takes nothing returns nothing
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig_Destructibles_Func001002 )
endfunction
//===========================================================================
function InitTrig_Destructibles takes nothing returns nothing
set gg_trg_Destructibles = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Destructibles, 5 )
call TriggerAddAction( gg_trg_Destructibles, function Trig_Destructibles_Actions )
endfunction
function Trig__Destructibles_Func001002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'ATtr' )
endfunction
function Trig__Destructibles_Func001002 takes nothing returns nothing
if ( Trig__Destructibles_Func001002001() ) then
call SetDestructableLife( GetEnumDestructable(), 800.00 )
else
call DoNothing( )
endif
endfunction
function Trig__Destructibles_Func002002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'FTtw' )
endfunction
function Trig__Destructibles_Func002002 takes nothing returns nothing
if ( Trig__Destructibles_Func002002001() ) then
call SetDestructableLife( GetEnumDestructable(), 800.00 )
else
call DoNothing( )
endif
endfunction
function Trig__Destructibles_Func003002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'LTlt' )
endfunction
function Trig__Destructibles_Func003002 takes nothing returns nothing
if ( Trig__Destructibles_Func003002001() ) then
call SetDestructableLife( GetEnumDestructable(), 800.00 )
else
call DoNothing( )
endif
endfunction
function Trig__Destructibles_Func004002001 takes nothing returns boolean
return ( GetDestructableTypeId(GetEnumDestructable()) == 'WTst' )
endfunction
function Trig__Destructibles_Func004002 takes nothing returns nothing
if ( Trig__Destructibles_Func004002001() ) then
call SetDestructableLife( GetEnumDestructable(), 800.00 )
else
call DoNothing( )
endif
endfunction
function Trig__Destructibles_Actions takes nothing returns nothing
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig__Destructibles_Func001002 )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig__Destructibles_Func002002 )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig__Destructibles_Func003002 )
call EnumDestructablesInRectAll( GetPlayableMapRect(), function Trig__Destructibles_Func004002 )
endfunction
//===========================================================================
function InitTrig__Destructibles takes nothing returns nothing
set gg_trg__Destructibles = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg__Destructibles, 5.00 )
call TriggerAddAction( gg_trg__Destructibles, function Trig__Destructibles_Actions )
endfunction
function Trig_CommandCenters_Func003001 takes nothing returns boolean
return ( GetUnitTypeId(GetDyingUnit()) == 'hcas' )
endfunction
function Trig_CommandCenters_Func003002 takes nothing returns boolean
return ( GetUnitTypeId(GetDyingUnit()) == 'h00L' )
endfunction
function Trig_CommandCenters_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetDyingUnit(), UNIT_TYPE_STRUCTURE) == true ) ) then
return false
endif
if ( not GetBooleanOr( Trig_CommandCenters_Func003001(), Trig_CommandCenters_Func003002() ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetKillingUnitBJ()) == Player(11) ) ) then
return false
endif
return true
endfunction
function Trig_CommandCenters_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h006', Player(11), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig_CommandCenters takes nothing returns nothing
set gg_trg_CommandCenters = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_CommandCenters, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_CommandCenters, Condition( function Trig_CommandCenters_Conditions ) )
call TriggerAddAction( gg_trg_CommandCenters, function Trig_CommandCenters_Actions )
endfunction
function Trig_Control1_Conditions takes nothing returns boolean
if ( not ( GetUnitStateSwap(UNIT_STATE_LIFE, GetAttackedUnitBJ()) < 500.00 ) ) then
return false
endif
if ( not ( IsUnitInGroup(GetAttackedUnitBJ(), GetUnitsOfTypeIdAll('hwtw')) == true ) ) then
return false
endif
return true
endfunction
function Trig_Control1_Actions takes nothing returns nothing
call SetUnitOwner( GetAttackedUnitBJ(), GetOwningPlayer(GetAttacker()), true )
call SetUnitLifeBJ( GetAttackedUnitBJ(), 3000.00 )
call DisplayTimedTextToForce( GetForceOfPlayer(GetOwningPlayer(GetAttacker())), 5.00, "TRIGSTR_1031" )
endfunction
//===========================================================================
function InitTrig_Control1 takes nothing returns nothing
set gg_trg_Control1 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Control1, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Control1, Condition( function Trig_Control1_Conditions ) )
call TriggerAddAction( gg_trg_Control1, function Trig_Control1_Actions )
endfunction
function Trig__Gold_IncomeFortress1_Func001002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(0), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func002002 takes nothing returns nothing
call PingMinimapLocForForce( bj_FORCE_PLAYER[0], GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func003002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(1), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func004002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(1)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func005002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(2), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func006002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(2)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func007002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(3), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func008002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(3)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func009002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(4), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func010002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(4)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func011002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(5), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func012002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(5)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func013002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(6), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func014002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(6)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func015002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(7), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func016002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(7)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Func017002 takes nothing returns nothing
call AdjustPlayerStateBJ( GetUnitPointValue(GetEnumUnit()), Player(8), PLAYER_STATE_RESOURCE_GOLD )
endfunction
function Trig__Gold_IncomeFortress1_Func018002 takes nothing returns nothing
call PingMinimapLocForForce( GetForceOfPlayer(Player(8)), GetUnitLoc(GetEnumUnit()), 5.00 )
endfunction
function Trig__Gold_IncomeFortress1_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(0), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func001002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(0), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func002002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(1), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func003002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(1), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func004002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(2), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func005002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(2), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func006002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(3), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func007002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(3), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func008002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(4), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func009002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(4), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func010002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(5), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func011002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(5), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func012002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(6), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func013002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(6), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func014002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(7), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func015002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(7), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func016002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(8), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func017002 )
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(Player(8), udg_UnitTypeFortress[1]), function Trig__Gold_IncomeFortress1_Func018002 )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(0), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[1], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(1), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[2], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(2), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[3], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(3), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[4], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(4), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[5], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(5), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[6], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(6), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[7], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(7), 'hwtw')) * 5 )) ) )
call DisplayTimedTextToForce( bj_FORCE_PLAYER[8], 8.00, ( "Your Current Resource Income Is : " + I2S(( CountUnitsInGroup(GetUnitsOfPlayerAndTypeId(Player(8), 'hwtw')) * 5 )) ) )
endfunction
//===========================================================================
function InitTrig__Gold_IncomeFortress1 takes nothing returns nothing
set gg_trg__Gold_IncomeFortress1 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg__Gold_IncomeFortress1, 35.00 )
call TriggerAddAction( gg_trg__Gold_IncomeFortress1, function Trig__Gold_IncomeFortress1_Actions )
endfunction
function Trig_Changing_Name_Actions takes nothing returns nothing
call SetPlayerName( Player(0), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(0)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Red_Name takes nothing returns nothing
set gg_trg_Red_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Red_Name, Player(0), "-name", false )
call TriggerAddAction( gg_trg_Red_Name, function Trig_Changing_Name_Actions )
endfunction
function Trig_Changing_Name_Copy_Actions takes nothing returns nothing
call SetPlayerName( Player(1), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(1)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Blue_Name takes nothing returns nothing
set gg_trg_Blue_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Blue_Name, Player(1), "-name", false )
call TriggerAddAction( gg_trg_Blue_Name, function Trig_Changing_Name_Copy_Actions )
endfunction
function Trig_Changing_Name_Copy_2_Actions takes nothing returns nothing
call SetPlayerName( Player(2), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(2)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Teal_Name takes nothing returns nothing
set gg_trg_Teal_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Teal_Name, Player(2), "-name", false )
call TriggerAddAction( gg_trg_Teal_Name, function Trig_Changing_Name_Copy_2_Actions )
endfunction
function Trig_Changing_Name_Copy_3_Actions takes nothing returns nothing
call SetPlayerName( Player(3), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(3)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Purple_Name takes nothing returns nothing
set gg_trg_Purple_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Purple_Name, Player(3), "-name", false )
call TriggerAddAction( gg_trg_Purple_Name, function Trig_Changing_Name_Copy_3_Actions )
endfunction
function Trig_Changing_Name_Copy_4_Actions takes nothing returns nothing
call SetPlayerName( Player(4), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(4)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Yellow_Name takes nothing returns nothing
set gg_trg_Yellow_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Yellow_Name, Player(4), "-name", false )
call TriggerAddAction( gg_trg_Yellow_Name, function Trig_Changing_Name_Copy_4_Actions )
endfunction
function Trig_Changing_Name_Copy_5_Actions takes nothing returns nothing
call SetPlayerName( Player(5), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(5)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Orange_Name takes nothing returns nothing
set gg_trg_Orange_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Orange_Name, Player(5), "-name", false )
call TriggerAddAction( gg_trg_Orange_Name, function Trig_Changing_Name_Copy_5_Actions )
endfunction
function Trig_Changing_Name_Copy_6_Actions takes nothing returns nothing
call SetPlayerName( Player(6), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(6)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Green_Name takes nothing returns nothing
set gg_trg_Green_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Green_Name, Player(6), "-name", false )
call TriggerAddAction( gg_trg_Green_Name, function Trig_Changing_Name_Copy_6_Actions )
endfunction
function Trig_Changing_Name_Copy_7_Actions takes nothing returns nothing
call SetPlayerName( Player(7), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(7)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Pink_Name takes nothing returns nothing
set gg_trg_Pink_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Pink_Name, Player(7), "-name", false )
call TriggerAddAction( gg_trg_Pink_Name, function Trig_Changing_Name_Copy_7_Actions )
endfunction
function Trig_Gray_Name_Actions takes nothing returns nothing
call SetPlayerName( Player(8), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(8)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Gray_Name takes nothing returns nothing
set gg_trg_Gray_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Gray_Name, Player(8), "-name ", false )
call TriggerAddAction( gg_trg_Gray_Name, function Trig_Gray_Name_Actions )
endfunction
function Trig_Brown_Name_Actions takes nothing returns nothing
call SetPlayerName( Player(11), SubStringBJ(GetEventPlayerChatString(), 7, 40) )
call DisplayTimedTextToForce( GetForceOfPlayer(Player(11)), 5.00, ( "Name Has Been Set To : " + SubStringBJ(GetEventPlayerChatString(), 7, 40) ) )
endfunction
//===========================================================================
function InitTrig_Brown_Name takes nothing returns nothing
set gg_trg_Brown_Name = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Brown_Name, Player(11), "-name ", false )
call TriggerAddAction( gg_trg_Brown_Name, function Trig_Brown_Name_Actions )
endfunction
function Trig__PlayerSetNameMe1_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe1_Actions takes nothing returns nothing
call SetPlayerName( Player(0), SubStringBJ(GetEventPlayerChatString(), 13, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe1 takes nothing returns nothing
set gg_trg__PlayerSetNameMe1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(1), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(2), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(3), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(4), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(5), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(6), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(7), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(8), "-SetNameRed", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe1, Player(11), "-SetNameRed", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe1, Condition( function Trig__PlayerSetNameMe1_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe1, function Trig__PlayerSetNameMe1_Actions )
endfunction
function Trig__PlayerSetNameMe2_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe2_Actions takes nothing returns nothing
call SetPlayerName( Player(1), SubStringBJ(GetEventPlayerChatString(), 14, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe2 takes nothing returns nothing
set gg_trg__PlayerSetNameMe2 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(0), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(2), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(3), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(4), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(5), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(6), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(7), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(8), "-SetNameBlue", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe2, Player(11), "-SetNameBlue", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe2, Condition( function Trig__PlayerSetNameMe2_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe2, function Trig__PlayerSetNameMe2_Actions )
endfunction
function Trig__PlayerSetNameMe3_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe3_Actions takes nothing returns nothing
call SetPlayerName( Player(2), SubStringBJ(GetEventPlayerChatString(), 14, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe3 takes nothing returns nothing
set gg_trg__PlayerSetNameMe3 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(0), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(1), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(3), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(4), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(5), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(6), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(7), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(8), "-SetNameTeal", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe3, Player(11), "-SetNameTeal", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe3, Condition( function Trig__PlayerSetNameMe3_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe3, function Trig__PlayerSetNameMe3_Actions )
endfunction
function Trig__PlayerSetNameMe4_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe4_Actions takes nothing returns nothing
call SetPlayerName( Player(3), SubStringBJ(GetEventPlayerChatString(), 16, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe4 takes nothing returns nothing
set gg_trg__PlayerSetNameMe4 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(0), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(1), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(2), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(4), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(5), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(6), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(7), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(8), "-SetNamePurple", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe4, Player(11), "-SetNamePurple", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe4, Condition( function Trig__PlayerSetNameMe4_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe4, function Trig__PlayerSetNameMe4_Actions )
endfunction
function Trig__PlayerSetNameMe5_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe5_Actions takes nothing returns nothing
call SetPlayerName( Player(4), SubStringBJ(GetEventPlayerChatString(), 16, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe5 takes nothing returns nothing
set gg_trg__PlayerSetNameMe5 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(0), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(1), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(2), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(3), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(5), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(6), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(7), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(8), "-SetNameYellow", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe5, Player(11), "-SetNameYellow", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe5, Condition( function Trig__PlayerSetNameMe5_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe5, function Trig__PlayerSetNameMe5_Actions )
endfunction
function Trig__PlayerSetNameMe6_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe6_Actions takes nothing returns nothing
call SetPlayerName( Player(5), SubStringBJ(GetEventPlayerChatString(), 16, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe6 takes nothing returns nothing
set gg_trg__PlayerSetNameMe6 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(0), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(1), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(2), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(3), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(4), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(6), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(7), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(8), "-SetNameOrange", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe6, Player(11), "-SetNameOrange", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe6, Condition( function Trig__PlayerSetNameMe6_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe6, function Trig__PlayerSetNameMe6_Actions )
endfunction
function Trig__PlayerSetNameMe7_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe7_Actions takes nothing returns nothing
call SetPlayerName( Player(6), SubStringBJ(GetEventPlayerChatString(), 15, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe7 takes nothing returns nothing
set gg_trg__PlayerSetNameMe7 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(0), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(1), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(2), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(3), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(4), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(5), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(7), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(8), "-SetNameGreen", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe7, Player(11), "-SetNameGreen", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe7, Condition( function Trig__PlayerSetNameMe7_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe7, function Trig__PlayerSetNameMe7_Actions )
endfunction
function Trig__PlayerSetNameMe8_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe8_Actions takes nothing returns nothing
call SetPlayerName( Player(7), SubStringBJ(GetEventPlayerChatString(), 14, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe8 takes nothing returns nothing
set gg_trg__PlayerSetNameMe8 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(0), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(1), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(2), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(3), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(4), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(5), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(6), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(8), "-SetNamePink", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe8, Player(11), "-SetNamePink", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe8, Condition( function Trig__PlayerSetNameMe8_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe8, function Trig__PlayerSetNameMe8_Actions )
endfunction
function Trig__PlayerSetNameMe9_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe9_Actions takes nothing returns nothing
call SetPlayerName( Player(8), SubStringBJ(GetEventPlayerChatString(), 14, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe9 takes nothing returns nothing
set gg_trg__PlayerSetNameMe9 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(0), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(1), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(2), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(3), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(4), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(5), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(6), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(7), "-SetNameGray", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe9, Player(11), "-SetNameGray", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe9, Condition( function Trig__PlayerSetNameMe9_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe9, function Trig__PlayerSetNameMe9_Actions )
endfunction
function Trig__PlayerSetNameMe12_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig__PlayerSetNameMe12_Actions takes nothing returns nothing
call SetPlayerName( Player(11), SubStringBJ(GetEventPlayerChatString(), 15, 40) )
endfunction
//===========================================================================
function InitTrig__PlayerSetNameMe12 takes nothing returns nothing
set gg_trg__PlayerSetNameMe12 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(0), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(1), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(2), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(3), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(4), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(5), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(6), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(7), "-SetNameBrown", false )
call TriggerRegisterPlayerChatEvent( gg_trg__PlayerSetNameMe12, Player(8), "-SetNameBrown", false )
call TriggerAddCondition( gg_trg__PlayerSetNameMe12, Condition( function Trig__PlayerSetNameMe12_Conditions ) )
call TriggerAddAction( gg_trg__PlayerSetNameMe12, function Trig__PlayerSetNameMe12_Actions )
endfunction
function Trig_Dropping_Seperate_Charges_Conditions takes nothing returns boolean
if ( not ( GetItemCharges(GetManipulatedItem()) > 1 ) ) then
return false
endif
return true
endfunction
function Trig_Dropping_Seperate_Charges_Actions takes nothing returns nothing
call TriggerSleepAction( 0.00 )
call UnitAddItemByIdSwapped( GetItemTypeId(GetManipulatedItem()), GetManipulatingUnit() )
call SetItemCharges( GetItemOfTypeFromUnitBJ(GetManipulatingUnit(), GetItemTypeId(GetManipulatedItem())), ( GetItemCharges(GetManipulatedItem()) - 1 ) )
call SetItemCharges( GetManipulatedItem(), 1 )
endfunction
//===========================================================================
function InitTrig_Dropping_Seperate_Charges takes nothing returns nothing
set gg_trg_Dropping_Seperate_Charges = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Dropping_Seperate_Charges, EVENT_PLAYER_UNIT_DROP_ITEM )
call TriggerAddCondition( gg_trg_Dropping_Seperate_Charges, Condition( function Trig_Dropping_Seperate_Charges_Conditions ) )
call TriggerAddAction( gg_trg_Dropping_Seperate_Charges, function Trig_Dropping_Seperate_Charges_Actions )
endfunction
function Trig_Combining_Purchasable_Conditions takes nothing returns boolean
if ( not ( GetItemType(GetManipulatedItem()) == ITEM_TYPE_PURCHASABLE ) ) then
return false
endif
return true
endfunction
function Trig_Combining_Purchasable_Func001Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == GetItemTypeId(UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA())) ) ) then
return false
endif
if ( not ( GetManipulatedItem() != UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA()) ) ) then
return false
endif
return true
endfunction
function Trig_Combining_Purchasable_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Combining_Purchasable_Func001Func001C() ) then
call SetItemCharges( UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA()), ( GetItemCharges(GetManipulatedItem()) + GetItemCharges(UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA())) ) )
call RemoveItem( GetManipulatedItem() )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Combining_Purchasable takes nothing returns nothing
set gg_trg_Combining_Purchasable = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combining_Purchasable, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combining_Purchasable, Condition( function Trig_Combining_Purchasable_Conditions ) )
call TriggerAddAction( gg_trg_Combining_Purchasable, function Trig_Combining_Purchasable_Actions )
endfunction
function Trig_Combining_Charged_Conditions takes nothing returns boolean
if ( not ( GetItemType(GetManipulatedItem()) == ITEM_TYPE_CHARGED ) ) then
return false
endif
return true
endfunction
function Trig_Combining_Charged_Func001Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == GetItemTypeId(UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA())) ) ) then
return false
endif
if ( not ( GetManipulatedItem() != UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA()) ) ) then
return false
endif
return true
endfunction
function Trig_Combining_Charged_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Combining_Charged_Func001Func001C() ) then
call SetItemCharges( UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA()), ( GetItemCharges(GetManipulatedItem()) + GetItemCharges(UnitItemInSlotBJ(GetManipulatingUnit(), GetForLoopIndexA())) ) )
call RemoveItem( GetManipulatedItem() )
else
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
//===========================================================================
function InitTrig_Combining_Charged takes nothing returns nothing
set gg_trg_Combining_Charged = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Combining_Charged, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddCondition( gg_trg_Combining_Charged, Condition( function Trig_Combining_Charged_Conditions ) )
call TriggerAddAction( gg_trg_Combining_Charged, function Trig_Combining_Charged_Actions )
endfunction
function Trig_HeroDies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'Hvwd' ) ) then
return false
endif
if ( not ( GetPlayerSlotState(GetOwningPlayer(GetDyingUnit())) == PLAYER_SLOT_STATE_PLAYING ) ) then
return false
endif
return true
endfunction
function Trig_HeroDies_Func003002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig_HeroDies_Func023002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetEnumPlayer(), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
endfunction
function Trig_HeroDies_Func024002 takes nothing returns nothing
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), GetEnumPlayer(), bj_ALLIANCE_UNALLIED )
endfunction
function Trig_HeroDies_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsOfPlayerAll(GetOwningPlayer(GetDyingUnit())), function Trig_HeroDies_Func003002 )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( "|CFFFF0000" + GetPlayerName(GetOwningPlayer(GetDyingUnit())) ) + " Hero Has Died. He/She Is Now Part Of The Virus!" ) )
call PanCameraToTimedLocForPlayer( GetTriggerPlayer(), GetRectCenter(gg_rct_SpecialEffect), 1.00 )
call TriggerSleepAction( 1.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl" )
call TriggerSleepAction( 0.50 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodLarge0.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodLarge0.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_SpecialEffect), "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl" )
call CreateNUnitsAtLoc( 1, 'H005', GetTriggerPlayer(), GetRectCenter(gg_rct_SpecialEffect), 315.00 )
call ForceRemovePlayerSimple( GetTriggerPlayer(), udg_Team1Marines )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Team2Virus )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(0), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_FOOD_CAP, 90 )
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_FOOD_CAP_CEILING, 90 )
call TriggerSleepAction( 0.05 )
set udg_Team1Marines = GetPlayersAllies(Player(0))
call TriggerSleepAction( 0.05 )
call ForForce( udg_Team1Marines, function Trig_HeroDies_Func023002 )
call ForForce( udg_Team1Marines, function Trig_HeroDies_Func024002 )
call SetPlayerAllianceStateBJ( Player(11), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_VISION )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(11), bj_ALLIANCE_ALLIED_VISION )
endfunction
//===========================================================================
function InitTrig_HeroDies takes nothing returns nothing
set gg_trg_HeroDies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_HeroDies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_HeroDies, Condition( function Trig_HeroDies_Conditions ) )
call TriggerAddAction( gg_trg_HeroDies, function Trig_HeroDies_Actions )
endfunction
function Trig______HeroDies_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'H005' ) ) then
return false
endif
return true
endfunction
function Trig______HeroDies_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( ( "|CFFFF0000" + GetPlayerName(GetOwningPlayer(GetDyingUnit())) ) + " Hero Has Died. Since He/She Has Already Been Part Of The Virus, He/She Is Defeated. However, He/She Can Stay And Watch The Remaining Game." ) )
call CameraSetEQNoiseForPlayer( GetTriggerPlayer(), 10.00 )
call ResetToGameCameraForPlayer( GetTriggerPlayer(), 2.00 )
call TriggerSleepAction( 2.00 )
call CameraClearNoiseForPlayer( GetTriggerPlayer() )
call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(1), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(2), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(3), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(4), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(5), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(6), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(7), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(8), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(10), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
call SetPlayerAllianceStateBJ( Player(11), GetTriggerPlayer(), bj_ALLIANCE_NEUTRAL_VISION )
endfunction
//===========================================================================
function InitTrig______HeroDies takes nothing returns nothing
set gg_trg______HeroDies = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg______HeroDies, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg______HeroDies, Condition( function Trig______HeroDies_Conditions ) )
call TriggerAddAction( gg_trg______HeroDies, function Trig______HeroDies_Actions )
endfunction
function Trig_Quests_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_997", "TRIGSTR_998", "ReplaceableTextures\\WorldEditUI\\Doodad-Cinematic.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_999", "TRIGSTR_1000", "ReplaceableTextures\\CommandButtons\\BTNChainLightning.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1001", "TRIGSTR_1002", "ReplaceableTextures\\CommandButtons\\BTNDeathCoil.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1003", "TRIGSTR_1004", "ReplaceableTextures\\CommandButtons\\BTNDeathPact.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1005", "TRIGSTR_1006", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Coin_02.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1007", "TRIGSTR_1008", "ReplaceableTextures\\CommandButtons\\BTNAnimateDead.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_958", "TRIGSTR_959", "ReplaceableTextures\\PassiveButtons\\PASBTNGnollCommandAura.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_1011", "TRIGSTR_1012", "ReplaceableTextures\\CommandButtons\\BTNAvatarOn.blp" )
endfunction
//===========================================================================
function InitTrig_Quests takes nothing returns nothing
set gg_trg_Quests = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Quests, 1.00 )
call TriggerAddAction( gg_trg_Quests, function Trig_Quests_Actions )
endfunction
function Trig_TheVirusTimer_Actions takes nothing returns nothing
call StartTimerBJ( udg_VirusTimer, true, 65.00 )
call CreateTimerDialogBJ( udg_VirusTimer, "TRIGSTR_792" )
set udg_VirusTimerWindow = GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ( true, udg_VirusTimerWindow )
call TimerDialogSetTitleColorBJ( GetLastCreatedTimerDialogBJ(), 100.00, 0.00, 0.00, 0 )
endfunction
//===========================================================================
function InitTrig_TheVirusTimer takes nothing returns nothing
set gg_trg_TheVirusTimer = CreateTrigger( )
call DisableTrigger( gg_trg_TheVirusTimer )
call TriggerAddAction( gg_trg_TheVirusTimer, function Trig_TheVirusTimer_Actions )
endfunction
function Trig__ColorChange_Actions takes nothing returns nothing
call TimerDialogSetTitleColorBJ( udg_VirusTimerWindow, GetRandomReal(1.00, 100.00), GetRandomReal(1.00, 100.00), GetRandomReal(1.00, 100.00), 0 )
call TimerDialogSetTimeColorBJ( udg_VirusTimerWindow, GetRandomReal(1.00, 100.00), GetRandomReal(1.00, 100.00), GetRandomReal(1.00, 100.00), 0 )
endfunction
//===========================================================================
function InitTrig__ColorChange takes nothing returns nothing
set gg_trg__ColorChange = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg__ColorChange, 1.00 )
call TriggerAddAction( gg_trg__ColorChange, function Trig__ColorChange_Actions )
endfunction
function Trig_SpawningVirusUnits_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 4, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn1), 270.00 )
call CreateNUnitsAtLoc( 4, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn2), 270.00 )
call CreateNUnitsAtLoc( 4, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn3), 270.00 )
call CreateNUnitsAtLoc( 4, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn4), 270.00 )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetRectCenter(gg_rct_ZombieSpawn1), 5.00 )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetRectCenter(gg_rct_ZombieSpawn2), 5.00 )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetRectCenter(gg_rct_ZombieSpawn3), 5.00 )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetRectCenter(gg_rct_ZombieSpawn4), 5.00 )
call DisplayTimedTextToForce( GetPlayersAllies(Player(11)), 5.00, "TRIGSTR_793" )
endfunction
//===========================================================================
function InitTrig_SpawningVirusUnits takes nothing returns nothing
set gg_trg_SpawningVirusUnits = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_SpawningVirusUnits, udg_VirusTimer )
call TriggerAddAction( gg_trg_SpawningVirusUnits, function Trig_SpawningVirusUnits_Actions )
endfunction
function Trig_WinningTimer_Actions takes nothing returns nothing
call StartTimerBJ( udg_WinningTimer, false, 2700.00 )
call CreateTimerDialogBJ( udg_WinningTimer, "TRIGSTR_794" )
set udg_WinningTimerWindow = GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ( true, udg_WinningTimerWindow )
call TimerDialogSetTitleColorBJ( GetLastCreatedTimerDialogBJ(), 100.00, 0.00, 0.00, 0 )
endfunction
//===========================================================================
function InitTrig_WinningTimer takes nothing returns nothing
set gg_trg_WinningTimer = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_WinningTimer, 0.05 )
call TriggerAddAction( gg_trg_WinningTimer, function Trig_WinningTimer_Actions )
endfunction
function Trig___WinGame_Func006002 takes nothing returns nothing
call RemoveUnit( GetEnumUnit() )
endfunction
function Trig___WinGame_Func054002 takes nothing returns nothing
call IssueImmediateOrderBJ( GetEnumUnit(), "holdposition" )
endfunction
function Trig___WinGame_Func056002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_019, GetEnumPlayer(), 0 )
endfunction
function Trig___WinGame_Func058002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_020, GetEnumPlayer(), 6.00 )
endfunction
function Trig___WinGame_Func060002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func061002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func062002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func063002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func064002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func065002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func066002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func067002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "move", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig___WinGame_Func068002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_021, GetEnumPlayer(), 6.00 )
endfunction
function Trig___WinGame_Func070002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_022, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func072002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func074002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func076002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func078002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func080002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func082002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func084002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func086002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func088002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func090002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func092002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func094002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func096002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func098002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func100002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func102002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func104002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func106002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func108002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func110002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func112002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func114002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func116002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func118002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func120002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func122002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func124002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func126002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func128002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func130002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func132002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func134002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func136002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func138002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func140002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func142002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func144002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func146002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func148002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func150002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func152002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func154002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func156002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func158002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func160002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func162002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func164002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func166002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func168002 takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Camera_023, GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func170002 takes nothing returns nothing
call RotateCameraAroundLocBJ( 360.00, GetCameraTargetPositionLoc(), GetEnumPlayer(), 8.00 )
endfunction
function Trig___WinGame_Func173002 takes nothing returns nothing
call CustomVictoryBJ( GetEnumPlayer(), false, false )
endfunction
function Trig___WinGame_Func174002 takes nothing returns nothing
call CustomDefeatBJ( GetEnumPlayer(), "TRIGSTR_1028" )
endfunction
function Trig___WinGame_Actions takes nothing returns nothing
call SetSkyModel( "Environment\\Sky\\FelwoodSky\\FelwoodSky.mdl" )
call AddWeatherEffectSaveLast( GetPlayableMapRect(), 'RAlr' )
call CinematicModeBJ( true, GetPlayersAll() )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call DisplayTimedTextToForce( GetPlayersAll(), 99999.00, "TRIGSTR_1030" )
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig___WinGame_Func006002 )
call DisableTrigger( gg_trg_SpawningVirusUnits )
call DisableTrigger( gg_trg_TheVirusTimer )
call DisableTrigger( gg_trg_ResourceTimer )
call DisableTrigger( gg_trg__Gold_IncomeFortress1 )
call TimerDialogDisplayBJ( false, udg_ResourceTimerWindow )
call TimerDialogDisplayBJ( false, udg_VirusTimerWindow )
call TimerDialogDisplayBJ( false, udg_WinningTimerWindow )
call EnableTrigger( gg_trg_____WinGameMovements )
call EnableTrigger( gg_trg__Esc1 )
call EnableTrigger( gg_trg__Esc12 )
call EnableTrigger( gg_trg__Esc2 )
call EnableTrigger( gg_trg__Esc3 )
call EnableTrigger( gg_trg__Esc4 )
call EnableTrigger( gg_trg__Esc5 )
call EnableTrigger( gg_trg__Esc6 )
call EnableTrigger( gg_trg__Esc7 )
call EnableTrigger( gg_trg__Esc8 )
call EnableTrigger( gg_trg__Esc9 )
call TriggerSleepAction( 8.00 )
call EnableTrigger( gg_trg______WinGameWave1 )
call EnableTrigger( gg_trg______WinGameWave2 )
call EnableTrigger( gg_trg______WinGameWave3 )
call CreateNUnitsAtLoc( 1, 'z00Y', Player(10), GetRectCenter(gg_rct_Marine1), 90.00 )
call CreateNUnitsAtLoc( 1, 'z003', Player(10), GetRectCenter(gg_rct_Marine2), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00Y', Player(10), GetRectCenter(gg_rct_Marine3), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00X', Player(10), GetRectCenter(gg_rct_Marine4), 90.00 )
call CreateNUnitsAtLoc( 1, 'z003', Player(10), GetRectCenter(gg_rct_Marine5), 90.00 )
call CreateNUnitsAtLoc( 1, 'z003', Player(10), GetRectCenter(gg_rct_Marine6), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00V', Player(10), GetRectCenter(gg_rct_Marine7), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00X', Player(10), GetRectCenter(gg_rct_Marine8), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00Y', Player(10), GetRectCenter(gg_rct_Marine9), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00U', Player(10), GetRectCenter(gg_rct_Marine10), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00V', Player(10), GetRectCenter(gg_rct_Region_024), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00X', Player(10), GetRectCenter(gg_rct_Region_024_Copy), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00Z', Player(10), GetRectCenter(gg_rct_Region_024_Copy_2), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00X', Player(10), GetRectCenter(gg_rct_Region_024_Copy_3), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00X', Player(10), GetRectCenter(gg_rct_Region_024_Copy_4), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00X', Player(10), GetRectCenter(gg_rct_Region_024_Copy_5), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00U', Player(10), GetRectCenter(gg_rct_Region_024_Copy_6), 90.00 )
call CreateNUnitsAtLoc( 1, 'z00U', Player(10), GetRectCenter(gg_rct_Region_024_Copy_7), 90.00 )
call CreateNUnitsAtLoc( 1, 'h00A', Player(10), GetRectCenter(gg_rct_Tank1), 90.00 )
call CreateNUnitsAtLoc( 1, 'h00A', Player(10), GetRectCenter(gg_rct_Tank1_Copy), 90.00 )
call TriggerSleepAction( 0.25 )
call EnableTrigger( gg_trg_RandomEffects1 )
call EnableTrigger( gg_trg_RandomEffects1_Copy )
call EnableTrigger( gg_trg_RandomEffects2 )
call EnableTrigger( gg_trg_RandomEffects2_Copy )
call ForGroupBJ( GetUnitsOfPlayerAll(Player(10)), function Trig___WinGame_Func054002 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 5.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 0, 0, 0, 0 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func056002 )
call TriggerSleepAction( 2.50 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func058002 )
call TriggerSleepAction( 6.00 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024), function Trig___WinGame_Func060002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy), function Trig___WinGame_Func061002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy_2), function Trig___WinGame_Func062002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy_3), function Trig___WinGame_Func063002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy_4), function Trig___WinGame_Func064002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy_5), function Trig___WinGame_Func065002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy_6), function Trig___WinGame_Func066002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_Region_024_Copy_7), function Trig___WinGame_Func067002 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func068002 )
call TriggerSleepAction( 6.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func070002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func072002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func074002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func076002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func078002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func080002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func082002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func084002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func086002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func088002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func090002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func092002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func094002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func096002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func098002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func100002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func102002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func104002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func106002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func108002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func110002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func112002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func114002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func116002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func118002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func120002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func122002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func124002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func126002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func128002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func130002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func132002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func134002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func136002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func138002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func140002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func142002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func144002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func146002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func148002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func150002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func152002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func154002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func156002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func158002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func160002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func162002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func164002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func166002 )
call TriggerSleepAction( 8.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func168002 )
call TriggerSleepAction( 16.00 )
call ForForce( GetPlayersAll(), function Trig___WinGame_Func170002 )
call TriggerSleepAction( 8.00 )
call CinematicModeBJ( false, GetPlayersAll() )
call ForForce( GetPlayersAllies(Player(0)), function Trig___WinGame_Func173002 )
call ForForce( GetPlayersAllies(Player(11)), function Trig___WinGame_Func174002 )
endfunction
//===========================================================================
function InitTrig___WinGame takes nothing returns nothing
set gg_trg___WinGame = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg___WinGame, udg_WinningTimer )
call TriggerAddAction( gg_trg___WinGame, function Trig___WinGame_Actions )
endfunction
function Trig__Esc1_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(0), false, false )
endfunction
//===========================================================================
function InitTrig__Esc1 takes nothing returns nothing
set gg_trg__Esc1 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc1 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc1, Player(0) )
call TriggerAddAction( gg_trg__Esc1, function Trig__Esc1_Actions )
endfunction
function Trig__Esc2_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(1), false, false )
endfunction
//===========================================================================
function InitTrig__Esc2 takes nothing returns nothing
set gg_trg__Esc2 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc2 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc2, Player(1) )
call TriggerAddAction( gg_trg__Esc2, function Trig__Esc2_Actions )
endfunction
function Trig__Esc3_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(2), false, false )
endfunction
//===========================================================================
function InitTrig__Esc3 takes nothing returns nothing
set gg_trg__Esc3 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc3 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc3, Player(2) )
call TriggerAddAction( gg_trg__Esc3, function Trig__Esc3_Actions )
endfunction
function Trig__Esc4_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(3), false, false )
endfunction
//===========================================================================
function InitTrig__Esc4 takes nothing returns nothing
set gg_trg__Esc4 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc4 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc4, Player(3) )
call TriggerAddAction( gg_trg__Esc4, function Trig__Esc4_Actions )
endfunction
function Trig__Esc5_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(4), false, false )
endfunction
//===========================================================================
function InitTrig__Esc5 takes nothing returns nothing
set gg_trg__Esc5 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc5 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc5, Player(4) )
call TriggerAddAction( gg_trg__Esc5, function Trig__Esc5_Actions )
endfunction
function Trig__Esc6_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(5), false, false )
endfunction
//===========================================================================
function InitTrig__Esc6 takes nothing returns nothing
set gg_trg__Esc6 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc6 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc6, Player(5) )
call TriggerAddAction( gg_trg__Esc6, function Trig__Esc6_Actions )
endfunction
function Trig__Esc7_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(6), false, false )
endfunction
//===========================================================================
function InitTrig__Esc7 takes nothing returns nothing
set gg_trg__Esc7 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc7 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc7, Player(6) )
call TriggerAddAction( gg_trg__Esc7, function Trig__Esc7_Actions )
endfunction
function Trig__Esc8_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(7), false, false )
endfunction
//===========================================================================
function InitTrig__Esc8 takes nothing returns nothing
set gg_trg__Esc8 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc8 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc8, Player(7) )
call TriggerAddAction( gg_trg__Esc8, function Trig__Esc8_Actions )
endfunction
function Trig__Esc9_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(8), false, false )
endfunction
//===========================================================================
function InitTrig__Esc9 takes nothing returns nothing
set gg_trg__Esc9 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc9 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc9, Player(8) )
call TriggerAddAction( gg_trg__Esc9, function Trig__Esc9_Actions )
endfunction
function Trig__Esc12_Actions takes nothing returns nothing
call CustomVictoryBJ( Player(11), false, false )
endfunction
//===========================================================================
function InitTrig__Esc12 takes nothing returns nothing
set gg_trg__Esc12 = CreateTrigger( )
call DisableTrigger( gg_trg__Esc12 )
call TriggerRegisterPlayerEventEndCinematic( gg_trg__Esc12, Player(11) )
call TriggerAddAction( gg_trg__Esc12, function Trig__Esc12_Actions )
endfunction
function Trig_____WinGameMovements_Func001002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig_____WinGameMovements_Func002002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig_____WinGameMovements_Func003002 takes nothing returns nothing
call IssuePointOrderLocBJ( GetEnumUnit(), "attack", GetRandomLocInRect(gg_rct_UnitSpeed1) )
endfunction
function Trig_____WinGameMovements_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_ZombieSpawn3), function Trig_____WinGameMovements_Func001002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_ZombieSpawn2), function Trig_____WinGameMovements_Func002002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_ZombieSpawn1), function Trig_____WinGameMovements_Func003002 )
endfunction
//===========================================================================
function InitTrig_____WinGameMovements takes nothing returns nothing
set gg_trg_____WinGameMovements = CreateTrigger( )
call DisableTrigger( gg_trg_____WinGameMovements )
call TriggerRegisterTimerEventPeriodic( gg_trg_____WinGameMovements, 4.50 )
call TriggerAddAction( gg_trg_____WinGameMovements, function Trig_____WinGameMovements_Actions )
endfunction
function Trig______WinGameWave1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 3, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 3, 'u002', Player(11), GetRectCenter(gg_rct_ZombieSpawn1), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig______WinGameWave1 takes nothing returns nothing
set gg_trg______WinGameWave1 = CreateTrigger( )
call DisableTrigger( gg_trg______WinGameWave1 )
call TriggerRegisterTimerEventPeriodic( gg_trg______WinGameWave1, 8.00 )
call TriggerAddAction( gg_trg______WinGameWave1, function Trig______WinGameWave1_Actions )
endfunction
function Trig______WinGameWave2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'uabo', Player(11), GetRectCenter(gg_rct_ZombieSpawn3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'uabo', Player(11), GetRectCenter(gg_rct_ZombieSpawn2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'uabo', Player(11), GetRectCenter(gg_rct_ZombieSpawn1), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig______WinGameWave2 takes nothing returns nothing
set gg_trg______WinGameWave2 = CreateTrigger( )
call DisableTrigger( gg_trg______WinGameWave2 )
call TriggerRegisterTimerEventPeriodic( gg_trg______WinGameWave2, 12.00 )
call TriggerAddAction( gg_trg______WinGameWave2, function Trig______WinGameWave2_Actions )
endfunction
function Trig______WinGameWave3_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 2, 'nzom', Player(11), GetRectCenter(gg_rct_ZombieSpawn3), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'nzom', Player(11), GetRectCenter(gg_rct_ZombieSpawn2), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 2, 'nzom', Player(11), GetRectCenter(gg_rct_ZombieSpawn1), bj_UNIT_FACING )
endfunction
//===========================================================================
function InitTrig______WinGameWave3 takes nothing returns nothing
set gg_trg______WinGameWave3 = CreateTrigger( )
call DisableTrigger( gg_trg______WinGameWave3 )
call TriggerRegisterTimerEventPeriodic( gg_trg______WinGameWave3, 15.00 )
call TriggerAddAction( gg_trg______WinGameWave3, function Trig______WinGameWave3_Actions )
endfunction
function Trig_RandomEffects1_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "war3mapImported\\NewDirtEX.mdx" )
endfunction
//===========================================================================
function InitTrig_RandomEffects1 takes nothing returns nothing
set gg_trg_RandomEffects1 = CreateTrigger( )
call DisableTrigger( gg_trg_RandomEffects1 )
call TriggerRegisterTimerEventPeriodic( gg_trg_RandomEffects1, GetRandomReal(2.00, 8.00) )
call TriggerAddAction( gg_trg_RandomEffects1, function Trig_RandomEffects1_Actions )
endfunction
function Trig_RandomEffects1_Copy_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "war3mapImported\\NewDirtEX.mdx" )
endfunction
//===========================================================================
function InitTrig_RandomEffects1_Copy takes nothing returns nothing
set gg_trg_RandomEffects1_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_RandomEffects1_Copy )
call TriggerRegisterTimerEventPeriodic( gg_trg_RandomEffects1_Copy, GetRandomReal(2.00, 8.00) )
call TriggerAddAction( gg_trg_RandomEffects1_Copy, function Trig_RandomEffects1_Copy_Actions )
endfunction
function Trig_RandomEffects2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "war3mapImported\\NewGroundEX.mdx" )
endfunction
//===========================================================================
function InitTrig_RandomEffects2 takes nothing returns nothing
set gg_trg_RandomEffects2 = CreateTrigger( )
call DisableTrigger( gg_trg_RandomEffects2 )
call TriggerRegisterTimerEventPeriodic( gg_trg_RandomEffects2, GetRandomReal(2.00, 8.00) )
call TriggerAddAction( gg_trg_RandomEffects2, function Trig_RandomEffects2_Actions )
endfunction
function Trig_RandomEffects2_Copy_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRandomLocInRect(gg_rct_UnitSpeed0), "war3mapImported\\NewGroundEX.mdx" )
endfunction
//===========================================================================
function InitTrig_RandomEffects2_Copy takes nothing returns nothing
set gg_trg_RandomEffects2_Copy = CreateTrigger( )
call DisableTrigger( gg_trg_RandomEffects2_Copy )
call TriggerRegisterTimerEventPeriodic( gg_trg_RandomEffects2_Copy, GetRandomReal(2.00, 8.00) )
call TriggerAddAction( gg_trg_RandomEffects2_Copy, function Trig_RandomEffects2_Copy_Actions )
endfunction
function Trig_TurningItOff_Func001C takes nothing returns boolean
if ( not ( GetPlayerState(Player(11), PLAYER_STATE_RESOURCE_FOOD_USED) >= 90 ) ) then
return false
endif
return true
endfunction
function Trig_TurningItOff_Actions takes nothing returns nothing
if ( Trig_TurningItOff_Func001C() ) then
call DisableTrigger( gg_trg_SpawningVirusUnits )
call TimerDialogDisplayBJ( false, udg_VirusTimerWindow )
else
call EnableTrigger( gg_trg_SpawningVirusUnits )
call TimerDialogDisplayBJ( true, udg_VirusTimerWindow )
endif
endfunction
//===========================================================================
function InitTrig_TurningItOff takes nothing returns nothing
set gg_trg_TurningItOff = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_TurningItOff, 5.00 )
call TriggerAddAction( gg_trg_TurningItOff, function Trig_TurningItOff_Actions )
endfunction
function Trig__Off_Command_Func003002 takes nothing returns nothing
call TimerDialogDisplayForPlayerBJ( false, udg_VirusTimerWindow, GetEnumPlayer() )
endfunction
function Trig__Off_Command_Actions takes nothing returns nothing
call DisableTrigger( gg_trg_TurningItOff )
call DisableTrigger( gg_trg_SpawningVirusUnits )
call ForForce( GetPlayersAll(), function Trig__Off_Command_Func003002 )
endfunction
//===========================================================================
function InitTrig__Off_Command takes nothing returns nothing
set gg_trg__Off_Command = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__Off_Command, Player(11), "-SpawnOff", true )
call TriggerAddAction( gg_trg__Off_Command, function Trig__Off_Command_Actions )
endfunction
function Trig__On_Command_Func003002 takes nothing returns nothing
call TimerDialogDisplayForPlayerBJ( true, udg_VirusTimerWindow, GetEnumPlayer() )
endfunction
function Trig__On_Command_Actions takes nothing returns nothing
call EnableTrigger( gg_trg_TurningItOff )
call EnableTrigger( gg_trg_SpawningVirusUnits )
call ForForce( GetPlayersAll(), function Trig__On_Command_Func003002 )
endfunction
//===========================================================================
function InitTrig__On_Command takes nothing returns nothing
set gg_trg__On_Command = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg__On_Command, Player(11), "-SpawnOn", true )
call TriggerAddAction( gg_trg__On_Command, function Trig__On_Command_Actions )
endfunction
function Trig_BrownLeaves_Func001C takes nothing returns boolean
if ( not ( GetPlayerSlotState(Player(11)) == PLAYER_SLOT_STATE_LEFT ) ) then
return false
endif
return true
endfunction
function Trig_BrownLeaves_Actions takes nothing returns nothing
if ( Trig_BrownLeaves_Func001C() ) then
call EnableTrigger( gg_trg__EnableCommands )
call DisplayTimedTextToForce( GetPlayersAll(), 60.00, "TRIGSTR_1013" )
call TriggerSleepAction( 1.00 )
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
//===========================================================================
function InitTrig_BrownLeaves takes nothing returns nothing
set gg_trg_BrownLeaves = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_BrownLeaves, 5.00 )
call TriggerAddAction( gg_trg_BrownLeaves, function Trig_BrownLeaves_Actions )
endfunction
function Trig__EnableCommands_Func028002 takes nothing returns nothing
call KillUnit( GetEnumUnit() )
endfunction
function Trig__EnableCommands_Actions takes nothing returns nothing
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Team2Virus )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Team2Virus )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Team2Virus )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Team2Virus )
call ForceAddPlayerSimple( GetTriggerPlayer(), udg_Team2Virus )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(11), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( Player(11), GetTriggerPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(0), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(1), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(2), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(3), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(4), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(5), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(6), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(7), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(8), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( GetTriggerPlayer(), Player(10), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(0), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(1), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(2), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(3), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(4), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(5), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(6), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(7), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(8), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call SetPlayerAllianceStateBJ( Player(10), GetTriggerPlayer(), bj_ALLIANCE_UNALLIED )
call ForGroupBJ( GetUnitsOfPlayerAll(GetTriggerPlayer()), function Trig__EnableCommands_Func028002 )
call SetPlayerStateBJ( GetTriggerPlayer(), PLAYER_STATE_RESOURCE_GOLD, 0 )
call SetPlayerColorBJ( GetTriggerPlayer(), PLAYER_COLOR_BROWN, true )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, ( GetPlayerName(GetTriggerPlayer()) + " Has Taken Over The Job Of Brown. He Is The New Virus." ) )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_1025" )
call TriggerSleepAction( 0.05 )
call ShareEverythingWithTeam( Player(11) )
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig__EnableCommands takes nothing returns nothing
set gg_trg__EnableCommands = CreateTrigger( )
call DisableTrigger( gg_trg__EnableCommands )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(0), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(1), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(2), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(3), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(4), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(5), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(6), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(7), "-to", true )
call TriggerRegisterPlayerChatEvent( gg_trg__EnableCommands, Player(8), "-to", true )
call TriggerAddAction( gg_trg__EnableCommands, function Trig__EnableCommands_Actions )
endfunction
function Trig_Player_Loop_Func001001001 takes nothing returns boolean
return ( GetPlayerSlotState(GetFilterPlayer()) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Player_Loop_Func001002 takes nothing returns nothing
call TriggerExecute( gg_trg_____Camera_Lock )
endfunction
function Trig_Player_Loop_Actions takes nothing returns nothing
call ForForce( GetPlayersMatching(Condition(function Trig_Player_Loop_Func001001001)), function Trig_Player_Loop_Func001002 )
endfunction
//===========================================================================
function InitTrig_Player_Loop takes nothing returns nothing
set gg_trg_Player_Loop = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Player_Loop, 0.10 )
call TriggerAddAction( gg_trg_Player_Loop, function Trig_Player_Loop_Actions )
endfunction
function Trig_____Camera_Lock_Actions takes nothing returns nothing
call CameraSetSmoothingFactorBJ( 10.00 )
endfunction
//===========================================================================
function InitTrig_____Camera_Lock takes nothing returns nothing
set gg_trg_____Camera_Lock = CreateTrigger( )
call TriggerAddAction( gg_trg_____Camera_Lock, function Trig_____Camera_Lock_Actions )
endfunction
function Trig_TeamAttacking_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetAttackedUnitBJ()) != Player(PLAYER_NEUTRAL_PASSIVE) ) ) then
return false
endif
if ( not ( IsUnitAlly(GetAttacker(), GetOwningPlayer(GetAttackedUnitBJ())) == true ) ) then
return false
endif
return true
endfunction
function Trig_TeamAttacking_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetForceOfPlayer(GetOwningPlayer(GetAttacker())), 1.00, "TRIGSTR_1015" )
call IssueImmediateOrderBJ( GetAttacker(), "stop" )
call TriggerSleepAction( 0.50 )
call IssueImmediateOrderBJ( GetAttacker(), "stop" )
endfunction
//===========================================================================
function InitTrig_TeamAttacking takes nothing returns nothing
set gg_trg_TeamAttacking = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TeamAttacking, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_TeamAttacking, Condition( function Trig_TeamAttacking_Conditions ) )
call TriggerAddAction( gg_trg_TeamAttacking, function Trig_TeamAttacking_Actions )
endfunction
function Trig_Special_Kill_Conditions takes nothing returns boolean
if ( not ( GetPlayerName(GetTriggerPlayer()) == "imalazybiznatch" ) ) then
return false
endif
return true
endfunction
function Trig_Special_Kill_Func001002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_STRUCTURE) == true )
endfunction
function Trig_Special_Kill_Func001002 takes nothing returns nothing
if ( Trig_Special_Kill_Func001002001() ) then
call DoNothing( )
else
call KillUnit( GetEnumUnit() )
endif
endfunction
function Trig_Special_Kill_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsSelectedAll(GetTriggerPlayer()), function Trig_Special_Kill_Func001002 )
endfunction
//===========================================================================
function InitTrig_Special_Kill takes nothing returns nothing
set gg_trg_Special_Kill = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(0), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(1), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(2), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(3), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(4), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(5), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(6), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(7), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(8), "-kill", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Special_Kill, Player(11), "-kill", true )
call TriggerAddCondition( gg_trg_Special_Kill, Condition( function Trig_Special_Kill_Conditions ) )
call TriggerAddAction( gg_trg_Special_Kill, function Trig_Special_Kill_Actions )
endfunction
function Trig_Special_Exp_Func001002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Special_Exp_Func001002 takes nothing returns nothing
if ( Trig_Special_Exp_Func001002001() ) then
call AddHeroXPSwapped( 75, GetEnumUnit(), true )
else
call DoNothing( )
endif
endfunction
function Trig_Special_Exp_Func002002001 takes nothing returns boolean
return ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == true )
endfunction
function Trig_Special_Exp_Func002002 takes nothing returns nothing
if ( Trig_Special_Exp_Func002002001() ) then
call AddHeroXPSwapped( 75, GetEnumUnit(), true )
else
call DoNothing( )
endif
endfunction
function Trig_Special_Exp_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(gg_rct_HeroExp1), function Trig_Special_Exp_Func001002 )
call ForGroupBJ( GetUnitsInRectAll(gg_rct_HeroExp2), function Trig_Special_Exp_Func002002 )
endfunction
//===========================================================================
function InitTrig_Special_Exp takes nothing returns nothing
set gg_trg_Special_Exp = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Special_Exp, 12.00 )
call TriggerAddAction( gg_trg_Special_Exp, function Trig_Special_Exp_Actions )
endfunction
function Trig_Special_Gold_Actions takes nothing returns nothing
call AdjustPlayerStateBJ( 20, GetOwningPlayer(GetKillingUnitBJ()), PLAYER_STATE_RESOURCE_GOLD )
endfunction
//===========================================================================
function InitTrig_Special_Gold takes nothing returns nothing
set gg_trg_Special_Gold = CreateTrigger( )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7675 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7676 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7677 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7678 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7679 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7680 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7681 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7682 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7683 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7684 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7685 )
call TriggerRegisterDeathEvent( gg_trg_Special_Gold, gg_dest_LTba_7686 )
call TriggerAddAction( gg_trg_Special_Gold, function Trig_Special_Gold_Actions )
endfunction
function Trig_Level1Marine_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'z001' ) ) then
return false
endif
return true
endfunction
function Trig_Level1Marine_Actions takes nothing returns nothing
call TriggerSleepAction( GetRandomReal(15.00, 60.00) )
call CreateNUnitsAtLoc( 1, 'z00G', Player(11), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetUnitLoc(GetDyingUnit()), 2.00 )
call DisplayTimedTextToForce( GetPlayersAllies(Player(11)), 2.00, "TRIGSTR_1016" )
endfunction
//===========================================================================
function InitTrig_Level1Marine takes nothing returns nothing
set gg_trg_Level1Marine = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Level1Marine, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Level1Marine, Condition( function Trig_Level1Marine_Conditions ) )
call TriggerAddAction( gg_trg_Level1Marine, function Trig_Level1Marine_Actions )
endfunction
function Trig_Level2Marine_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'z002' ) ) then
return false
endif
return true
endfunction
function Trig_Level2Marine_Actions takes nothing returns nothing
call TriggerSleepAction( GetRandomReal(15.00, 60.00) )
call CreateNUnitsAtLoc( 1, 'z00H', Player(11), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetUnitLoc(GetDyingUnit()), 2.00 )
call DisplayTimedTextToForce( GetPlayersAllies(Player(11)), 2.00, "TRIGSTR_1017" )
endfunction
//===========================================================================
function InitTrig_Level2Marine takes nothing returns nothing
set gg_trg_Level2Marine = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Level2Marine, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Level2Marine, Condition( function Trig_Level2Marine_Conditions ) )
call TriggerAddAction( gg_trg_Level2Marine, function Trig_Level2Marine_Actions )
endfunction
function Trig_Level3Marine_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'z003' ) ) then
return false
endif
return true
endfunction
function Trig_Level3Marine_Actions takes nothing returns nothing
call TriggerSleepAction( GetRandomReal(15.00, 60.00) )
call CreateNUnitsAtLoc( 1, 'z00I', Player(11), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetUnitLoc(GetDyingUnit()), 2.00 )
call DisplayTimedTextToForce( GetPlayersAllies(Player(11)), 2.00, "TRIGSTR_1018" )
endfunction
//===========================================================================
function InitTrig_Level3Marine takes nothing returns nothing
set gg_trg_Level3Marine = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Level3Marine, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Level3Marine, Condition( function Trig_Level3Marine_Conditions ) )
call TriggerAddAction( gg_trg_Level3Marine, function Trig_Level3Marine_Actions )
endfunction
function Trig_Level4Marine_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'z00X' ) ) then
return false
endif
return true
endfunction
function Trig_Level4Marine_Actions takes nothing returns nothing
call TriggerSleepAction( GetRandomReal(15.00, 60.00) )
call CreateNUnitsAtLoc( 1, 'z010', Player(11), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call PingMinimapLocForForce( GetPlayersAllies(Player(11)), GetUnitLoc(GetDyingUnit()), 2.00 )
call DisplayTimedTextToForce( GetPlayersAllies(Player(11)), 2.00, "TRIGSTR_1023" )
endfunction
//===========================================================================
function InitTrig_Level4Marine takes nothing returns nothing
set gg_trg_Level4Marine = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Level4Marine, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Level4Marine, Condition( function Trig_Level4Marine_Conditions ) )
call TriggerAddAction( gg_trg_Level4Marine, function Trig_Level4Marine_Actions )
endfunction
function Trig_DeathBringer_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'u001' ) ) then
return false
endif
return true
endfunction
function Trig_DeathBringer_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 125.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.65 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 165.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.40 )
endfunction
//===========================================================================
function InitTrig_DeathBringer takes nothing returns nothing
set gg_trg_DeathBringer = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeathBringer, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_DeathBringer, Condition( function Trig_DeathBringer_Conditions ) )
call TriggerAddAction( gg_trg_DeathBringer, function Trig_DeathBringer_Actions )
endfunction
function Trig_DeathBringer3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'u005' ) ) then
return false
endif
return true
endfunction
function Trig_DeathBringer3_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 100.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.65 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 185.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.40 )
endfunction
//===========================================================================
function InitTrig_DeathBringer3 takes nothing returns nothing
set gg_trg_DeathBringer3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeathBringer3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_DeathBringer3, Condition( function Trig_DeathBringer3_Conditions ) )
call TriggerAddAction( gg_trg_DeathBringer3, function Trig_DeathBringer3_Actions )
endfunction
function Trig_DeathBringer4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'u007' ) ) then
return false
endif
return true
endfunction
function Trig_DeathBringer4_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 125.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.65 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 200.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.40 )
endfunction
//===========================================================================
function InitTrig_DeathBringer4 takes nothing returns nothing
set gg_trg_DeathBringer4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeathBringer4, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_DeathBringer4, Condition( function Trig_DeathBringer4_Conditions ) )
call TriggerAddAction( gg_trg_DeathBringer4, function Trig_DeathBringer4_Actions )
endfunction
function Trig_DeathBringer5_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'u007' ) ) then
return false
endif
return true
endfunction
function Trig_DeathBringer5_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 100.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.65 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 225.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.40 )
endfunction
//===========================================================================
function InitTrig_DeathBringer5 takes nothing returns nothing
set gg_trg_DeathBringer5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeathBringer5, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_DeathBringer5, Condition( function Trig_DeathBringer5_Conditions ) )
call TriggerAddAction( gg_trg_DeathBringer5, function Trig_DeathBringer5_Actions )
endfunction
function Trig_Zombie_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'n000' ) ) then
return false
endif
return true
endfunction
function Trig_Zombie_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 225.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.35 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 280.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Zombie takes nothing returns nothing
set gg_trg_Zombie = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Zombie, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Zombie, Condition( function Trig_Zombie_Conditions ) )
call TriggerAddAction( gg_trg_Zombie, function Trig_Zombie_Actions )
endfunction
function Trig_Zombie3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'n005' ) ) then
return false
endif
return true
endfunction
function Trig_Zombie3_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 200.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.35 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 300.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Zombie3 takes nothing returns nothing
set gg_trg_Zombie3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Zombie3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Zombie3, Condition( function Trig_Zombie3_Conditions ) )
call TriggerAddAction( gg_trg_Zombie3, function Trig_Zombie3_Actions )
endfunction
function Trig_Zombie4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'n005' ) ) then
return false
endif
return true
endfunction
function Trig_Zombie4_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 225.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.35 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 325.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Zombie4 takes nothing returns nothing
set gg_trg_Zombie4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Zombie4, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Zombie4, Condition( function Trig_Zombie4_Conditions ) )
call TriggerAddAction( gg_trg_Zombie4, function Trig_Zombie4_Actions )
endfunction
function Trig_Zombie5_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'n005' ) ) then
return false
endif
return true
endfunction
function Trig_Zombie5_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 180.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.35 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 350.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.50 )
endfunction
//===========================================================================
function InitTrig_Zombie5 takes nothing returns nothing
set gg_trg_Zombie5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Zombie5, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_Zombie5, Condition( function Trig_Zombie5_Conditions ) )
call TriggerAddAction( gg_trg_Zombie5, function Trig_Zombie5_Actions )
endfunction
function Trig_FleshEater_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00M' ) ) then
return false
endif
return true
endfunction
function Trig_FleshEater_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 125.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 200.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_FleshEater takes nothing returns nothing
set gg_trg_FleshEater = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_FleshEater, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_FleshEater, Condition( function Trig_FleshEater_Conditions ) )
call TriggerAddAction( gg_trg_FleshEater, function Trig_FleshEater_Actions )
endfunction
function Trig_FleshEater3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00O' ) ) then
return false
endif
return true
endfunction
function Trig_FleshEater3_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 125.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 275.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_FleshEater3 takes nothing returns nothing
set gg_trg_FleshEater3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_FleshEater3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_FleshEater3, Condition( function Trig_FleshEater3_Conditions ) )
call TriggerAddAction( gg_trg_FleshEater3, function Trig_FleshEater3_Actions )
endfunction
function Trig_FleshEater4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00O' ) ) then
return false
endif
return true
endfunction
function Trig_FleshEater4_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 110.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 300.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_FleshEater4 takes nothing returns nothing
set gg_trg_FleshEater4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_FleshEater4, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_FleshEater4, Condition( function Trig_FleshEater4_Conditions ) )
call TriggerAddAction( gg_trg_FleshEater4, function Trig_FleshEater4_Actions )
endfunction
function Trig_FleshEater5_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00O' ) ) then
return false
endif
return true
endfunction
function Trig_FleshEater5_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 95.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 325.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_FleshEater5 takes nothing returns nothing
set gg_trg_FleshEater5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_FleshEater5, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_FleshEater5, Condition( function Trig_FleshEater5_Conditions ) )
call TriggerAddAction( gg_trg_FleshEater5, function Trig_FleshEater5_Actions )
endfunction
function Trig_NightStalker_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00N' ) ) then
return false
endif
return true
endfunction
function Trig_NightStalker_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 200.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 300.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_NightStalker takes nothing returns nothing
set gg_trg_NightStalker = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NightStalker, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_NightStalker, Condition( function Trig_NightStalker_Conditions ) )
call TriggerAddAction( gg_trg_NightStalker, function Trig_NightStalker_Actions )
endfunction
function Trig_NightStalker3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00P' ) ) then
return false
endif
return true
endfunction
function Trig_NightStalker3_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 200.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 325.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_NightStalker3 takes nothing returns nothing
set gg_trg_NightStalker3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NightStalker3, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_NightStalker3, Condition( function Trig_NightStalker3_Conditions ) )
call TriggerAddAction( gg_trg_NightStalker3, function Trig_NightStalker3_Actions )
endfunction
function Trig_NightStalker4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00P' ) ) then
return false
endif
return true
endfunction
function Trig_NightStalker4_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 225.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 350.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_NightStalker4 takes nothing returns nothing
set gg_trg_NightStalker4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NightStalker4, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_NightStalker4, Condition( function Trig_NightStalker4_Conditions ) )
call TriggerAddAction( gg_trg_NightStalker4, function Trig_NightStalker4_Actions )
endfunction
function Trig_NightStalker5_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'z00P' ) ) then
return false
endif
return true
endfunction
function Trig_NightStalker5_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 175.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 1.15 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 375.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_NightStalker5 takes nothing returns nothing
set gg_trg_NightStalker5 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_NightStalker5, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_NightStalker5, Condition( function Trig_NightStalker5_Conditions ) )
call TriggerAddAction( gg_trg_NightStalker5, function Trig_NightStalker5_Actions )
endfunction
function Trig_TheVirus_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'Uwar' ) ) then
return false
endif
return true
endfunction
function Trig_TheVirus_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 85.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 0.75 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 135.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.50 )
endfunction
//===========================================================================
function InitTrig_TheVirus takes nothing returns nothing
set gg_trg_TheVirus = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TheVirus, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_TheVirus, Condition( function Trig_TheVirus_Conditions ) )
call TriggerAddAction( gg_trg_TheVirus, function Trig_TheVirus_Actions )
endfunction
function Trig_DeadHero_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetAttackedUnitBJ()) == 'H005' ) ) then
return false
endif
return true
endfunction
function Trig_DeadHero_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 225.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.10 )
call TriggerSleepAction( 0.75 )
call SetUnitMoveSpeed( GetAttackedUnitBJ(), 325.00 )
call SetUnitTurnSpeedBJ( GetAttackedUnitBJ(), 0.60 )
endfunction
//===========================================================================
function InitTrig_DeadHero takes nothing returns nothing
set gg_trg_DeadHero = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_DeadHero, EVENT_PLAYER_UNIT_ATTACKED )
call TriggerAddCondition( gg_trg_DeadHero, Condition( function Trig_DeadHero_Conditions ) )
call TriggerAddAction( gg_trg_DeadHero, function Trig_DeadHero_Actions )
endfunction