• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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.
 
Level 21
Joined
Dec 9, 2007
Messages
3,096
But I cannot test the map!
When I click the test button, the CMD starts and all those lines show corectly... Stuff...
After it closes, it takes longer for Warcraft to start. It starts the Main Menu instead of the map. This means code error in Warcraft, doesn't it?
 
Status
Not open for further replies.
Top