|
|
我要把黑夜那波的BOSS改成大菠萝和大黑!怎么改,单位是否要改ID
function Wave8c takes nothing returns nothing
local integer i = 1
local integer diablofactor = 75
local trigger t = CreateTrigger()
local location l = GetRandomLocInRect(udg_PlayerSpawnBoundary)
set udg_CurrentWave = 8
call ExecuteFunc("GenericActions")
set udg_FuelEfficiency[777] = 1337
call DisableTrigger(gg_trg_AI_Neutral_Victim)
if udg_SquadXP>40000 then
set diablofactor = 20
endif
if udg_InitialPlayers>2 and GetRandomInt(0,diablofactor)==1 then
set udg_Boss = CreateUnitAtLoc(Player(13),'U00J',l,0) //Diablo
else
set udg_Boss = CreateUnitAtLoc(Player(13),'U00H',l,0) //Hades
endif
call TriggerRegisterTimerEvent(gg_trg_Snatch,35.0,true)
call TriggerRegisterUnitEvent( t, udg_Boss, EVENT_UNIT_DEATH )
call TriggerAddAction( t, function SnatcherKilled )
set t = CreateTrigger()
call TriggerRegisterTimerEvent( t, 8.0,true )
call TriggerAddAction( t, function SnatcherAI )
set t = null
call SuspendHeroXP(udg_Boss,true)
call RemoveLocation(l)
set l = null
call StartSound(gg_snd_MoiraeDeath)
call PolledWait(5.)
set i = GetRandomInt(1, udg_Players)
call FieldChat(udg_Hero[udg_Sorted], 5.0, udg_Pcolors[udg_Sorted] + GetPlayerName(ConvertedPlayer(udg_Sorted)) + "|r : 都听见了么?" )
call PolledWait(5.)
call ExecuteFunc("LightningAmbience")
call PolledWait(2.5)
set i = GetRandomInt(1, udg_Players)
call FieldChat(udg_Hero[udg_Sorted], 5.0, udg_Pcolors[udg_Sorted] + GetPlayerName(ConvertedPlayer(udg_Sorted)) + "r : 无论它是什么, 它就要来了." )
call PolledWait(8.0*udg_Pace)
call StartSound(udg_Ambience[1])
call PolledWait(80.0*udg_Pace)
call StartSound(udg_Ambience[2])
call PolledWait(8.0*udg_Pace)
call StartSound(udg_Ambience[1])
endfunction |
|