• 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.

comments in triggers

Status
Not open for further replies.
Level 4
Joined
Oct 19, 2010
Messages
71
Is it possible to write comments inside your triggers (where the events, conditions, and actions are) besides the box at the top of the trigger? Maybe with a custom script? Thank you for any help.
 
Level 12
Joined
Mar 24, 2011
Messages
1,082
You can whrite comments in the actions.
When you click New Action its the second option

For Event and Conditions you can't well most triggers dont have many Events and Conditions so use the big comment for them or make a comment before teh actions

  • Comments
    • Events
      • Unit - A unit enters Region
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • -------- The event is that a unit enters region --------
      • -------- The condition is that the triggering unit is a hero --------
      • -------- The next action makes a unit blah blah --------
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • -------- The previous action made a unit blah blah --------
Edit// If you still cant find it download a random gui spell from the spell section.
 
Last edited:
Level 28
Joined
Jan 26, 2007
Messages
4,789
This may be a detail, but it may help you:

Go to File -> Preferences and select the tab "Text Colors". There you can change the color of comments (and any other trigger categories if you'd like).
This makes them stand out from the rest of the code as well as make them easier to read.
I find those different colors highly interesting and have been using them for a long time to differentiate them. Makes it easier for me to find what I'm looking for (though I rarely use GUI these days).

(Note that only you can see that color change, so don't go crazy with comments because not many people actually use different colors :p).
 
Status
Not open for further replies.
Top