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''
Anyone know why?
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() == 039;A000039;
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?