- 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:
As a side note: My Jass New Generation pack is 5b.
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

As a side note: My Jass New Generation pack is 5b.