Why does this have syntax errors?

T.s.e

Wish I was old and a little sentimental
Reaction score
133
Hello. I'm tying to make a spell like Luna's Eclipse in DotA. But i've encountered a problem, this syntaxes:
It says ''cannot convert codereturnsboolean to boolexpr.'' and ''constants must be initialized''
JASS:
scope Eclipse

globals
    private constant integer NumberHit // Maximum number of units hit.
    private constant integer Range //Maximum range.
    private constant integer SpellId //Dummy Spell's ID
    private constant real WaitPeriod //How long to wait between hits
endglobals

function Trig_Eclipse_Actions takes nothing returns nothing
endfunction

function EclipseConditions takes nothing returns boolean
return GetSpellAbilityId() == 'A000'
endfunction

//===========================================================================
function InitTrig_Eclipse takes nothing returns nothing
    set gg_trg_Eclipse = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ(gg_trg_Eclipse, EVENT_UNIT_SPELL_EFFECT)
    call TriggerAddCondition(gg_trg_Eclipse, function EclipseConditions)
    call TriggerAddAction( gg_trg_Eclipse, function Trig_Eclipse_Actions )
endfunction

endscope


Anyone know why?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top