- Joined
- Jan 15, 2008
- Messages
- 235
Hello to all people,
im kinda new to jass...
but im not new to coding things...
i was trying to make something
and i saw some dumb thing in we.
I cannot add action function to trigger if it have some argument like "takes integer i" string or whatever...
Is it possible or impossible ?
for those who didnt understood me, here is an example
its stupid example, and it doesnt do anything wise, but its way how things should work, make function, define arguments and then send arguments when call function... its not rocket science but seams that blizzard's people made it kinda crappy...
and btw. i use simple WE. and i kinda want to stay on it. i saw NewGen thing what have struct, its nice but ... its long story... let's just say that i want this to make works on simple WE.
ps. i dont want to use any global variable
Thanks for your time,
I hope that this can be done somehow
Markone
im kinda new to jass...
but im not new to coding things...
i was trying to make something
and i saw some dumb thing in we.
I cannot add action function to trigger if it have some argument like "takes integer i" string or whatever...
Is it possible or impossible ?
for those who didnt understood me, here is an example
JASS:
function Repeat_Actions takes integer i returns nothing
//do anything... but i need that variable i for it
endfunction
function Trig_Main_Actions takes nothing returns nothing
local trigger repeatme
set repeatme = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( repeatme, 2 )
call TriggerAddAction( repeatme, function Repeat_Actions(0) )
endfunction
and btw. i use simple WE. and i kinda want to stay on it. i saw NewGen thing what have struct, its nice but ... its long story... let's just say that i want this to make works on simple WE.
ps. i dont want to use any global variable
Thanks for your time,
I hope that this can be done somehow
Markone
Last edited by a moderator: