afisakov
You can change this now in User CP.
- Reaction score
- 37
The idea of this trigger is when you activate bankai (based off metamorph), one of your hero abilities "upgrades" temporarily to a stronger form. Thus I replace and replace back afterwards. The normal hero only has A0VA, the meta form only has A0VJ. Either should be able to up ability level and it would carry over in switch back.
ask if it is MUI because I heard people mention that locals stay inside the trigger, so hopefully if another player uses they would get a different bct, and only the correct hero would get abilities changed back. Not sure if this is really the case.
If it doesn't work MUI can you suggest how to fix?
Thank you
Code:
function Trig_bankai_Conditions takes nothing returns boolean
return (GetSpellAbilityId()=='A0VG')
endfunction
function Trig_bankai_Actions takes nothing returns nothing
local integer bct=3+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
set udg_units01[bct]=GetTriggerUnit()
call UnitAddAbility(udg_units01[bct],'A0VJ')
call SetUnitAbilityLevel(udg_units01[bct],'A0VJ',GetUnitAbilityLevel(udg_units01[bct],'A0VA'))
call UnitRemoveAbility(udg_units01[bct],'A0VA')
call TriggerSleepAction(30.)
call UnitAddAbility(udg_units01[bct],'A0VA')
call SetUnitAbilityLevel(udg_units01[bct],'A0VA',GetUnitAbilityLevel(udg_units01[bct],'A0VJ'))
call UnitRemoveAbility(udg_units01[bct],'A0VJ')
set udg_units01[bct]=null
endfunction
If it doesn't work MUI can you suggest how to fix?
Thank you