• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Nooby JASS question

Status
Not open for further replies.
Level 3
Joined
Nov 7, 2006
Messages
36
Im trying to learn JASS, but its not going very well, heres my problem:
Whenever im going from a GUI trigger to a JASS code-trigger (function, whatever) this text apear in the script box:

JASS:
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_002 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_002 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Untitled_Trigger_002, function Trig_Untitled_Trigger_002_Actions )
endfunction

If i copy a scrpit from a tutorial into the box, the trigger becomes unenabled when I test the map. WE says that "InitTrig_Untitled_Trigger_002" must be included. none of the tutorials says anything about this. Please help me because i realy want to learn JASS.

Thanks for your time!
 
Last edited by a moderator:
Status
Not open for further replies.
Top