Simple JASS Custom Script Question

the_ideal

user title
Reaction score
61
So I've used this custom script to destroy a trigger after it runs:
Trigger:
  • Custom script: call DestroyTrigger( GetTriggeringTrigger() )


But I want one of my triggers to destroy another trigger when it runs, so I tried this:
Trigger:
  • Custom script: call DestroyTrigger( udg_mytrigger )


Adding that line, however, caused my map to not allow me to play it. I think NewGen forced the editor not to give an error message. But when I clicked Test Map it just took me to the main Wc page. (the test button worked before this) When I tried to play the map by manually going Single Player -> Custom Games -> My map, it didn't allow me to play either.

Is that custom script correct? What should I change it to if it's not? ("mytrigger" is a trigger, not a trigger variable, if that matters.)

Thanks a lot! +rep to anything I use
 

tommerbob

Minecraft. :D
Reaction score
110
Unless I'm mistaken, I believe the reason for that is because "udg" stands for User Defined Global (a variable), but since your triggers aren't variables themselves, it falls under "gg_trg_myTrigger".
 

muzk

Member
Reaction score
3
Yes they are variables, but created automatically when you create a new trigger (Ctrl + T).
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top