Another Question today :3
I want every Hit of my Custom Chain Lightning be able to cast another Chain Lightning, which means, that i have to access the Function that is declared "underneath"
Example:
However, this will result in "Error: Awaiting Function Name" (and JassCraft: undeclared Function)
And yes, i DO know that this is recursive, however, with the % chance it will not result in an endless sea of wtfoverkill.
I hope there is some way to declare functions beforehand, like the headers @ C++ :/
Thanks in Advance!
ofcourse +rep for every useful answer
I want every Hit of my Custom Chain Lightning be able to cast another Chain Lightning, which means, that i have to access the Function that is declared "underneath"
Example:
JASS:
function chainlightning_loop (params)
do stuff
% chance to call function chainlightning_start
endfunction
function chainlightning_start (params)
call chainlightning_loop(params)
endfunction
However, this will result in "Error: Awaiting Function Name" (and JassCraft: undeclared Function)
And yes, i DO know that this is recursive, however, with the % chance it will not result in an endless sea of wtfoverkill.
I hope there is some way to declare functions beforehand, like the headers @ C++ :/
Thanks in Advance!
ofcourse +rep for every useful answer