respawn timer trigger problems

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

darkxion
Member
Posts: 57
Joined: April 26th, 2007, 7:53 pm

respawn timer trigger problems

Post by darkxion »

This respawn timer is currently set for 2 seconds per level. I want to change it to 1.5 seconds per level, but I'm getting some errors and it disables the trigger. Any help would be awesome. ^_^; I'm a JASS noob and it's probably something simple =(

Spoiler:

Code: Select all

function Trig_Dies_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==GetOwningPlayer(GetKillingUnitBJ())))then
return false
endif
return true
endfunction

function Trig_Dies_Func002Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(5)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(11)))then
return false
endif
return true
endfunction

function Trig_Dies_Func002C takes nothing returns boolean
if(not(IsPlayerAlly(GetOwningPlayer(GetDyingUnit()),GetOwningPlayer(GetKillingUnitBJ()))==true))then
return false
endif
return true
endfunction

function Trig_Dies_Func003C takes nothing returns boolean
if(not(GetDyingUnit()==udg_Limber))then
return false
endif
return true
endfunction

function Trig_Dies_Func004Func010C takes nothing returns boolean
if(not(udg_Random==1))then
return false
endif
return true
endfunction

function Trig_Dies_Func004Func011C takes nothing returns boolean
if(not(udg_Random==2))then
return false
endif
return true
endfunction

function Trig_Dies_Func004Func012C takes nothing returns boolean
if(not(udg_Random==3))then
return false
endif
return true
endfunction

function Trig_Dies_Func004Func013C takes nothing returns boolean
if(not(udg_Random==4))then
return false
endif
return true
endfunction

function Trig_Dies_Func004Func014C takes nothing returns boolean
if(not(udg_Random==5))then
return false
endif
return true
endfunction

function Trig_Dies_Func004Func015C takes nothing returns boolean
if(not(udg_Random==6))then
return false
endif
return true
endfunction

function Trig_Dies_Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(5)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(11)))then
return false
endif
if(not(GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
return true
endfunction

function Trig_Dies_Func005C takes nothing returns boolean
if(not(GetDyingUnit()==udg_TransmuteHero))then
return false
endif
return true
endfunction

function Trig_Dies_Func017Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return false
endif
return true
endfunction

function Trig_Dies_Func017Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return false
endif
return true
endfunction

function Trig_Dies_Func017Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(8)))then
return false
endif
return true
endfunction

function Trig_Dies_Func017Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(9)))then
return false
endif
return true
endfunction

function Trig_Dies_Func017Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(10)))then
return false
endif
return true
endfunction

function Trig_Dies_Func017Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(0)))then
return true
endif
return false
endfunction

function Trig_Dies_Func017C takes nothing returns boolean
if(not Trig_Dies_Func017Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func018Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return false
endif
return true
endfunction

function Trig_Dies_Func018Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return false
endif
return true
endfunction

function Trig_Dies_Func018Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(8)))then
return false
endif
return true
endfunction

function Trig_Dies_Func018Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(9)))then
return false
endif
return true
endfunction

function Trig_Dies_Func018Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(10)))then
return false
endif
return true
endfunction

function Trig_Dies_Func018Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(1)))then
return true
endif
return false
endfunction

function Trig_Dies_Func018C takes nothing returns boolean
if(not Trig_Dies_Func018Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func019Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return false
endif
return true
endfunction

function Trig_Dies_Func019Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return false
endif
return true
endfunction

function Trig_Dies_Func019Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(8)))then
return false
endif
return true
endfunction

function Trig_Dies_Func019Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(9)))then
return false
endif
return true
endfunction

function Trig_Dies_Func019Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(10)))then
return false
endif
return true
endfunction

function Trig_Dies_Func019Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(2)))then
return true
endif
return false
endfunction

function Trig_Dies_Func019C takes nothing returns boolean
if(not Trig_Dies_Func019Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func020Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return false
endif
return true
endfunction

function Trig_Dies_Func020Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return false
endif
return true
endfunction

function Trig_Dies_Func020Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(8)))then
return false
endif
return true
endfunction

function Trig_Dies_Func020Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(9)))then
return false
endif
return true
endfunction

function Trig_Dies_Func020Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(10)))then
return false
endif
return true
endfunction

function Trig_Dies_Func020Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(3)))then
return true
endif
return false
endfunction

function Trig_Dies_Func020C takes nothing returns boolean
if(not Trig_Dies_Func020Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func021Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(6)))then
return false
endif
return true
endfunction

function Trig_Dies_Func021Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(7)))then
return false
endif
return true
endfunction

function Trig_Dies_Func021Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(8)))then
return false
endif
return true
endfunction

function Trig_Dies_Func021Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(9)))then
return false
endif
return true
endfunction

function Trig_Dies_Func021Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(10)))then
return false
endif
return true
endfunction

function Trig_Dies_Func021Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(4)))then
return true
endif
return false
endfunction

