- Joined
- Apr 19, 2010
- Messages
- 80
is it possible to make a ability which lets the triggering unit grow a certain size?
function Trig_TestTrig2146_Actions takes nothing returns nothing
local real r = (GetUnitPointValue(GetTriggerUnit()) + 25 * GetUnitAbilityLevel(GetTriggerUnit(), 'A000'))
if GetLearnedSkill() == 'A000' then
call SetUnitScale(GetTriggerUnit(), r * 0.01, r * 0.01, r * 0.01)
set r = 0.00
endif
endfunction
//===========================================================================
function InitTrig_TestTrig2146 takes nothing returns nothing
set gg_trg_TestTrig2146 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_TestTrig2146, EVENT_PLAYER_HERO_SKILL )
call TriggerAddAction( gg_trg_TestTrig2146, function Trig_TestTrig2146_Actions )
endfunction
i think you can remove buff to make him back to normal
That's true. I don't downloaded General Frank's map, but i'm guessing he just edited the bloodlust duration to 0, so it lasts 'till it's debuffed. So, yes, you can remove the buff. You can do that by trigger or base a activation ability on something like imollation, then by triggers when a unit activate immolation you give the dummy ability that makes the unit size grows. Like General Said, I don't know too if them stack and i can't test today, but that's pretty simple, just make another ability based on bloodlust and cast that one an the original on some unit.
nah when i start another ability it should reset the size but it should be an ability like an aura remove or something like that, nothing which adds a new thing
yes the trigger is very complex, i made a better and more simple trigger but it's not finished, now when i start the ability and the unit size i can use the ability again but the unit uses the ability again and grows again