scope attribute initializer Event
private function Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local integer temp
if GetUnitAbilityLevel(GetKillingUnit(), YOUR_ABILITY) > 0 then
set temp = GetHeroStr(u, false)
call SetHeroStr(u, temp + 1, true)
set temp = GetHeroAgi(u, false)
call SetHeroAgi(u, temp + 1, true)
set temp = GetHeroInt(u, false)
call SetHeroInt(u, temp + 1, true)
endif
endfunction
private function Event takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction(t, function Trig_Untitled_Trigger_001_Actions )
endfunction
endscope