function Trig_Dies_Func021C takes nothing returns boolean
if(not Trig_Dies_Func021Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func022Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction

function Trig_Dies_Func022Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction

function Trig_Dies_Func022Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction

function Trig_Dies_Func022Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction

function Trig_Dies_Func022Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction

function Trig_Dies_Func022Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(6)))then
return true
endif
return false
endfunction

function Trig_Dies_Func022C takes nothing returns boolean
if(not Trig_Dies_Func022Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func023Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction

function Trig_Dies_Func023Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction

function Trig_Dies_Func023Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction

function Trig_Dies_Func023Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction

function Trig_Dies_Func023Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction

function Trig_Dies_Func023Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(7)))then
return true
endif
return false
endfunction

function Trig_Dies_Func023C takes nothing returns boolean
if(not Trig_Dies_Func023Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func024Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction

function Trig_Dies_Func024Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction

function Trig_Dies_Func024Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction

function Trig_Dies_Func024Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction

function Trig_Dies_Func024Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction

function Trig_Dies_Func024Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(8)))then
return true
endif
return false
endfunction

function Trig_Dies_Func024C takes nothing returns boolean
if(not Trig_Dies_Func024Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func025Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction

function Trig_Dies_Func025Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction

function Trig_Dies_Func025Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction

function Trig_Dies_Func025Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction

function Trig_Dies_Func025Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction

function Trig_Dies_Func025Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(9)))then
return true
endif
return false
endfunction

function Trig_Dies_Func025C takes nothing returns boolean
if(not Trig_Dies_Func025Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func026Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction

function Trig_Dies_Func026Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction

function Trig_Dies_Func026Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction

function Trig_Dies_Func026Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction

function Trig_Dies_Func026Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction

function Trig_Dies_Func026Func016C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(10)))then
return true
endif
return false
endfunction

function Trig_Dies_Func026C takes nothing returns boolean
if(not Trig_Dies_Func026Func016C())then
return false
endif
return true
endfunction

function Trig_Dies_Func027C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='H01I'))then
return false
endif
return true
endfunction

function Trig_Dies_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetDyingUnit())!='H022'))then
return false
endif
if(not(GetUnitTypeId(GetDyingUnit())!='U004'))then
return false
endif
if(not(GetUnitTypeId(GetDyingUnit())!='H021'))then
return false
endif
if(not(GetUnitTypeId(GetDyingUnit())!='H03B'))then
return false
endif
return true
endfunction

