Name | Type | is_array | initial_value |
DestructTree | destructable | No | |
DialogRM | dialog | No | |
FTextBomb | texttag | No | |
IntRandom | integer | No | 0 |
IntRepeat | integer | No | 0 |
IntSound1 | integer | No | 0 |
IntSound2 | integer | No | 0 |
IntSound3 | integer | No | 0 |
IntWins | integer | Yes | 0 |
ItemBomb | item | No | |
KaBo0m | texttag | No | |
KillingPlyr | force | No | |
NO | button | No | |
OwnerOfDyingUnit | player | No | |
PointTree | location | No | |
RealBomb | real | No | 35.00 |
SEBomb | effect | No | |
SETeleport | effect | Yes | |
TimerBomb | timer | No | |
TriggeringPlyr | player | No | |
TWindowBomb | timerdialog | No | |
UnitHero | unit | Yes | |
VModAll | fogmodifier | Yes | |
Weather1 | weathereffect | No | |
Yes | button | No |
function Trig_Initialization_Func008Func001001001 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER )
endfunction
function Trig_Initialization_Func008Func001001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_Func008Func001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Initialization_Func008Func001001001(), Trig_Initialization_Func008Func001001002() )
endfunction
function Trig_Initialization_Actions takes nothing returns nothing
call UseTimeOfDayBJ( false )
call SetSkyModel( "Environment\\Sky\\LordaeronFallSky\\LordaeronFallSky.mdl" )
call AddWeatherEffectSaveLast( GetEntireMapRect(), 'RAlr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Weather1 = GetLastCreatedWeatherEffect()
call CameraSetSmoothingFactorBJ( 1.25 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call CreateFogModifierRectBJ( true, ConvertedPlayer(GetForLoopIndexA()), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() )
set udg_VModAll[GetForLoopIndexA()] = GetLastCreatedFogModifier()
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Initialization_Func008Func001001() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'Ntin', ConvertedPlayer(GetForLoopIndexA()), GetRandomLocInRect(gg_rct_Inside_Walls), GetRectCenter(gg_rct_Inside_Walls) )
else
call DoNothing( )
endif
set udg_UnitHero[GetForLoopIndexA()] = GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer( ConvertedPlayer(GetForLoopIndexA()), GetUnitLoc(GetLastCreatedUnit()), 0.00 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), ConvertedPlayer(GetForLoopIndexA()) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_020" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call PlaySoundBJ( gg_snd_BattleNetTick )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_029" )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_030" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_031" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_032" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PlaySoundBJ( gg_snd_ClanInvitation )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call TriggerExecute( gg_trg_Bomb_Spawn )
endfunction
//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
set gg_trg_Initialization = CreateTrigger( )
call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )
endfunction
function Trig_Initialization_2_Func008Func001001001 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER )
endfunction
function Trig_Initialization_2_Func008Func001001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Initialization_2_Func008Func001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Initialization_2_Func008Func001001001(), Trig_Initialization_2_Func008Func001001002() )
endfunction
function Trig_Initialization_2_Actions takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEIN, 0.10, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 100.00, 100.00, 100.00, 0 )
call LeaderboardDisplayBJ( true, GetLastCreatedLeaderboard() )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call RemoveUnit( udg_UnitHero[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_RealBomb = 35.00
call EnableTrigger( gg_trg_Ticking_and_Animation )
call DisableTrigger( gg_trg_Ending )
call TriggerExecute( gg_trg_Music )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Initialization_2_Func008Func001001() ) then
call CreateNUnitsAtLocFacingLocBJ( 1, 'Ntin', ConvertedPlayer(GetForLoopIndexA()), GetRandomLocInRect(gg_rct_Inside_Walls), GetRectCenter(gg_rct_Inside_Walls) )
else
call DoNothing( )
endif
set udg_UnitHero[GetForLoopIndexA()] = GetLastCreatedUnit()
call PanCameraToTimedLocForPlayer( ConvertedPlayer(GetForLoopIndexA()), GetUnitLoc(GetLastCreatedUnit()), 0.00 )
call ResetToGameCameraForPlayer( ConvertedPlayer(GetForLoopIndexA()), 0.25 )
call SelectUnitForPlayerSingle( GetLastCreatedUnit(), ConvertedPlayer(GetForLoopIndexA()) )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call CameraSetSmoothingFactorBJ( 1.25 )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_194" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_195" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_196" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_197" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_198" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PlaySoundBJ( gg_snd_ClanInvitation )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call TriggerExecute( gg_trg_Bomb_Spawn )
endfunction
//===========================================================================
function InitTrig_Initialization_2 takes nothing returns nothing
set gg_trg_Initialization_2 = CreateTrigger( )
call TriggerAddAction( gg_trg_Initialization_2, function Trig_Initialization_2_Actions )
endfunction
function Trig_Music_Func003001 takes nothing returns boolean
return ( udg_IntSound3 == 1 )
endfunction
function Trig_Music_Func004001 takes nothing returns boolean
return ( udg_IntSound3 == 2 )
endfunction
function Trig_Music_Func005001 takes nothing returns boolean
return ( udg_IntSound3 == 3 )
endfunction
function Trig_Music_Func006001 takes nothing returns boolean
return ( udg_IntSound3 == 4 )
endfunction
function Trig_Music_Func007001 takes nothing returns boolean
return ( udg_IntSound3 == 5 )
endfunction
function Trig_Music_Func008001 takes nothing returns boolean
return ( udg_IntSound3 == 6 )
endfunction
function Trig_Music_Func009001 takes nothing returns boolean
return ( udg_IntSound3 == 7 )
endfunction
function Trig_Music_Func010001 takes nothing returns boolean
return ( udg_IntSound3 == 8 )
endfunction
function Trig_Music_Func011001 takes nothing returns boolean
return ( udg_IntSound3 == 9 )
endfunction
function Trig_Music_Actions takes nothing returns nothing
set udg_IntSound3 = GetRandomInt(1, 9)
if ( Trig_Music_Func003001() ) then
call PlayMusicBJ( gg_snd_1PursuitTheme )
else
call DoNothing( )
endif
if ( Trig_Music_Func004001() ) then
call PlayMusicBJ( gg_snd_2War2IntroMusic )
else
call DoNothing( )
endif
if ( Trig_Music_Func005001() ) then
call PlayMusicBJ( gg_snd_3Undead3 )
else
call DoNothing( )
endif
if ( Trig_Music_Func006001() ) then
call PlayMusicBJ( gg_snd_4TragicConfrontation )
else
call DoNothing( )
endif
if ( Trig_Music_Func007001() ) then
call PlayMusicBJ( gg_snd_5Tension )
else
call DoNothing( )
endif
if ( Trig_Music_Func008001() ) then
call PlayMusicBJ( gg_snd_6SadMystery )
else
call DoNothing( )
endif
if ( Trig_Music_Func009001() ) then
call PlayMusicBJ( gg_snd_7ArthasTheme )
else
call DoNothing( )
endif
if ( Trig_Music_Func010001() ) then
call PlayMusicBJ( gg_snd_8DarkVictory )
else
call DoNothing( )
endif
if ( Trig_Music_Func011001() ) then
call PlayMusicBJ( gg_snd_9Doom )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Music takes nothing returns nothing
set gg_trg_Music = CreateTrigger( )
call TriggerAddAction( gg_trg_Music, function Trig_Music_Actions )
endfunction
function Trig_Leaver_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( GetPlayerName(GetTriggerPlayer()) + " has left the game!" ) )
endfunction
//===========================================================================
function InitTrig_Leaver takes nothing returns nothing
set gg_trg_Leaver = CreateTrigger( )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(0) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(1) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(2) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(3) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(4) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(5) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(6) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(7) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(8) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(9) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(10) )
call TriggerRegisterPlayerEventLeave( gg_trg_Leaver, Player(11) )
call TriggerAddAction( gg_trg_Leaver, function Trig_Leaver_Actions )
endfunction
function Trig_Leaderboard_Func003Func001001001 takes nothing returns boolean
return ( GetPlayerController(ConvertedPlayer(GetForLoopIndexA())) == MAP_CONTROL_USER )
endfunction
function Trig_Leaderboard_Func003Func001001002 takes nothing returns boolean
return ( GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA())) == PLAYER_SLOT_STATE_PLAYING )
endfunction
function Trig_Leaderboard_Func003Func001001 takes nothing returns boolean
return GetBooleanAnd( Trig_Leaderboard_Func003Func001001001(), Trig_Leaderboard_Func003Func001001002() )
endfunction
function Trig_Leaderboard_Actions takes nothing returns nothing
call CreateLeaderboardBJ( GetPlayersAll(), "TRIGSTR_202" )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Leaderboard_Func003Func001001() ) then
call LeaderboardAddItemBJ( ConvertedPlayer(GetForLoopIndexA()), GetLastCreatedLeaderboard(), GetPlayerName(ConvertedPlayer(GetForLoopIndexA())), 0 )
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call LeaderboardDisplayBJ( false, GetLastCreatedLeaderboard() )
endfunction
//===========================================================================
function InitTrig_Leaderboard takes nothing returns nothing
set gg_trg_Leaderboard = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_Leaderboard, 0.01 )
call TriggerAddAction( gg_trg_Leaderboard, function Trig_Leaderboard_Actions )
endfunction
function Trig_Quests_Actions takes nothing returns nothing
call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_154", "TRIGSTR_155", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_224", "TRIGSTR_225", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_158", "TRIGSTR_159", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_160", "TRIGSTR_161", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_179", "TRIGSTR_180", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_177", "TRIGSTR_178", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_185", "TRIGSTR_186", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_187", "TRIGSTR_188", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_189", "TRIGSTR_190", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_220", "TRIGSTR_221", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_191", "TRIGSTR_192", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_228", "TRIGSTR_229", "ReplaceableTextures\\CommandButtons\\BTNINV_Misc_Bomb_01.blp" )
endfunction
//===========================================================================
function InitTrig_Quests takes nothing returns nothing
set gg_trg_Quests = CreateTrigger( )
call TriggerAddAction( gg_trg_Quests, function Trig_Quests_Actions )
endfunction
function Trig_Bomb_Spawn_Func003001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Spawn_Func003A takes nothing returns nothing
call UnitAddItemByIdSwapped( 'I000', udg_UnitHero[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] )
set udg_ItemBomb = GetLastCreatedItem()
call DestroyEffectBJ( udg_SEBomb )
call AddSpecialEffectTargetUnitBJ( "overhead", udg_UnitHero[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))], "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
set udg_SEBomb = GetLastCreatedEffectBJ()
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, ( "|cffFF0000" + ( GetPlayerName(GetOwningPlayer(GetEnumUnit())) + " has received the BOMB!" ) ) )
call CreateTextTagUnitBJ( "TRIGSTR_043", GetEnumUnit(), 0, 13.00, 100, 100.00, 100.00, 0.00 )
set udg_FTextBomb = GetLastCreatedTextTag()
endfunction
function Trig_Bomb_Spawn_Actions takes nothing returns nothing
call ClearTextMessagesBJ( GetPlayersAll() )
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Spawn_Func003001002002))), function Trig_Bomb_Spawn_Func003A )
call StartTimerBJ( udg_TimerBomb, false, udg_RealBomb )
call CreateTimerDialogBJ( GetLastCreatedTimerBJ(), "TRIGSTR_022" )
set udg_TWindowBomb = GetLastCreatedTimerDialogBJ()
endfunction
//===========================================================================
function InitTrig_Bomb_Spawn takes nothing returns nothing
set gg_trg_Bomb_Spawn = CreateTrigger( )
call TriggerAddAction( gg_trg_Bomb_Spawn, function Trig_Bomb_Spawn_Actions )
endfunction
function Trig_Bomb_Explode_Func004001 takes nothing returns boolean
return ( udg_IntSound1 == 1 )
endfunction
function Trig_Bomb_Explode_Func005001 takes nothing returns boolean
return ( udg_IntSound1 == 2 )
endfunction
function Trig_Bomb_Explode_Func006001 takes nothing returns boolean
return ( udg_IntSound1 == 3 )
endfunction
function Trig_Bomb_Explode_Func007001 takes nothing returns boolean
return ( udg_IntSound1 == 4 )
endfunction
function Trig_Bomb_Explode_Func008001 takes nothing returns boolean
return ( udg_IntSound1 == 5 )
endfunction
function Trig_Bomb_Explode_Func009001 takes nothing returns boolean
return ( udg_IntSound1 == 6 )
endfunction
function Trig_Bomb_Explode_Func010001 takes nothing returns boolean
return ( udg_IntSound1 == 7 )
endfunction
function Trig_Bomb_Explode_Func011001 takes nothing returns boolean
return ( udg_IntSound1 == 8 )
endfunction
function Trig_Bomb_Explode_Func012001 takes nothing returns boolean
return ( udg_IntSound1 == 9 )
endfunction
function Trig_Bomb_Explode_Func013001 takes nothing returns boolean
return ( udg_IntSound1 == 10 )
endfunction
function Trig_Bomb_Explode_Func014001 takes nothing returns boolean
return ( udg_IntSound1 == 11 )
endfunction
function Trig_Bomb_Explode_Func015001 takes nothing returns boolean
return ( udg_IntSound1 == 12 )
endfunction
function Trig_Bomb_Explode_Func016001 takes nothing returns boolean
return ( udg_IntSound1 == 13 )
endfunction
function Trig_Bomb_Explode_Func017001 takes nothing returns boolean
return ( udg_IntSound1 == 14 )
endfunction
function Trig_Bomb_Explode_Func018001 takes nothing returns boolean
return ( udg_IntSound1 == 15 )
endfunction
function Trig_Bomb_Explode_Func019001 takes nothing returns boolean
return ( udg_IntSound1 == 16 )
endfunction
function Trig_Bomb_Explode_Func020001 takes nothing returns boolean
return ( udg_IntSound1 == 17 )
endfunction
function Trig_Bomb_Explode_Func021001 takes nothing returns boolean
return ( udg_IntSound1 == 18 )
endfunction
function Trig_Bomb_Explode_Func022001 takes nothing returns boolean
return ( udg_IntSound1 == 19 )
endfunction
function Trig_Bomb_Explode_Func023001 takes nothing returns boolean
return ( udg_IntSound1 == 20 )
endfunction
function Trig_Bomb_Explode_Func024001 takes nothing returns boolean
return ( udg_IntSound1 == 21 )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func015A takes nothing returns nothing
call CameraSetEQNoiseForPlayer( GetEnumPlayer(), 23.00 )
call CameraSetTargetNoiseForPlayer( GetEnumPlayer(), 23.00, 9.00 )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func029A takes nothing returns nothing
call CameraClearNoiseForPlayer( GetEnumPlayer() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func002001001002001 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func002001001002002 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func002001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Bomb_Explode_Func029Func002Func001Func040Func002001001002001(), Trig_Bomb_Explode_Func029Func002Func001Func040Func002001001002002() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func003001002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func003001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func003001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Bomb_Explode_Func029Func002Func001Func040Func003001002001(), Trig_Bomb_Explode_Func029Func002Func001Func040Func003001002002() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func003Func008A takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_Cam_End, GetEnumPlayer(), 1.00 )
call RotateCameraAroundLocBJ( 3600.00, CameraSetupGetDestPositionLoc(gg_cam_Cam_End), GetEnumPlayer(), 150.00 )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040Func003A takes nothing returns nothing
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 1.00, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 0.00, 0.00, 0 )
call RemoveItem( udg_ItemBomb )
call TriggerExecute( gg_trg_Random_Events_Destroy )
call DisableTrigger( gg_trg_Ticking_and_Animation )
call DestroyTextTagBJ( udg_FTextBomb )
call DestroyEffectBJ( udg_SEBomb )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, ( "|cffFF0000" + ( GetPlayerName(GetOwningPlayer(GetEnumUnit())) + " has won the game!" ) ) )
call ForForce( GetPlayersAll(), function Trig_Bomb_Explode_Func029Func002Func001Func040Func003Func008A )
call DestroyTimerDialogBJ( udg_TWindowBomb )
call PauseTimerBJ( true, udg_TimerBomb )
call CreateTextTagLocBJ( ( GetPlayerName(GetOwningPlayer(GetEnumUnit())) + " has won the game!" ), GetRectCenter(gg_rct_Inside_Walls), 30.00, 20.00, 15.00, 15.00, 100, 0 )
call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), GetPlayersAll() )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 10.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 9.00 )
set udg_IntWins[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] = ( udg_IntWins[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] + 1 )
call LeaderboardSetPlayerItemValueBJ( GetOwningPlayer(GetEnumUnit()), GetLastCreatedLeaderboard(), udg_IntWins[GetConvertedPlayerId(GetOwningPlayer(GetEnumUnit()))] )
call LeaderboardSortItemsBJ( GetLastCreatedLeaderboard(), bj_SORTTYPE_SORTBYVALUE, false )
call KillUnit( GetEnumUnit() )
call CreateNUnitsAtLoc( 1, 'h000', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 25.00 )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h001', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(GetEnumUnit()), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 25.00 )
call KillUnit( GetLastCreatedUnit() )
call PlaySoundBJ( gg_snd_ArtilleryCorpseExplodeDeath1 )
call PlayMusicBJ( gg_snd_10Finally )
call EnableTrigger( gg_trg_Ending )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_199" )
call TriggerExecute( gg_trg_Bomb_End )
call LeaderboardDisplayBJ( false, GetLastCreatedLeaderboard() )
return
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func040C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func002Func001Func040Func002001001002))) == 1 ) ) then
return false
endif
return true
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041001002002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041001002002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041001002002 takes nothing returns boolean
return GetBooleanAnd( Trig_Bomb_Explode_Func029Func002Func001Func041001002002001(), Trig_Bomb_Explode_Func029Func002Func001Func041001002002002() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041Func006001001001002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041Func006001001001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041Func006001001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Bomb_Explode_Func029Func002Func001Func041Func006001001001002001(), Trig_Bomb_Explode_Func029Func002Func001Func041Func006001001001002002() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041Func006001 takes nothing returns boolean
return ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func002Func001Func041Func006001001001002))) == 1 )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func041A takes nothing returns nothing
call PlaySoundBJ( gg_snd_ClanInvitation )
call UnitAddItemSwapped( udg_ItemBomb, GetEnumUnit() )
call DestroyEffectBJ( udg_SEBomb )
call AddSpecialEffectTargetUnitBJ( "overhead", GetEnumUnit(), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
set udg_SEBomb = GetLastCreatedEffectBJ()
if ( Trig_Bomb_Explode_Func029Func002Func001Func041Func006001() ) then
call DoNothing( )
else
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, ( "|cffFF0000" + ( GetPlayerName(GetOwningPlayer(GetEnumUnit())) + " has received the bomb!" ) ) )
endif
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func043001002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func043001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func043001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Bomb_Explode_Func029Func002Func001Func043001002001(), Trig_Bomb_Explode_Func029Func002Func001Func043001002002() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func043A takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A002', GetEnumUnit(), ( GetUnitAbilityLevelSwapped('A002', GetEnumUnit()) + 1 ) )
call CreateTextTagUnitBJ( "TRIGSTR_076", GetEnumUnit(), 0, 10, 100.00, 85.00, 0.00, 0.00 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 44.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 2.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 1.00 )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func044Func003001001002001 takes nothing returns boolean
return ( IsUnitAliveBJ(GetFilterUnit()) == true )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func044Func003001001002002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func044Func003001001002 takes nothing returns boolean
return GetBooleanAnd( Trig_Bomb_Explode_Func029Func002Func001Func044Func003001001002001(), Trig_Bomb_Explode_Func029Func002Func001Func044Func003001001002002() )
endfunction
function Trig_Bomb_Explode_Func029Func002Func001Func044C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func002Func001Func044Func003001001002))) > 1 ) ) then
return false
endif
return true
endfunction
function Trig_Bomb_Explode_Func029Func002Func001C takes nothing returns boolean
if ( not ( UnitHasItem(udg_UnitHero[GetForLoopIndexA()], udg_ItemBomb) == true ) ) then
return false
endif
return true
endfunction
function Trig_Bomb_Explode_Func029Func003001001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Bomb_Explode_Func029C takes nothing returns boolean
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func003001001002))) > 1 ) ) then
return false
endif
return true
endfunction
function Trig_Bomb_Explode_Actions takes nothing returns nothing
call SetTextTagColorBJ( udg_FTextBomb, 100, 100, 100, 0 )
call ShowTextTagForceBJ( false, udg_FTextBomb, GetPlayersAll() )
set udg_IntSound1 = GetRandomInt(1, 21)
if ( Trig_Bomb_Explode_Func004001() ) then
call PlaySoundBJ( gg_snd_1 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func005001() ) then
call PlaySoundBJ( gg_snd_2 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func006001() ) then
call PlaySoundBJ( gg_snd_3 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func007001() ) then
call PlaySoundBJ( gg_snd_4 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func008001() ) then
call PlaySoundBJ( gg_snd_5 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func009001() ) then
call PlaySoundBJ( gg_snd_6 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func010001() ) then
call PlaySoundBJ( gg_snd_7 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func011001() ) then
call PlaySoundBJ( gg_snd_8 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func012001() ) then
call PlaySoundBJ( gg_snd_9 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func013001() ) then
call PlaySoundBJ( gg_snd_10 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func014001() ) then
call PlaySoundBJ( gg_snd_11 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func015001() ) then
call PlaySoundBJ( gg_snd_12 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func016001() ) then
call PlaySoundBJ( gg_snd_13 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func017001() ) then
call PlaySoundBJ( gg_snd_14 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func018001() ) then
call PlaySoundBJ( gg_snd_15 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func019001() ) then
call PlaySoundBJ( gg_snd_16 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func020001() ) then
call PlaySoundBJ( gg_snd_17 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func021001() ) then
call PlaySoundBJ( gg_snd_18 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func022001() ) then
call PlaySoundBJ( gg_snd_19 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func023001() ) then
call PlaySoundBJ( gg_snd_20 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Explode_Func024001() ) then
call PlaySoundBJ( gg_snd_21 )
else
call DoNothing( )
endif
call ClearTextMessagesBJ( GetPlayersAll() )
call PauseTimerBJ( true, udg_TimerBomb )
set udg_RealBomb = ( udg_RealBomb - 1.50 )
if ( Trig_Bomb_Explode_Func029C() ) then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Bomb_Explode_Func029Func002Func001C() ) then
call SetItemPositionLoc( udg_ItemBomb, GetRectCenter(gg_rct_MidMap) )
call SetItemVisibleBJ( false, udg_ItemBomb )
call SetUnitTimeScalePercent( udg_UnitHero[GetForLoopIndexA()], 100 )
call KillUnit( udg_UnitHero[GetForLoopIndexA()] )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, ( "|cffFF0000" + ( GetPlayerName(GetOwningPlayer(udg_UnitHero[GetForLoopIndexA()])) + " has been eliminated!" ) ) )
call CreateNUnitsAtLoc( 1, 'h001', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_UnitHero[GetForLoopIndexA()]), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 25.00 )
call KillUnit( GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'h000', Player(PLAYER_NEUTRAL_PASSIVE), GetUnitLoc(udg_UnitHero[GetForLoopIndexA()]), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 25.00 )
call KillUnit( GetLastCreatedUnit() )
call PlaySoundBJ( gg_snd_ArtilleryCorpseExplodeDeath1 )
call DestroyEffectBJ( udg_SEBomb )
call ForForce( GetPlayersAll(), function Trig_Bomb_Explode_Func029Func002Func001Func015A )
call SetItemVisibleBJ( true, udg_ItemBomb )
call PolledWait( 3.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_050" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_051" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_052" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call ForForce( GetPlayersAll(), function Trig_Bomb_Explode_Func029Func002Func001Func029A )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_053" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_054" )
call PlaySoundBJ( gg_snd_BattleNetTick )
call PolledWait( 1.00 )
call ClearTextMessagesBJ( GetPlayersAll() )
if ( Trig_Bomb_Explode_Func029Func002Func001Func040C() ) then
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func002Func001Func040Func003001002)), function Trig_Bomb_Explode_Func029Func002Func001Func040Func003A )
else
call DoNothing( )
endif
call ForGroupBJ( GetRandomSubGroup(1, GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func002Func001Func041001002002))), function Trig_Bomb_Explode_Func029Func002Func001Func041A )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 1.00, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 0, 0, 0 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Explode_Func029Func002Func001Func043001002)), function Trig_Bomb_Explode_Func029Func002Func001Func043A )
if ( Trig_Bomb_Explode_Func029Func002Func001Func044C() ) then
call TriggerExecute( gg_trg_Random_Events_Destroy )
call TriggerExecute( gg_trg_Random_Events )
else
endif
call StartTimerBJ( udg_TimerBomb, false, udg_RealBomb )
call ShowTextTagForceBJ( true, udg_FTextBomb, GetPlayersAll() )
return
else
call DoNothing( )
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Bomb_Explode takes nothing returns nothing
set gg_trg_Bomb_Explode = CreateTrigger( )
call TriggerRegisterTimerExpireEventBJ( gg_trg_Bomb_Explode, udg_TimerBomb )
call TriggerAddAction( gg_trg_Bomb_Explode, function Trig_Bomb_Explode_Actions )
endfunction
function Trig_Bomb_End_Actions takes nothing returns nothing
call PolledWait( 10.00 )
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 6.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 100.00, 100.00, 100.00, 0 )
call PolledWait( 9.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 10000.00, "TRIGSTR_201" )
call PolledWait( 1.00 )
call TriggerExecute( gg_trg_Initialization_2 )
endfunction
//===========================================================================
function InitTrig_Bomb_End takes nothing returns nothing
set gg_trg_Bomb_End = CreateTrigger( )
call TriggerAddAction( gg_trg_Bomb_End, function Trig_Bomb_End_Actions )
endfunction
function Trig_Out_of_Bounds_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ntin' ) ) then
return false
endif
return true
endfunction
function Trig_Out_of_Bounds_Func001Func001001002 takes nothing returns boolean
return ( UnitHasItem(GetFilterUnit(), udg_ItemBomb) == true )
endfunction
function Trig_Out_of_Bounds_Func001Func001002 takes nothing returns nothing
call SetUnitLookAt( udg_UnitHero[GetForLoopIndexA()], "bone_head", GetEnumUnit(), 0, 0, 90 )
endfunction
function Trig_Out_of_Bounds_Func003001 takes nothing returns boolean
return ( udg_IntSound2 == 1 )
endfunction
function Trig_Out_of_Bounds_Func004001 takes nothing returns boolean
return ( udg_IntSound2 == 2 )
endfunction
function Trig_Out_of_Bounds_Func005001 takes nothing returns boolean
return ( udg_IntSound2 == 3 )
endfunction
function Trig_Out_of_Bounds_Func006001 takes nothing returns boolean
return ( udg_IntSound2 == 4 )
endfunction
function Trig_Out_of_Bounds_Func007001 takes nothing returns boolean
return ( udg_IntSound2 == 5 )
endfunction
function Trig_Out_of_Bounds_Func008001 takes nothing returns boolean
return ( udg_IntSound2 == 6 )
endfunction
function Trig_Out_of_Bounds_Func009001 takes nothing returns boolean
return ( udg_IntSound2 == 7 )
endfunction
function Trig_Out_of_Bounds_Func010001 takes nothing returns boolean
return ( udg_IntSound2 == 8 )
endfunction
function Trig_Out_of_Bounds_Func011001 takes nothing returns boolean
return ( udg_IntSound2 == 9 )
endfunction
function Trig_Out_of_Bounds_Func012001 takes nothing returns boolean
return ( udg_IntSound2 == 10 )
endfunction
function Trig_Out_of_Bounds_Func013001 takes nothing returns boolean
return ( udg_IntSound2 == 11 )
endfunction
function Trig_Out_of_Bounds_Func014001 takes nothing returns boolean
return ( udg_IntSound2 == 12 )
endfunction
function Trig_Out_of_Bounds_Func015001 takes nothing returns boolean
return ( udg_IntSound2 == 13 )
endfunction
function Trig_Out_of_Bounds_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Out_of_Bounds_Func001Func001001002)), function Trig_Out_of_Bounds_Func001Func001002 )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
set udg_IntSound2 = GetRandomInt(1, 13)
if ( Trig_Out_of_Bounds_Func003001() ) then
call PlaySoundBJ( gg_snd_a1 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func004001() ) then
call PlaySoundBJ( gg_snd_a2 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func005001() ) then
call PlaySoundBJ( gg_snd_a3 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func006001() ) then
call PlaySoundBJ( gg_snd_a4 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func007001() ) then
call PlaySoundBJ( gg_snd_a5 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func008001() ) then
call PlaySoundBJ( gg_snd_a6 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func009001() ) then
call PlaySoundBJ( gg_snd_a7 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func010001() ) then
call PlaySoundBJ( gg_snd_a8 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func011001() ) then
call PlaySoundBJ( gg_snd_a9 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func012001() ) then
call PlaySoundBJ( gg_snd_a10 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func013001() ) then
call PlaySoundBJ( gg_snd_a11 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func014001() ) then
call PlaySoundBJ( gg_snd_a12 )
else
call DoNothing( )
endif
if ( Trig_Out_of_Bounds_Func015001() ) then
call PlaySoundBJ( gg_snd_a13 )
else
call DoNothing( )
endif
call DestroyEffectBJ( udg_SEBomb )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
set udg_SEBomb = GetLastCreatedEffectBJ()
call ClearTextMessagesBJ( GetPlayersAll() )
call DisplayTimedTextToPlayer( GetOwningPlayer(GetTriggerUnit()), 0, 0, 5.00, "TRIGSTR_075" )
call UnitAddItemSwapped( udg_ItemBomb, GetTriggerUnit() )
call DisplayTextToForce( GetPlayersAll(), ( "|cffFF0000" + ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has received the bomb!" ) ) )
call SetUnitPositionLoc( GetTriggerUnit(), GetRandomLocInRect(gg_rct_Inside_Walls) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), 0.10 )
endfunction
//===========================================================================
function InitTrig_Out_of_Bounds takes nothing returns nothing
set gg_trg_Out_of_Bounds = CreateTrigger( )
call TriggerRegisterLeaveRectSimple( gg_trg_Out_of_Bounds, gg_rct_Inside_Walls )
call TriggerAddCondition( gg_trg_Out_of_Bounds, Condition( function Trig_Out_of_Bounds_Conditions ) )
call TriggerAddAction( gg_trg_Out_of_Bounds, function Trig_Out_of_Bounds_Actions )
endfunction
function Trig_Bomb_Text_Func001001002 takes nothing returns boolean
return ( UnitHasItem(GetFilterUnit(), udg_ItemBomb) == true )
endfunction
function Trig_Bomb_Text_Func001Func001001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) > 10.00 )
endfunction
function Trig_Bomb_Text_Func001Func002001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 10.00 )
endfunction
function Trig_Bomb_Text_Func001Func003001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 9.00 )
endfunction
function Trig_Bomb_Text_Func001Func004001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 8.00 )
endfunction
function Trig_Bomb_Text_Func001Func005001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 7.00 )
endfunction
function Trig_Bomb_Text_Func001Func006001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 6.00 )
endfunction
function Trig_Bomb_Text_Func001Func007001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 5.00 )
endfunction
function Trig_Bomb_Text_Func001Func008001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 4.00 )
endfunction
function Trig_Bomb_Text_Func001Func009001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 3.00 )
endfunction
function Trig_Bomb_Text_Func001Func010001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 2.00 )
endfunction
function Trig_Bomb_Text_Func001Func011001 takes nothing returns boolean
return ( TimerGetRemaining(udg_TimerBomb) < 1.00 )
endfunction
function Trig_Bomb_Text_Func001A takes nothing returns nothing
if ( Trig_Bomb_Text_Func001Func001001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 100.00, 100.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func002001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 90.00, 90.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func003001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 80.00, 80.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func004001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 70.00, 70.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func005001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 60.00, 60.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func006001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 50.00, 50.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func007001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 40.00, 40.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func008001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 30.00, 30.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func009001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 20.00, 20.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func010001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 10.00, 10.00, 0 )
else
call DoNothing( )
endif
if ( Trig_Bomb_Text_Func001Func011001() ) then
call SetTextTagColorBJ( udg_FTextBomb, 100, 0.00, 0.00, 0 )
else
call DoNothing( )
endif
call SetTextTagPosUnitBJ( udg_FTextBomb, GetEnumUnit(), 0 )
call SetTextTagTextBJ( udg_FTextBomb, ( I2S(R2I(( TimerGetRemaining(udg_TimerBomb) + 0.33 ))) + "!" ), 14.00 )
call PingMinimapLocForForceEx( GetPlayersAll(), GetUnitLoc(GetEnumUnit()), 0.50, bj_MINIMAPPINGSTYLE_SIMPLE, 100, 0.00, 0.00 )
endfunction
function Trig_Bomb_Text_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Bomb_Text_Func001001002)), function Trig_Bomb_Text_Func001A )
endfunction
//===========================================================================
function InitTrig_Bomb_Text takes nothing returns nothing
set gg_trg_Bomb_Text = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Bomb_Text, 0.02 )
call TriggerAddAction( gg_trg_Bomb_Text, function Trig_Bomb_Text_Actions )
endfunction
function Trig_Ticking_and_Animation_Func001001002 takes nothing returns boolean
return ( UnitHasItem(GetFilterUnit(), udg_ItemBomb) == true )
endfunction
function Trig_Ticking_and_Animation_Func001A takes nothing returns nothing
call SetUnitTimeScalePercent( GetEnumUnit(), 200.00 )
endfunction
function Trig_Ticking_and_Animation_Func002001002 takes nothing returns boolean
return ( UnitHasItem(GetFilterUnit(), udg_ItemBomb) == false )
endfunction
function Trig_Ticking_and_Animation_Func002A takes nothing returns nothing
call SetUnitTimeScalePercent( GetEnumUnit(), 100.00 )
endfunction
function Trig_Ticking_and_Animation_Func003Func003001001002 takes nothing returns boolean
return ( UnitHasItem(GetFilterUnit(), udg_ItemBomb) == true )
endfunction
function Trig_Ticking_and_Animation_Func003C takes nothing returns boolean
if ( not ( TimerGetRemaining(udg_TimerBomb) > 0.10 ) ) then
return false
endif
if ( not ( CountUnitsInGroup(GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Ticking_and_Animation_Func003Func003001001002))) != 0 ) ) then
return false
endif
return true
endfunction
function Trig_Ticking_and_Animation_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Ticking_and_Animation_Func001001002)), function Trig_Ticking_and_Animation_Func001A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Ticking_and_Animation_Func002001002)), function Trig_Ticking_and_Animation_Func002A )
if ( Trig_Ticking_and_Animation_Func003C() ) then
call PlaySoundBJ( gg_snd_BattleNetTick01 )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Ticking_and_Animation takes nothing returns nothing
set gg_trg_Ticking_and_Animation = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ticking_and_Animation, 1.00 )
call TriggerAddAction( gg_trg_Ticking_and_Animation, function Trig_Ticking_and_Animation_Actions )
endfunction
function Trig_Ending_Actions takes nothing returns nothing
call CreateNUnitsAtLoc( 1, 'h000', Player(PLAYER_NEUTRAL_PASSIVE), GetRandomLocInRect(gg_rct_Inside_Walls), bj_UNIT_FACING )
call SetUnitTimeScalePercent( GetLastCreatedUnit(), 50.00 )
call KillUnit( GetLastCreatedUnit() )
call PlaySoundBJ( gg_snd_ArtilleryCorpseExplodeDeath1 )
endfunction
//===========================================================================
function InitTrig_Ending takes nothing returns nothing
set gg_trg_Ending = CreateTrigger( )
call DisableTrigger( gg_trg_Ending )
call TriggerRegisterTimerEventPeriodic( gg_trg_Ending, 2 )
call TriggerAddAction( gg_trg_Ending, function Trig_Ending_Actions )
endfunction
function Trig_Random_Events_Destroy_Func019A takes nothing returns nothing
call RemoveDestructable( GetEnumDestructable() )
endfunction
function Trig_Random_Events_Destroy_Func020001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Destroy_Func020Func001001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A001', GetEnumUnit()) == 0 )
endfunction
function Trig_Random_Events_Destroy_Func020Func002001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A005', GetEnumUnit()) == 0 )
endfunction
function Trig_Random_Events_Destroy_Func020Func003001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A005', GetEnumUnit()) != 1 )
endfunction
function Trig_Random_Events_Destroy_Func020Func004001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A001', GetEnumUnit()) != 1 )
endfunction
function Trig_Random_Events_Destroy_Func020Func005001 takes nothing returns boolean
return ( GetUnitAbilityLevelSwapped('A000', GetEnumUnit()) == 1 )
endfunction
function Trig_Random_Events_Destroy_Func020A takes nothing returns nothing
if ( Trig_Random_Events_Destroy_Func020Func001001() ) then
call UnitAddAbilityBJ( 'A001', GetEnumUnit() )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Destroy_Func020Func002001() ) then
call UnitAddAbilityBJ( 'A005', GetEnumUnit() )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Destroy_Func020Func003001() ) then
call SetUnitAbilityLevelSwapped( 'A005', GetEnumUnit(), 1 )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Destroy_Func020Func004001() ) then
call SetUnitAbilityLevelSwapped( 'A001', GetEnumUnit(), 1 )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Destroy_Func020Func005001() ) then
call UnitRemoveAbilityBJ( 'A000', GetEnumUnit() )
else
call DoNothing( )
endif
call SetUnitPathing( GetEnumUnit(), true )
call UnitRemoveAbilityBJ( 'A007', GetEnumUnit() )
call UnitRemoveAbilityBJ( 'A008', GetEnumUnit() )
endfunction
function Trig_Random_Events_Destroy_Actions takes nothing returns nothing
set bj_forLoopAIndex = 0
set bj_forLoopAIndexEnd = 3
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call DestroyEffectBJ( udg_SETeleport[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call EnableTrigger( gg_trg_Reverse_Snow_Mode )
call EnableTrigger( gg_trg_Bomb_Text )
call DisableTrigger( gg_trg_Forest_Mode )
call DisableTrigger( gg_trg_Snow_Mode )
call ShowTextTagForceBJ( true, udg_FTextBomb, GetPlayersAll() )
call DisableTrigger( gg_trg_Tele1 )
call DisableTrigger( gg_trg_Tele2 )
call DisableTrigger( gg_trg_Tele3 )
call DisableTrigger( gg_trg_Tele4 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call FogModifierStart( udg_VModAll[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
call SetTimeOfDay( 0.00 )
call SetSkyModel( "Environment\\Sky\\LordaeronFallSky\\LordaeronFallSky.mdl" )
call RemoveWeatherEffectBJ( udg_Weather1 )
call AddWeatherEffectSaveLast( GetEntireMapRect(), 'RAlr' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Weather1 = GetLastCreatedWeatherEffect()
call EnumDestructablesInRectAll( gg_rct_Inside_Walls, function Trig_Random_Events_Destroy_Func019A )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Destroy_Func020001002)), function Trig_Random_Events_Destroy_Func020A )
endfunction
//===========================================================================
function InitTrig_Random_Events_Destroy takes nothing returns nothing
set gg_trg_Random_Events_Destroy = CreateTrigger( )
call TriggerAddAction( gg_trg_Random_Events_Destroy, function Trig_Random_Events_Destroy_Actions )
endfunction
function Trig_Random_Events_Func002Func001001 takes nothing returns boolean
return ( udg_IntRandom == udg_IntRepeat )
endfunction
function Trig_Random_Events_Func002Func002001 takes nothing returns boolean
return ( udg_IntRandom == udg_IntRepeat )
endfunction
function Trig_Random_Events_Func002Func003001 takes nothing returns boolean
return ( udg_IntRandom == udg_IntRepeat )
endfunction
function Trig_Random_Events_Func002Func004001 takes nothing returns boolean
return ( udg_IntRandom == udg_IntRepeat )
endfunction
function Trig_Random_Events_Func003Func007001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Func003Func007A takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A005', GetEnumUnit(), 2 )
call UnitRemoveAbilityBJ( 'A001', GetEnumUnit() )
endfunction
function Trig_Random_Events_Func003C takes nothing returns boolean
if ( not ( udg_IntRandom == 2 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func004Func007001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Func004Func007A takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A001', GetEnumUnit(), 2 )
endfunction
function Trig_Random_Events_Func004C takes nothing returns boolean
if ( not ( udg_IntRandom == 3 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func005Func007001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Func005Func007A takes nothing returns nothing
call UnitRemoveAbilityBJ( 'A001', GetEnumUnit() )
call UnitAddAbilityBJ( 'A007', GetEnumUnit() )
endfunction
function Trig_Random_Events_Func005C takes nothing returns boolean
if ( not ( udg_IntRandom == 4 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func006Func007001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Func006Func007A takes nothing returns nothing
call UnitAddAbilityBJ( 'A008', GetEnumUnit() )
call SetUnitAbilityLevelSwapped( 'A005', GetEnumUnit(), 3 )
endfunction
function Trig_Random_Events_Func006C takes nothing returns boolean
if ( not ( udg_IntRandom == 5 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func007Func006001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Func007Func006A takes nothing returns nothing
call SetUnitPathing( GetEnumUnit(), false )
endfunction
function Trig_Random_Events_Func007C takes nothing returns boolean
if ( not ( udg_IntRandom == 6 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func008C takes nothing returns boolean
if ( not ( udg_IntRandom == 7 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func009C takes nothing returns boolean
if ( not ( udg_IntRandom == 8 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func010C takes nothing returns boolean
if ( not ( udg_IntRandom == 9 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Func011Func025001002 takes nothing returns boolean
return ( GetUnitTypeId(GetFilterUnit()) == 'Ntin' )
endfunction
function Trig_Random_Events_Func011Func025A takes nothing returns nothing
call SetUnitAbilityLevelSwapped( 'A001', GetEnumUnit(), 2 )
call SetUnitAbilityLevelSwapped( 'A005', GetEnumUnit(), 2 )
call UnitAddAbilityBJ( 'A008', GetEnumUnit() )
endfunction
function Trig_Random_Events_Func011C takes nothing returns boolean
if ( not ( udg_IntRandom == 10 ) ) then
return false
endif
return true
endfunction
function Trig_Random_Events_Actions takes nothing returns nothing
set udg_IntRandom = GetRandomInt(2, 11)
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 10
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
if ( Trig_Random_Events_Func002Func001001() ) then
set udg_IntRandom = GetRandomInt(2, 11)
else
set udg_IntRepeat = udg_IntRandom
endif
if ( Trig_Random_Events_Func002Func002001() ) then
set udg_IntRandom = GetRandomInt(2, 11)
else
set udg_IntRepeat = udg_IntRandom
endif
if ( Trig_Random_Events_Func002Func003001() ) then
set udg_IntRandom = GetRandomInt(2, 11)
else
set udg_IntRepeat = udg_IntRandom
endif
if ( Trig_Random_Events_Func002Func004001() ) then
set udg_IntRandom = GetRandomInt(2, 11)
else
set udg_IntRepeat = udg_IntRandom
endif
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
if ( Trig_Random_Events_Func003C() ) then
call CreateTextTagLocBJ( "TRIGSTR_148", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Func003Func007001002)), function Trig_Random_Events_Func003Func007A )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func004C() ) then
call CreateTextTagLocBJ( "TRIGSTR_147", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Func004Func007001002)), function Trig_Random_Events_Func004Func007A )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func005C() ) then
call CreateTextTagLocBJ( "TRIGSTR_174", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Func005Func007001002)), function Trig_Random_Events_Func005Func007A )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func006C() ) then
call CreateTextTagLocBJ( "TRIGSTR_175", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Func006Func007001002)), function Trig_Random_Events_Func006Func007A )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func007C() ) then
call CreateTextTagLocBJ( "TRIGSTR_181", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Func007Func006001002)), function Trig_Random_Events_Func007Func006A )
call EnableTrigger( gg_trg_Forest_Mode )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func008C() ) then
call CreateTextTagLocBJ( "TRIGSTR_182", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call DestroyTextTagBJ( udg_FTextBomb )
call DisableTrigger( gg_trg_Bomb_Text )
call SetTimeOfDay( 24.00 )
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 12
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call FogModifierStop( udg_VModAll[GetForLoopIndexA()] )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func009C() ) then
call CreateTextTagLocBJ( "TRIGSTR_183", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele1), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[0] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele2), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[1] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele3), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[2] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele4), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[3] = GetLastCreatedEffectBJ()
call EnableTrigger( gg_trg_Tele1 )
call EnableTrigger( gg_trg_Tele2 )
call EnableTrigger( gg_trg_Tele3 )
call EnableTrigger( gg_trg_Tele4 )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func010C() ) then
call CreateTextTagLocBJ( "TRIGSTR_184", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call SetSkyModel( "Environment\\Sky\\BlizzardSky\\BlizzardSky.mdl" )
call RemoveWeatherEffectBJ( udg_Weather1 )
call AddWeatherEffectSaveLast( GetPlayableMapRect(), 'SNhs' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Weather1 = GetLastCreatedWeatherEffect()
call DisableTrigger( gg_trg_Reverse_Snow_Mode )
call EnableTrigger( gg_trg_Snow_Mode )
else
call DoNothing( )
endif
if ( Trig_Random_Events_Func011C() ) then
call CreateTextTagLocBJ( "TRIGSTR_204", GetRectCenter(gg_rct_Inside_Walls), 0, 20.00, 100, 85.00, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 9.00, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5.00 )
call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 4.00 )
call SetSkyModel( "Environment\\Sky\\BlizzardSky\\BlizzardSky.mdl" )
call RemoveWeatherEffectBJ( udg_Weather1 )
call AddWeatherEffectSaveLast( GetPlayableMapRect(), 'SNhs' )
call EnableWeatherEffect( GetLastCreatedWeatherEffect(), true )
set udg_Weather1 = GetLastCreatedWeatherEffect()
call DisableTrigger( gg_trg_Reverse_Snow_Mode )
call EnableTrigger( gg_trg_Snow_Mode )
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele1), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[0] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele2), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[1] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele3), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[2] = GetLastCreatedEffectBJ()
call AddSpecialEffectLocBJ( GetRectCenter(gg_rct_Tele4), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )
set udg_SETeleport[3] = GetLastCreatedEffectBJ()
call EnableTrigger( gg_trg_Tele1 )
call EnableTrigger( gg_trg_Tele2 )
call EnableTrigger( gg_trg_Tele3 )
call EnableTrigger( gg_trg_Tele4 )
call ForGroupBJ( GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Random_Events_Func011Func025001002)), function Trig_Random_Events_Func011Func025A )
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Random_Events takes nothing returns nothing
set gg_trg_Random_Events = CreateTrigger( )
call TriggerAddAction( gg_trg_Random_Events, function Trig_Random_Events_Actions )
endfunction
function Trig_Forest_Mode_Actions takes nothing returns nothing
call CreateDestructableLoc( 'FTtw', GetRandomLocInRect(gg_rct_Inside_Walls), GetRandomDirectionDeg(), GetRandomReal(1.00, 1.50), GetRandomInt(1, 10) )
call SetDestructableAnimationBJ( GetLastCreatedDestructable(), "birth" )
endfunction
//===========================================================================
function InitTrig_Forest_Mode takes nothing returns nothing
set gg_trg_Forest_Mode = CreateTrigger( )
call DisableTrigger( gg_trg_Forest_Mode )
call TriggerRegisterTimerEventPeriodic( gg_trg_Forest_Mode, 0.33 )
call TriggerAddAction( gg_trg_Forest_Mode, function Trig_Forest_Mode_Actions )
endfunction
function Trig_Snow_Mode_Func002002002 takes nothing returns boolean
return ( GetDestructableTypeId(GetFilterDestructable()) == 'FTtw' )
endfunction
function Trig_Snow_Mode_Func008Func001C takes nothing returns boolean
if ( not ( GetLastCreatedDestructable() == GetEnumDestructable() ) ) then
return false
endif
if ( not ( GetDestructableTypeId(GetLastCreatedDestructable()) == 'WTst' ) ) then
return false
endif
return true
endfunction
function Trig_Snow_Mode_Func008A takes nothing returns nothing
if ( Trig_Snow_Mode_Func008Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveDestructable( GetLastCreatedDestructable() )
else
endif
endfunction
function Trig_Snow_Mode_Actions takes nothing returns nothing
set udg_DestructTree = RandomDestructableInRectBJ(GetEntireMapRect(), Condition(function Trig_Snow_Mode_Func002002002))
set udg_PointTree = GetDestructableLoc(udg_DestructTree)
call AddSpecialEffectLocBJ( udg_PointTree, "Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveDestructable( udg_DestructTree )
call CreateDestructableLoc( 'WTst', udg_PointTree, GetRandomDirectionDeg(), GetRandomReal(1.00, 1.50), GetRandomInt(1, 10) )
call EnumDestructablesInRectAll( gg_rct_Inside_Walls, function Trig_Snow_Mode_Func008A )
endfunction
//===========================================================================
function InitTrig_Snow_Mode takes nothing returns nothing
set gg_trg_Snow_Mode = CreateTrigger( )
call DisableTrigger( gg_trg_Snow_Mode )
call TriggerRegisterTimerEventPeriodic( gg_trg_Snow_Mode, 0.17 )
call TriggerAddAction( gg_trg_Snow_Mode, function Trig_Snow_Mode_Actions )
endfunction
function Trig_Reverse_Snow_Mode_Func001002002 takes nothing returns boolean
return ( GetDestructableTypeId(GetFilterDestructable()) == 'WTst' )
endfunction
function Trig_Reverse_Snow_Mode_Func007Func001C takes nothing returns boolean
if ( not ( GetLastCreatedDestructable() == GetEnumDestructable() ) ) then
return false
endif
if ( not ( GetDestructableTypeId(GetLastCreatedDestructable()) == 'FTtw' ) ) then
return false
endif
return true
endfunction
function Trig_Reverse_Snow_Mode_Func007A takes nothing returns nothing
if ( Trig_Reverse_Snow_Mode_Func007Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call RemoveDestructable( GetLastCreatedDestructable() )
else
endif
endfunction
function Trig_Reverse_Snow_Mode_Actions takes nothing returns nothing
set udg_DestructTree = RandomDestructableInRectBJ(GetEntireMapRect(), Condition(function Trig_Reverse_Snow_Mode_Func001002002))
set udg_PointTree = GetDestructableLoc(udg_DestructTree)
call AddSpecialEffectLocBJ( udg_PointTree, "Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call RemoveDestructable( udg_DestructTree )
call CreateDestructableLoc( 'FTtw', udg_PointTree, GetRandomDirectionDeg(), GetRandomReal(1.00, 1.50), GetRandomInt(1, 10) )
call EnumDestructablesInRectAll( gg_rct_Inside_Walls, function Trig_Reverse_Snow_Mode_Func007A )
endfunction
//===========================================================================
function InitTrig_Reverse_Snow_Mode takes nothing returns nothing
set gg_trg_Reverse_Snow_Mode = CreateTrigger( )
call DisableTrigger( gg_trg_Reverse_Snow_Mode )
call TriggerRegisterTimerEventPeriodic( gg_trg_Reverse_Snow_Mode, 0.17 )
call TriggerAddAction( gg_trg_Reverse_Snow_Mode, function Trig_Reverse_Snow_Mode_Actions )
endfunction
function Trig_Tele1_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ntin' ) ) then
return false
endif
return true
endfunction
function Trig_Tele1_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), PolarProjectionBJ(GetRectCenter(gg_rct_Tele2), 175.00, 90.00) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), 0.10 )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Tele1 takes nothing returns nothing
set gg_trg_Tele1 = CreateTrigger( )
call DisableTrigger( gg_trg_Tele1 )
call TriggerRegisterEnterRectSimple( gg_trg_Tele1, gg_rct_Tele1 )
call TriggerAddCondition( gg_trg_Tele1, Condition( function Trig_Tele1_Conditions ) )
call TriggerAddAction( gg_trg_Tele1, function Trig_Tele1_Actions )
endfunction
function Trig_Tele2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ntin' ) ) then
return false
endif
return true
endfunction
function Trig_Tele2_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), PolarProjectionBJ(GetRectCenter(gg_rct_Tele1), 175.00, 270.00) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), 0.10 )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Tele2 takes nothing returns nothing
set gg_trg_Tele2 = CreateTrigger( )
call DisableTrigger( gg_trg_Tele2 )
call TriggerRegisterEnterRectSimple( gg_trg_Tele2, gg_rct_Tele2 )
call TriggerAddCondition( gg_trg_Tele2, Condition( function Trig_Tele2_Conditions ) )
call TriggerAddAction( gg_trg_Tele2, function Trig_Tele2_Actions )
endfunction
function Trig_Tele3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ntin' ) ) then
return false
endif
return true
endfunction
function Trig_Tele3_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), PolarProjectionBJ(GetRectCenter(gg_rct_Tele4), 175.00, 180.00) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), 0.10 )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Tele3 takes nothing returns nothing
set gg_trg_Tele3 = CreateTrigger( )
call DisableTrigger( gg_trg_Tele3 )
call TriggerRegisterEnterRectSimple( gg_trg_Tele3, gg_rct_Tele3 )
call TriggerAddCondition( gg_trg_Tele3, Condition( function Trig_Tele3_Conditions ) )
call TriggerAddAction( gg_trg_Tele3, function Trig_Tele3_Actions )
endfunction
function Trig_Tele4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ntin' ) ) then
return false
endif
return true
endfunction
function Trig_Tele4_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetTriggerUnit(), PolarProjectionBJ(GetRectCenter(gg_rct_Tele3), 175.00, 0.00) )
call PanCameraToTimedLocForPlayer( GetOwningPlayer(GetTriggerUnit()), GetUnitLoc(GetTriggerUnit()), 0.10 )
call AddSpecialEffectTargetUnitBJ( "origin", GetTriggerUnit(), "Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endfunction
//===========================================================================
function InitTrig_Tele4 takes nothing returns nothing
set gg_trg_Tele4 = CreateTrigger( )
call DisableTrigger( gg_trg_Tele4 )
call TriggerRegisterEnterRectSimple( gg_trg_Tele4, gg_rct_Tele4 )
call TriggerAddCondition( gg_trg_Tele4, Condition( function Trig_Tele4_Conditions ) )
call TriggerAddAction( gg_trg_Tele4, function Trig_Tele4_Actions )
endfunction
function Trig_Add_Damage_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetTriggerUnit()) == 'Ntin' ) ) then
return false
endif
return true
endfunction
function Trig_Add_Damage_Actions takes nothing returns nothing
call TriggerRegisterUnitEvent( gg_trg_Damage_Text, GetTriggerUnit(), EVENT_UNIT_DAMAGED )
endfunction
//===========================================================================
function InitTrig_Add_Damage takes nothing returns nothing
set gg_trg_Add_Damage = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Add_Damage, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_Add_Damage, Condition( function Trig_Add_Damage_Conditions ) )
call TriggerAddAction( gg_trg_Add_Damage, function Trig_Add_Damage_Actions )
endfunction
function Trig_Damage_Text_Func001Func009001 takes nothing returns boolean
return ( udg_IntSound2 == 1 )
endfunction
function Trig_Damage_Text_Func001Func010001 takes nothing returns boolean
return ( udg_IntSound2 == 2 )
endfunction
function Trig_Damage_Text_Func001Func011001 takes nothing returns boolean
return ( udg_IntSound2 == 3 )
endfunction
function Trig_Damage_Text_Func001Func012001 takes nothing returns boolean
return ( udg_IntSound2 == 4 )
endfunction
function Trig_Damage_Text_Func001Func013001 takes nothing returns boolean
return ( udg_IntSound2 == 5 )
endfunction
function Trig_Damage_Text_Func001Func014001 takes nothing returns boolean
return ( udg_IntSound2 == 6 )
endfunction
function Trig_Damage_Text_Func001Func015001 takes nothing returns boolean
return ( udg_IntSound2 == 7 )
endfunction
function Trig_Damage_Text_Func001Func016001 takes nothing returns boolean
return ( udg_IntSound2 == 8 )
endfunction
function Trig_Damage_Text_Func001Func017001 takes nothing returns boolean
return ( udg_IntSound2 == 9 )
endfunction
function Trig_Damage_Text_Func001Func018001 takes nothing returns boolean
return ( udg_IntSound2 == 10 )
endfunction
function Trig_Damage_Text_Func001Func019001 takes nothing returns boolean
return ( udg_IntSound2 == 11 )
endfunction
function Trig_Damage_Text_Func001Func020001 takes nothing returns boolean
return ( udg_IntSound2 == 12 )
endfunction
function Trig_Damage_Text_Func001Func021001 takes nothing returns boolean
return ( udg_IntSound2 == 13 )
endfunction
function Trig_Damage_Text_Func001C takes nothing returns boolean
if ( not ( GetEventDamage() == 0.00 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(GetEventDamageSource(), 'I000') == true ) ) then
return false
endif
return true
endfunction
function Trig_Damage_Text_Actions takes nothing returns nothing
if ( Trig_Damage_Text_Func001C() ) then
call ClearTextMessagesBJ( GetPlayersAll() )
call DestroyEffectBJ( udg_SEBomb )
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(), "Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl" )
set udg_SEBomb = GetLastCreatedEffectBJ()
call UnitAddItemSwapped( udg_ItemBomb, GetTriggerUnit() )
call DisplayTextToForce( GetPlayersAll(), ( "|cffFF0000" + ( GetPlayerName(GetOwningPlayer(GetTriggerUnit())) + " has received the bomb!" ) ) )
set udg_IntSound2 = GetRandomInt(1, 13)
if ( Trig_Damage_Text_Func001Func009001() ) then
call PlaySoundBJ( gg_snd_a1 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func010001() ) then
call PlaySoundBJ( gg_snd_a2 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func011001() ) then
call PlaySoundBJ( gg_snd_a3 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func012001() ) then
call PlaySoundBJ( gg_snd_a4 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func013001() ) then
call PlaySoundBJ( gg_snd_a5 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func014001() ) then
call PlaySoundBJ( gg_snd_a6 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func015001() ) then
call PlaySoundBJ( gg_snd_a7 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func016001() ) then
call PlaySoundBJ( gg_snd_a8 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func017001() ) then
call PlaySoundBJ( gg_snd_a9 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func018001() ) then
call PlaySoundBJ( gg_snd_a10 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func019001() ) then
call PlaySoundBJ( gg_snd_a11 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func020001() ) then
call PlaySoundBJ( gg_snd_a12 )
else
call DoNothing( )
endif
if ( Trig_Damage_Text_Func001Func021001() ) then
call PlaySoundBJ( gg_snd_a13 )
else
call DoNothing( )
endif
else
call DoNothing( )
endif
endfunction
//===========================================================================
function InitTrig_Damage_Text takes nothing returns nothing
set gg_trg_Damage_Text = CreateTrigger( )
call TriggerAddAction( gg_trg_Damage_Text, function Trig_Damage_Text_Actions )
endfunction
function Trig_Switch_Places_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A007' ) ) then
return false
endif
return true
endfunction
function Trig_Switch_Places_Actions takes nothing returns nothing
local unit cc=GetTriggerUnit()
local unit tt=GetSpellTargetUnit()
local location c=GetUnitLoc(GetTriggerUnit())
local location t=GetUnitLoc(GetSpellTargetUnit())
call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 0.30, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 100.00, 100.00, 100.00, 0 )
call PolledWait(0.01)
call PlaySoundAtPointBJ( gg_snd_LightningBolt, 100, GetUnitLoc(cc), 0 )
call SetUnitPositionLoc( cc, t )
call SetUnitPositionLoc( tt, c )
endfunction
//===========================================================================
function InitTrig_Switch_Places takes nothing returns nothing
set gg_trg_Switch_Places = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Switch_Places, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_Switch_Places, Condition( function Trig_Switch_Places_Conditions ) )
call TriggerAddAction( gg_trg_Switch_Places, function Trig_Switch_Places_Actions )
endfunction
function Trig_music_Actions takes nothing returns nothing
call PlaySoundBJ( gg_snd_1231 )
endfunction
//===========================================================================
function InitTrig_Music_Trigger takes nothing returns nothing
set gg_trg_Music_Trigger = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Music_Trigger, Player(0), "?qwerty", false )
call TriggerAddAction( gg_trg_Music_Trigger, function Trig_music_Actions )
endfunction