• 🏆 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!

[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