function Trig_Dies_Actions takes nothing returns nothing
if(Trig_Dies_Func001C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+"Has Suicided"))
else
endif
if(Trig_Dies_Func002C())then
if(Trig_Dies_Func002Func001C())then
call KillUnit(GetKillingUnitBJ())
call DisplayTextToForce(GetPlayersAll(),("This kid is a DUMBASS!"+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just killed his team-mate. Sucks for you, 'cos we're gonna give all you're gold to the dead guy, and we're gonna kill you ourselves! PWND!!!")))
call AdjustPlayerStateBJ(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD),GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,0)
else
endif
else
endif
if(Trig_Dies_Func003C())then
call SetUnitOwner(udg_Limber,udg_LimberOwner,false)
else
endif
if(Trig_Dies_Func004C())then
set udg_Random=GetRandomInt(1,6)
if(Trig_Dies_Func004Func010C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" was smooked by "+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))))
else
endif
if(Trig_Dies_Func004Func011C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" OWNED "+GetPlayerName(GetOwningPlayer(GetDyingUnit())))))
else
endif
if(Trig_Dies_Func004Func012C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" is dancing on "+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+"'s grave!"))))
else
endif
if(Trig_Dies_Func004Func013C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" kicked "+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+" in the nuts!"))))
else
endif
if(Trig_Dies_Func004Func014C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" just got h4xx0rd by "+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" lolzord!!1"))))
else
endif
if(Trig_Dies_Func004Func015C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" just got pwnt by "+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" and his l33t skillz! LOL, newb..."))))
else
endif
set udg_Random=0
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetDyingUnit())+(" wil respawn in "+(I2S((GetHeroLevel(GetDyingUnit())*2))+" seconds."))))
set udg_Random=(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)/3)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" Stole "+(I2S(udg_Random)+(" Gold from "+GetPlayerName(GetOwningPlayer(GetDyingUnit())))))))
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)-udg_Random))
call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)+udg_Random))
set udg_Random=0
else
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+" got raped by creeps!"))
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetDyingUnit())+(" wil respawn in "+(I2S((GetHeroLevel(GetDyingUnit())*2))+" seconds."))))
set udg_Random=(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)/3)
call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)-udg_Random))
set udg_Random=0
endif
if(Trig_Dies_Func005C())then
set udg_Loc1=GetUnitLoc(udg_TransmuteHero)
call SetUnitPositionLoc(udg_Transmuter,udg_Loc1)
call SetUnitOwner(udg_Transmuter,udg_TransmuterO,false)
call SetUnitOwner(udg_TransmuteHero,udg_TransmuteOwner,false)
call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,1),true)
call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,2),true)
call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,3),true)
call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,4),true)
call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,5),true)
call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,6),true)
call ShowUnitShow(udg_Transmuter)
call RemoveLocation(udg_Loc1)
set udg_TransmuteHero=null
set udg_Transmuter=null
else
endif
call IssueImmediateOrderBJ(GetDyingUnit(),"unimmolation")
call UnitRemoveAbilityBJ('A02M',GetTriggerUnit())
call UnitRemoveAbilityBJ('A031',GetTriggerUnit())
call UnitRemoveAbilityBJ('A043',GetTriggerUnit())
call UnitRemoveAbilityBJ('A04K',GetTriggerUnit())
call UnitRemoveAbilityBJ('A04O',GetTriggerUnit())
call UnitRemoveAbilityBJ('A04P',GetTriggerUnit())
call UnitRemoveAbilityBJ('A079',GetTriggerUnit())
call UnitRemoveAbilityBJ('A097',GetTriggerUnit())
call UnitRemoveAbilityBJ('A098',GetTriggerUnit())
call UnitRemoveAbilityBJ('A0BQ',GetTriggerUnit())
if(Trig_Dies_Func017C())then
set udg_P1Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P1Deaths=(udg_P1Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,1,I2S(udg_P1Deaths))
set udg_P6Deaths=(udg_P6Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
if(Trig_Dies_Func017Func006C())then
set udg_P7Kills=(udg_P7Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func017Func007C())then
set udg_P8Kills=(udg_P8Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func017Func008C())then
set udg_P9Kills=(udg_P9Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func017Func009C())then
set udg_P10Kills=(udg_P10Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func017Func010C())then
set udg_P11Kills=(udg_P11Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func018C())then
set udg_P2Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P2Deaths=(udg_P2Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,2,I2S(udg_P2Deaths))
set udg_P6Deaths=(udg_P6Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
if(Trig_Dies_Func018Func006C())then
set udg_P7Kills=(udg_P7Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func018Func007C())then
set udg_P8Kills=(udg_P8Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func018Func008C())then
set udg_P9Kills=(udg_P9Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func018Func009C())then
set udg_P10Kills=(udg_P10Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func018Func010C())then
set udg_P11Kills=(udg_P11Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func019C())then
set udg_P3Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P3Deaths=(udg_P3Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,3,I2S(udg_P3Deaths))
set udg_P6Deaths=(udg_P6Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
if(Trig_Dies_Func019Func006C())then
set udg_P7Kills=(udg_P7Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func019Func007C())then
set udg_P8Kills=(udg_P8Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func019Func008C())then
set udg_P9Kills=(udg_P9Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func019Func009C())then
set udg_P10Kills=(udg_P10Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func019Func010C())then
set udg_P11Kills=(udg_P11Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func020C())then
set udg_P4Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P4Deaths=(udg_P4Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,4,I2S(udg_P4Deaths))
set udg_P6Deaths=(udg_P6Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
if(Trig_Dies_Func020Func006C())then
set udg_P7Kills=(udg_P7Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func020Func007C())then
set udg_P8Kills=(udg_P8Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func020Func008C())then
set udg_P9Kills=(udg_P9Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func020Func009C())then
set udg_P10Kills=(udg_P10Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func020Func010C())then
set udg_P11Kills=(udg_P11Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func021C())then
set udg_P5Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P5Deaths=(udg_P5Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,5,I2S(udg_P5Deaths))
set udg_P6Deaths=(udg_P6Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
if(Trig_Dies_Func021Func006C())then
set udg_P7Kills=(udg_P7Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func021Func007C())then
set udg_P8Kills=(udg_P8Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func021Func008C())then
set udg_P9Kills=(udg_P9Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func021Func009C())then
set udg_P10Kills=(udg_P10Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
if(Trig_Dies_Func021Func010C())then
set udg_P11Kills=(udg_P11Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
set udg_P12Kills=(udg_P12Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func022C())then
set udg_P7Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P7Deaths=(udg_P7Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,7,I2S(udg_P7Deaths))
set udg_P12Deaths=(udg_P12Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
if(Trig_Dies_Func022Func006C())then
set udg_P1Kills=(udg_P1Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func022Func007C())then
set udg_P2Kills=(udg_P2Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func022Func008C())then
set udg_P3Kills=(udg_P3Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func022Func009C())then
set udg_P4Kills=(udg_P4Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func022Func010C())then
set udg_P5Kills=(udg_P5Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func023C())then
set udg_P8Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P8Deaths=(udg_P8Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,8,I2S(udg_P8Deaths))
set udg_P12Deaths=(udg_P12Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
if(Trig_Dies_Func023Func006C())then
set udg_P1Kills=(udg_P1Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func023Func007C())then
set udg_P2Kills=(udg_P2Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func023Func008C())then
set udg_P3Kills=(udg_P3Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func023Func009C())then
set udg_P4Kills=(udg_P4Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func023Func010C())then
set udg_P5Kills=(udg_P5Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func024C())then
set udg_P9Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P9Deaths=(udg_P9Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,9,I2S(udg_P9Deaths))
set udg_P12Deaths=(udg_P12Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
if(Trig_Dies_Func024Func006C())then
set udg_P1Kills=(udg_P1Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func024Func007C())then
set udg_P2Kills=(udg_P2Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func024Func008C())then
set udg_P3Kills=(udg_P3Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func024Func009C())then
set udg_P4Kills=(udg_P4Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func024Func010C())then
set udg_P5Kills=(udg_P5Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func025C())then
set udg_P10Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P10Deaths=(udg_P10Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,10,I2S(udg_P10Deaths))
set udg_P12Deaths=(udg_P12Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
if(Trig_Dies_Func025Func006C())then
set udg_P1Kills=(udg_P1Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func025Func007C())then
set udg_P2Kills=(udg_P2Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func025Func008C())then
set udg_P3Kills=(udg_P3Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func025Func009C())then
set udg_P4Kills=(udg_P4Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func025Func010C())then
set udg_P5Kills=(udg_P5Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func026C())then
set udg_P10Spawner=(GetHeroLevel(GetDyingUnit())*2)
set udg_P11Deaths=(udg_P11Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,11,I2S(udg_P11Deaths))
set udg_P12Deaths=(udg_P12Deaths+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
if(Trig_Dies_Func026Func006C())then
set udg_P1Kills=(udg_P1Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func026Func007C())then
set udg_P2Kills=(udg_P2Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func026Func008C())then
set udg_P3Kills=(udg_P3Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func026Func009C())then
set udg_P4Kills=(udg_P4Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
if(Trig_Dies_Func026Func010C())then
set udg_P5Kills=(udg_P5Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
set udg_P6Kills=(udg_P6Kills+1)
call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
else
endif
call TriggerSleepAction((I2R(GetUnitLevel(GetDyingUnit()))*2.00))
set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
call RemoveLocation(udg_Loc1)
else
endif
if(Trig_Dies_Func027C())then
call SetPlayerAbilityAvailableBJ(false,'A008',GetOwningPlayer(GetDyingUnit()))
call SetPlayerAbilityAvailableBJ(false,'A048',GetOwningPlayer(GetDyingUnit()))
else
endif
endfunction

function InitTrig_Dies takes nothing returns nothing
set gg_trg_Dies=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Dies,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Dies,Condition(function Trig_Dies_Conditions))
call TriggerAddAction(gg_trg_Dies,function Trig_Dies_Actions)
endfunction


Sorry the trigger is so long D= thought it would be best to post it all just in case. Forgot to put the code tags inside the spoiler too XD. I removed all the R2I's that were flagged, but what do you mean by replace the variable with a real? for for the udg_P#Spawner parts?

OH BAWLS. I am short bus slow. You mean in the triggers window, go to the variables window, and find the variable, like, P1Spawner, which has a variable type of Integer, and change it to variable type Real. Right? xD

I got like a bazillion errors at first. So I just went back to the original code and changed all the integers to reals for the spawners for the R2I's, rather than use the whole changed trigger with the condition edits and it works fine xD Thanks!
Last edited by darkxion on August 1st, 2009, 10:08 am, edited 8 times in total.
Sevion
Junior Member
Posts: 44
Joined: April 12th, 2007, 2:43 am
Location: STALKER!!!

Re: respawn timer trigger problems

Post by Sevion »

Ah man. I hate you >_< 1189 lines o_O'

Kk. Let me get on it. I'll optimize some of your conditions, too.

OK:

Next type, use Code tags -_-'

Spoiler:

Code: Select all

function Trig_Dies_Func001C takes nothing returns boolean
    return GetOwningPlayer(GetTriggerUnit())==GetOwningPlayer(GetKillingUnitBJ())
endfunction

function Trig_Dies_Func002Func001C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())!=Player(5) and GetOwningPlayer(GetKillingUnitBJ())!=Player(11)
endfunction

function Trig_Dies_Func002C takes nothing returns boolean
    return IsPlayerAlly(GetOwningPlayer(GetDyingUnit()),GetOwningPlayer(GetKillingUnitBJ()))==true
endfunction

function Trig_Dies_Func003C takes nothing returns boolean
    return GetDyingUnit()==udg_Limber
endfunction

function Trig_Dies_Func004Func010C takes nothing returns boolean
    return udg_Random==1
endfunction

function Trig_Dies_Func004Func011C takes nothing returns boolean
    return udg_Random==2
endfunction

function Trig_Dies_Func004Func012C takes nothing returns boolean
    return udg_Random==3
endfunction

function Trig_Dies_Func004Func013C takes nothing returns boolean
    return udg_Random==4
endfunction

function Trig_Dies_Func004Func014C takes nothing returns boolean
    return udg_Random==5
endfunction

function Trig_Dies_Func004Func015C takes nothing returns boolean
    return udg_Random==6
endfunction

function Trig_Dies_Func004C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())!=Player(5) and GetOwningPlayer(GetKillingUnitBJ())!=Player(11) and GetOwningPlayer(GetKillingUnitBJ())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)
endfunction

function Trig_Dies_Func005C takes nothing returns boolean
    return GetDyingUnit()==udg_TransmuteHero
endfunction

function Trig_Dies_Func017Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(6)
endfunction

function Trig_Dies_Func017Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(7)
endfunction

function Trig_Dies_Func017Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(8)
endfunction

function Trig_Dies_Func017Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(9)
endfunction

function Trig_Dies_Func017Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(10)
endfunction

function Trig_Dies_Func017Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(0)
endfunction

function Trig_Dies_Func017C takes nothing returns boolean
    return Trig_Dies_Func017Func016C()
endfunction

function Trig_Dies_Func018Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(6)
endfunction

function Trig_Dies_Func018Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(7)
endfunction

function Trig_Dies_Func018Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(8)
endfunction

function Trig_Dies_Func018Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(9)
endfunction

function Trig_Dies_Func018Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(10)
endfunction

function Trig_Dies_Func018Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(1)
endfunction

function Trig_Dies_Func018C takes nothing returns boolean
    return Trig_Dies_Func018Func016C()
endfunction

function Trig_Dies_Func019Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(6)
endfunction

function Trig_Dies_Func019Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(7)
endfunction

function Trig_Dies_Func019Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(8)
endfunction

function Trig_Dies_Func019Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(9)
endfunction

function Trig_Dies_Func019Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(10)
endfunction

function Trig_Dies_Func019Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(2)
endfunction

function Trig_Dies_Func019C takes nothing returns boolean
    return Trig_Dies_Func019Func016C()
endfunction

function Trig_Dies_Func020Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(6)
endfunction

function Trig_Dies_Func020Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(7)
endfunction

function Trig_Dies_Func020Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(8)
endfunction

function Trig_Dies_Func020Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(9)
endfunction

function Trig_Dies_Func020Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(10)
endfunction

function Trig_Dies_Func020Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(3)
endfunction

function Trig_Dies_Func020C takes nothing returns boolean
    return Trig_Dies_Func020Func016C()
endfunction

function Trig_Dies_Func021Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(6)
endfunction

function Trig_Dies_Func021Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(7)
endfunction

function Trig_Dies_Func021Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(8)
endfunction

function Trig_Dies_Func021Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(9)
endfunction

function Trig_Dies_Func021Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(10)
endfunction

function Trig_Dies_Func021Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(4)
endfunction

function Trig_Dies_Func021C takes nothing returns boolean
    return Trig_Dies_Func021Func016C()
endfunction

function Trig_Dies_Func022Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(0)
endfunction

function Trig_Dies_Func022Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(1)
endfunction

function Trig_Dies_Func022Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(2)
endfunction

function Trig_Dies_Func022Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(3)
endfunction

function Trig_Dies_Func022Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(4)
endfunction

function Trig_Dies_Func022Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(6)
endfunction

function Trig_Dies_Func022C takes nothing returns boolean
    return Trig_Dies_Func022Func016C()
endfunction

function Trig_Dies_Func023Func006C takes nothing returns boolean
    if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
    return false
    endif
    return true
endfunction

function Trig_Dies_Func023Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(1)
endfunction

function Trig_Dies_Func023Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(2)
endfunction

function Trig_Dies_Func023Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(3)
endfunction

function Trig_Dies_Func023Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(4)
endfunction

function Trig_Dies_Func023Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(7)
endfunction

function Trig_Dies_Func023C takes nothing returns boolean
    return Trig_Dies_Func023Func016C()
endfunction

function Trig_Dies_Func024Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(0)
endfunction

function Trig_Dies_Func024Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(1)
endfunction

function Trig_Dies_Func024Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(2)
endfunction

function Trig_Dies_Func024Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(3)
endfunction

function Trig_Dies_Func024Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(4)
endfunction

function Trig_Dies_Func024Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(8)
endfunction

function Trig_Dies_Func024C takes nothing returns boolean
    return Trig_Dies_Func024Func016C()
endfunction

function Trig_Dies_Func025Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(0)
endfunction

function Trig_Dies_Func025Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(1)
endfunction

function Trig_Dies_Func025Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(2)
endfunction

function Trig_Dies_Func025Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(3)
endfunction

function Trig_Dies_Func025Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(4)
endfunction

function Trig_Dies_Func025Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(9)
endfunction

function Trig_Dies_Func025C takes nothing returns boolean
    return Trig_Dies_Func025Func016C()
endfunction

function Trig_Dies_Func026Func006C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(0)
endfunction

function Trig_Dies_Func026Func007C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(1)
endfunction

function Trig_Dies_Func026Func008C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(2)
endfunction

function Trig_Dies_Func026Func009C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(3)
endfunction

function Trig_Dies_Func026Func010C takes nothing returns boolean
    return GetOwningPlayer(GetKillingUnitBJ())==Player(4)
endfunction

function Trig_Dies_Func026Func016C takes nothing returns boolean
    return GetOwningPlayer(GetDyingUnit())==Player(10)
endfunction

function Trig_Dies_Func026C takes nothing returns boolean
    return Trig_Dies_Func026Func016C()
endfunction

function Trig_Dies_Func027C takes nothing returns boolean
    return GetUnitTypeId(GetDyingUnit())=='H01I'
endfunction

function Trig_Dies_Conditions takes nothing returns boolean
    return IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true and (GetUnitTypeId(GetDyingUnit())!='H022' or GetUnitTypeId(GetDyingUnit())!='U004' or GetUnitTypeId(GetDyingUnit())!='H021' or GetUnitTypeId(GetDyingUnit())!='H03B')
endfunction

function Trig_Dies_Actions takes nothing returns nothing
   if Trig_Dies_Func001C() then
      call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+"Has Suicided"))
    endif
    if Trig_Dies_Func002C() and Trig_Dies_Func002Func001C() then
      call KillUnit(GetKillingUnitBJ())
      call DisplayTextToForce(GetPlayersAll(),("This kid is a DUMBASS!"+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" just killed his team-mate. Sucks for you, 'cos we're gonna give all you're gold to the dead guy, and we're gonna kill you ourselves! PWND!!!")))
      call AdjustPlayerStateBJ(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD),GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
      call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,0)
    endif
   if Trig_Dies_Func003C() then
      call SetUnitOwner(udg_Limber,udg_LimberOwner,false)
    endif
   if Trig_Dies_Func004C() then
      set udg_Random=GetRandomInt(1,6)
      if Trig_Dies_Func004Func010C() then
         call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" was smooked by "+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())))))
      endif
      if Trig_Dies_Func004Func011C() then
         call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" OWNED "+GetPlayerName(GetOwningPlayer(GetDyingUnit())))))
      endif
      if Trig_Dies_Func004Func012C() then
         call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" is dancing on "+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+"'s grave!"))))
      endif
      if Trig_Dies_Func004Func013C() then
         call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" kicked "+(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+" in the nuts!"))))
      endif
      if Trig_Dies_Func004Func014C() then
         call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" just got h4xx0rd by "+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" lolzord!!1"))))
      endif
      if Trig_Dies_Func004Func015C() then
         call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+(" just got pwnt by "+(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" and his l33t skillz! LOL, newb..."))))
      endif
      set udg_Random=0
      call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetDyingUnit())+(" wil respawn in "+(R2S((GetHeroLevel(GetDyingUnit())*1.5))+" seconds."))))
      set udg_Random=(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)/3)
      call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+(" Stole "+(I2S(udg_Random)+(" Gold from "+GetPlayerName(GetOwningPlayer(GetDyingUnit())))))))
      call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)-udg_Random))
      call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)+udg_Random))
      set udg_Random=0
    else
      call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+" got raped by creeps!"))
      call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetDyingUnit())+(" wil respawn in "+(R2S((GetHeroLevel(GetDyingUnit())*1.5))+" seconds."))))
      set udg_Random=(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)/3)
      call SetPlayerStateBJ(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetDyingUnit()),PLAYER_STATE_RESOURCE_GOLD)-udg_Random))
      set udg_Random=0
    endif
    if Trig_Dies_Func005C() then
      set udg_Loc1=GetUnitLoc(udg_TransmuteHero)
      call SetUnitPositionLoc(udg_Transmuter,udg_Loc1)
      call SetUnitOwner(udg_Transmuter,udg_TransmuterO,false)
      call SetUnitOwner(udg_TransmuteHero,udg_TransmuteOwner,false)
      call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,1),true)
      call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,2),true)
      call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,3),true)
      call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,4),true)
      call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,5),true)
      call SetItemDroppableBJ(UnitItemInSlotBJ(udg_TransmuteHero,6),true)
      call ShowUnitShow(udg_Transmuter)
      call RemoveLocation(udg_Loc1)
      set udg_TransmuteHero=null
      set udg_Transmuter=null
    endif
    call IssueImmediateOrderBJ(GetDyingUnit(),"unimmolation")
    call UnitRemoveAbilityBJ('A02M',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A031',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A043',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A04K',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A04O',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A04P',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A079',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A097',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A098',GetTriggerUnit())
    call UnitRemoveAbilityBJ('A0BQ',GetTriggerUnit())
    if(Trig_Dies_Func017C())then
      set udg_P1Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P1Deaths=(udg_P1Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,1,I2S(udg_P1Deaths))
      set udg_P6Deaths=(udg_P6Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
      if(Trig_Dies_Func017Func006C())then
         set udg_P7Kills=(udg_P7Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func017Func007C())then
         set udg_P8Kills=(udg_P8Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func017Func008C())then
         set udg_P9Kills=(udg_P9Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func017Func009C())then
         set udg_P10Kills=(udg_P10Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func017Func010C())then
         set udg_P11Kills=(udg_P11Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      call TriggerSleepAction(GetUnitLevel(GetDyingUnit())*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
   endif
    if(Trig_Dies_Func018C())then
      set udg_P2Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P2Deaths=(udg_P2Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,2,I2S(udg_P2Deaths))
      set udg_P6Deaths=(udg_P6Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
      if(Trig_Dies_Func018Func006C())then
         set udg_P7Kills=(udg_P7Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func018Func007C())then
         set udg_P8Kills=(udg_P8Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func018Func008C())then
         set udg_P9Kills=(udg_P9Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func018Func009C())then
         set udg_P10Kills=(udg_P10Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func018Func010C())then
         set udg_P11Kills=(udg_P11Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
    endif
    if(Trig_Dies_Func019C())then
      set udg_P3Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P3Deaths=(udg_P3Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,3,I2S(udg_P3Deaths))
      set udg_P6Deaths=(udg_P6Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
      if(Trig_Dies_Func019Func006C())then
         set udg_P7Kills=(udg_P7Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func019Func007C())then
         set udg_P8Kills=(udg_P8Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func019Func008C())then
         set udg_P9Kills=(udg_P9Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func019Func009C())then
         set udg_P10Kills=(udg_P10Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func019Func010C())then
         set udg_P11Kills=(udg_P11Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      call TriggerSleepAction(GetUnitLevel(GetDyingUnit())*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
    endif
    if(Trig_Dies_Func020C())then
      set udg_P4Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P4Deaths=(udg_P4Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,4,I2S(udg_P4Deaths))
      set udg_P6Deaths=(udg_P6Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
      if(Trig_Dies_Func020Func006C())then
         set udg_P7Kills=(udg_P7Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
         if(Trig_Dies_Func020Func007C())then
         set udg_P8Kills=(udg_P8Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func020Func008C())then
         set udg_P9Kills=(udg_P9Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func020Func009C())then
         set udg_P10Kills=(udg_P10Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
      if(Trig_Dies_Func020Func010C())then
         set udg_P11Kills=(udg_P11Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
         set udg_P12Kills=(udg_P12Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
      endif
         call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
         set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
         call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
         call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
         call RemoveLocation(udg_Loc1)
      endif
      if(Trig_Dies_Func021C())then
         set udg_P5Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
         set udg_P5Deaths=(udg_P5Deaths+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,3,5,I2S(udg_P5Deaths))
         set udg_P6Deaths=(udg_P6Deaths+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,3,6,I2S(udg_P6Deaths))
         if(Trig_Dies_Func021Func006C())then
            set udg_P7Kills=(udg_P7Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,7,I2S(udg_P7Kills))
            set udg_P12Kills=(udg_P12Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
         endif
         if(Trig_Dies_Func021Func007C())then
            set udg_P8Kills=(udg_P8Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,8,I2S(udg_P8Kills))
            set udg_P12Kills=(udg_P12Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
         endif
         if(Trig_Dies_Func021Func008C())then
            set udg_P9Kills=(udg_P9Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,9,I2S(udg_P9Kills))
            set udg_P12Kills=(udg_P12Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
            endif
         if(Trig_Dies_Func021Func009C())then
            set udg_P10Kills=(udg_P10Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,10,I2S(udg_P10Kills))
            set udg_P12Kills=(udg_P12Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
         endif
         if(Trig_Dies_Func021Func010C())then
            set udg_P11Kills=(udg_P11Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,11,I2S(udg_P11Kills))
            set udg_P12Kills=(udg_P12Kills+1)
            call MultiboardSetItemValueBJ(udg_ScoreBoard,2,12,I2S(udg_P12Kills))
         endif
         call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
         set udg_Loc1=GetRandomLocInRect(gg_rct_1start)
         call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
         call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
         call RemoveLocation(udg_Loc1)
      endif
    if(Trig_Dies_Func022C())then
      set udg_P7Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P7Deaths=(udg_P7Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,7,I2S(udg_P7Deaths))
      set udg_P12Deaths=(udg_P12Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
      if(Trig_Dies_Func022Func006C())then
         set udg_P1Kills=(udg_P1Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func022Func007C())then
         set udg_P2Kills=(udg_P2Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func022Func008C())then
         set udg_P3Kills=(udg_P3Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func022Func009C())then
         set udg_P4Kills=(udg_P4Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func022Func010C())then
         set udg_P5Kills=(udg_P5Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
    endif
    if(Trig_Dies_Func023C())then
      set udg_P8Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P8Deaths=(udg_P8Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,8,I2S(udg_P8Deaths))
      set udg_P12Deaths=(udg_P12Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
      if(Trig_Dies_Func023Func006C())then
      set udg_P1Kills=(udg_P1Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
      set udg_P6Kills=(udg_P6Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      else
      endif
      if(Trig_Dies_Func023Func007C())then
      set udg_P2Kills=(udg_P2Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
      set udg_P6Kills=(udg_P6Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      else
      endif
      if(Trig_Dies_Func023Func008C())then
      set udg_P3Kills=(udg_P3Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
      set udg_P6Kills=(udg_P6Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      else
      endif
      if(Trig_Dies_Func023Func009C())then
      set udg_P4Kills=(udg_P4Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
      set udg_P6Kills=(udg_P6Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      else
      endif
      if(Trig_Dies_Func023Func010C())then
      set udg_P5Kills=(udg_P5Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
      set udg_P6Kills=(udg_P6Kills+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      else
      endif
      call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
   endif
   if(Trig_Dies_Func024C())then
      set udg_P9Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P9Deaths=(udg_P9Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,9,I2S(udg_P9Deaths))
      set udg_P12Deaths=(udg_P12Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
      if(Trig_Dies_Func024Func006C())then
         set udg_P1Kills=(udg_P1Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func024Func007C())then
         set udg_P2Kills=(udg_P2Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func024Func008C())then
         set udg_P3Kills=(udg_P3Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func024Func009C())then
         set udg_P4Kills=(udg_P4Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func024Func010C())then
         set udg_P5Kills=(udg_P5Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
    endif
    if(Trig_Dies_Func025C())then
      set udg_P10Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P10Deaths=(udg_P10Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,10,I2S(udg_P10Deaths))
      set udg_P12Deaths=(udg_P12Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
      if(Trig_Dies_Func025Func006C())then
         set udg_P1Kills=(udg_P1Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func025Func007C())then
         set udg_P2Kills=(udg_P2Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func025Func008C())then
         set udg_P3Kills=(udg_P3Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func025Func009C())then
         set udg_P4Kills=(udg_P4Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func025Func010C())then
         set udg_P5Kills=(udg_P5Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
      set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
      call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
      call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
      call RemoveLocation(udg_Loc1)
    endif
    if(Trig_Dies_Func026C())then
      set udg_P10Spawner=R2I(GetHeroLevel(GetDyingUnit())*1.5) // REMOVE R2I
      set udg_P11Deaths=(udg_P11Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,11,I2S(udg_P11Deaths))
      set udg_P12Deaths=(udg_P12Deaths+1)
      call MultiboardSetItemValueBJ(udg_ScoreBoard,3,12,I2S(udg_P12Deaths))
      if(Trig_Dies_Func026Func006C())then
         set udg_P1Kills=(udg_P1Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,1,I2S(udg_P1Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func026Func007C())then
         set udg_P2Kills=(udg_P2Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,2,I2S(udg_P2Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func026Func008C())then
         set udg_P3Kills=(udg_P3Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,3,I2S(udg_P3Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func026Func009C())then
         set udg_P4Kills=(udg_P4Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,4,I2S(udg_P4Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
      if(Trig_Dies_Func026Func010C())then
         set udg_P5Kills=(udg_P5Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,5,I2S(udg_P5Kills))
         set udg_P6Kills=(udg_P6Kills+1)
         call MultiboardSetItemValueBJ(udg_ScoreBoard,2,6,I2S(udg_P6Kills))
      endif
         call TriggerSleepAction((GetUnitLevel(GetDyingUnit()))*1.5)
         set udg_Loc1=GetRandomLocInRect(gg_rct_2start)
         call ReviveHeroLoc(GetDyingUnit(),udg_Loc1,true)
         call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),udg_Loc1,1.00)
         call RemoveLocation(udg_Loc1)
   endif
   if(Trig_Dies_Func027C())then
      call SetPlayerAbilityAvailableBJ(false,'A008',GetOwningPlayer(GetDyingUnit()))
      call SetPlayerAbilityAvailableBJ(false,'A048',GetOwningPlayer(GetDyingUnit()))
    endif
endfunction

function InitTrig_Dies takes nothing returns nothing
    set gg_trg_Dies=CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Dies,EVENT_PLAYER_UNIT_DEATH)
    call TriggerAddCondition(gg_trg_Dies,Condition(function Trig_Dies_Conditions))
    call TriggerAddAction(gg_trg_Dies,function Trig_Dies_Actions)
endfunction


Edit: Crap. Forgot something, you're going to have to change your P(NUMBER)Spawner variable to a real variable. Then remove all R2I's that I have (check for // REMOVE R2I in code)
"Sticks and stones may break my bones, but words will never hurt me!" Ouch! MY ARM!! YOU BROKE MY ARM!!