• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Why won't this pass the syntax check?

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
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
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
Am still working on it but I can't figure out why whats wrong with this small part
 
Status
Not open for further replies.
Top