So i duplicated the Invisibility spell and created one of mine that his only thing he does it's to make unit invisible and activate 'invisible' buff.
This invisibility make a unit invisible and slow her down (-70% from currect speed)
Invisible [Buff] = 'B002'
Invisibility [Skill] = 'A007'
So i have this script that i made, but when i add the check to see if the buff is still on the unit does not slows down.
Thank you for any help =]
And by the way Invisible is a unit targed spell and i would like a no target spell, tho i tried Wind Walk but it keeps showing me critical when it's done even if i turn it off. any ideas will be great
and please not some blasting script cuz ima still a begginer and i don't know much about JASS beside tuts at the main thread and basic knowlage..
Thanks agian
This invisibility make a unit invisible and slow her down (-70% from currect speed)
Invisible [Buff] = 'B002'
Invisibility [Skill] = 'A007'
So i have this script that i made, but when i add the check to see if the buff is still on the unit does not slows down.
JASS:
function Trig_invisibility_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 039;A007039;
endfunction
function Trig_invisibility_Actions takes nothing returns nothing
local unit uvisible = GetTriggerUnit()
local timer t1 = CreateTimer()
local real uspeed = GetUnitMoveSpeed(uvisible)
call SetUnitMoveSpeed(uvisible, (uspeed - (uspeed * 70.00 / 100.00)) )
loop
exitwhen UnitHasBuffBJ(uvisible, 039;B002039;) == false
call StartTimerBJ(t1,true,1.00)
call DestroyTimer(t1)
endloop
call SetUnitMoveSpeed( uvisible,uspeed )
set uspeed = 0.00
set uvisible = null
set t1 = null
endfunction
Thank you for any help =]
And by the way Invisible is a unit targed spell and i would like a no target spell, tho i tried Wind Walk but it keeps showing me critical when it's done even if i turn it off. any ideas will be great
and please not some blasting script cuz ima still a begginer and i don't know much about JASS beside tuts at the main thread and basic knowlage..
Thanks agian