• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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