Am still learning jass but am working on a spell that uses 3 different effects.
It says the error at the part where I call the function
Am still working on it but I can't figure out why whats wrong with this small part
It says the error at the part where I call the function
JASS:
function Effect1 takes nothing returns nothing
endfunction
function Effect2 takes nothing returns nothing
endfunction
function Effect3 takes nothing returns nothing
endfunction
function Spell_Actions takes nothing returns nothing
local integer level
local unit target
local integer effectselected
set effectselected = 1
if effectselected == 0 then
call Effect1
else
if effectselected == 1 then
call Effect2
else
if effectselected == 2 then
call Effect3
else
endif
endif
endfunction