- Joined
- Jun 5, 2006
- Messages
- 18
Ok...i'm really new on JASS, but i create programs in c++, javascript and things like this...
i would like to do a very easy thing: take a value on a function (an integer) from a global (udg_bla) and return a real (that i will use to get the time)...i'm using WE unlimited, so i can run the function directly inside the action Wait X
that's the code that i'm trying to use...but there are something that it's not correct
FIRST
set R = null it's not an action that can stay after a return (it's never read)...but i can't return a value if i do it BEFORE the return...so, what should i do for this?
SECOND
if i would like to return a TRIGGER, how to do it?(if the name of the trigger is "Bla")
thanks for helping
i would like to do a very easy thing: take a value on a function (an integer) from a global (udg_bla) and return a real (that i will use to get the time)...i'm using WE unlimited, so i can run the function directly inside the action Wait X
that's the code that i'm trying to use...but there are something that it's not correct
JASS:
function FDDspellinfoDELAY takes integer i returns real
local real R = 0.00
if i == 0 then
set R = 2.00
endif
return R
set R = null
endfunction
FIRST
set R = null it's not an action that can stay after a return (it's never read)...but i can't return a value if i do it BEFORE the return...so, what should i do for this?
SECOND
if i would like to return a TRIGGER, how to do it?(if the name of the trigger is "Bla")
thanks for helping
Last edited: