#Custom Duration

8 messages · Page 1 of 1 (latest)

hallow needle
#

Hi I'm trying to do a simple bar following the youtube tutorial.
In duration info when I write this it doesnt work , the bar doesnt move even when the %p work fine ( going from 6 to 0) why ?

        print(dmg3)
        local dmg3  _,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,dmg3,_,_,_,_,_,_,_,_,_=strsplit(" ",GetSpellDescription(376079),29) return (dmg3),GetTime()+(dmg3) 
    
end```
lapis blade
#

no globals!

hallow needle
#

hmmm ? 😄

lapis blade
#

dmg3 there is a global

#

and is that even a timed value?

#

when does it run?

hallow needle
#

I just did an event (PLAYER_STARTED_MOVING) , it print 6

#

It works fine if I do

function() return 6,GetTime()+(dmg3) end   

for exemple.