Triggers/Category Comment

From SC2Mapster Wiki
Jump to: navigation, search

Comment[edit | edit source]

Description[edit | edit source]

To make your scripts and triggers more readable and easier for yourself and others to understand, it is always a good idea to sprinkle in comments. They will not interfere with the code and the only thing you can do is to add text to them.

Hints[edit | edit source]

  • Action group is a useful function that can organize your code quickly. It has a comment attached to it.
  • You can add comments to all custom actions and functions in the Hint section. These comments will appear in the action and function list info-box.
  • The text you write stays in the trigger editor and is not stored as a Text item in the Text Editor.
  • Should any other people open your map, the comments can help them understand what your trigger setup does