| 10-21-2002, 02:36 PM | #1 |
Guest | I am confused on how triggers work. I can't grasp the complex set of options and errors I put into my custom maps trying to figure them out. Anybody out there know how to use them is some pretty cool ways? Can you help me learn how to understand them, you know, break it down to the basics. All help is appreciated, thanks. |
| 10-21-2002, 04:24 PM | #2 |
Here are some basics... Triggers consist of Events, Conditions, and Actions. A trigger is fired/run when the specified Event(s) happen(s). When the specified Conditions are met, the Actions happen. Say you want to display the text "Dabu" to all players when a Peon is selected. You would add the Event "Player - Selection Event" to make "Player 1 (Red) selects a unit". Then, you would add the Condition "Unit-Type Comparison" to make "(Unit-type of (Triggering Unit)) Equal to Peon". Then you would add the "Game - Display Text Message (Auto-Timed)" Action to make "Game - Display to (All players) the text: Dabu" Hope that helped :D |
