[vJASS] Help, my vJASS trigger doesn't work!

Status
Not open for further replies.
Level 21
Joined
Dec 9, 2007
Messages
3,096
I started making one simple spell in vJASS and it doesn't work!
Please tell me WHAT IS WRONG WITH HIM!
I get 20 compile errors and the test map doesn't start!

Here's my code and the errors:
JASS:
scope HolyLight initializer HLInit

private function HLConditions takes nothing returns boolean
    return GetSpellAbilityId() == 'A000' //Abillity ID
endfunction

private function HLActions takes nothing returns nothing
    // I don't have any action yet
endfunction

//===========================================================================

private function HLInit takes nothing returns nothing
    local trigger trig = CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ( trig, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( trig, Condition( function HLConditions ) )
    call TriggerAddAction( trig, function HLActions )
endfunction

endscope
spellvjasserrorscrap.jpg



As a side note: My Jass New Generation pack is 5b.
 
Status
Not open for further replies.
Back
Top