HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need To Learn Triggers

01-15-2003, 12:17 AM#1
Guest
is there any tutorials on how to make triggers or some other sites that have some. could anyone help me or maybe some help by telling me in this tread. thanks
01-15-2003, 02:12 PM#2
Kerry
The best and probably the only way is to look at the triggers in WE and learn yourself, and if there is something you dont get, ask!
01-15-2003, 08:56 PM#3
MrDoomMaster
Exactly... that is how i learned. It is truly the best method :)
01-15-2003, 09:10 PM#4
Draco
At least I could tell you this.

Go to the trigger menu in World Edit.You can right-click somewhere on the 'trigger menu' or click the menus at the top of the trigger menu to crete whole new triggers, new trigger parts, etc.

There are 3 parts to a trigger: EVENT(s), CONDTION(s), and ACTION(s)

EVENTS - This is what "triggers" or starts the trigger. It could be a 'periodic' event. That means that the 'trigger' is activated every so often; let's say.... every 5 seconds.

CONDITIONS - This are a set of 'conditions' or fields that must be present in order for the trigger actions to run. It could be a 'player condition' in such a way that a player must be a 'computer player' for the trigger to activate it.

ACTIONS - This is the heart of a trigger, and the heart of most WarCraft 3 games. Almost anything can be done with the lists and sub-lists of actions available. Let's say that every 5 seconds, if Player 2 is a comptuer player, this trigger will give player 2 a free Orc Grunt. Use this action....

Unit - Create a unit (Orc Grunt) at (Center of Playable Area) for (Player 2).

- - -

Tada! You've learned how to create a very very basic trigger. It gets much more advanced than this later on though. Try some out for yourself using simple logic skillz. Good Luck!
01-15-2003, 09:11 PM#5
Guest
Well i wrote a tutorial my freind is going to see if the tutorial works it basicly tells you what variables are and tells you how to make a unit group and tells u how to add units to a unit group and shows you how to move it, i will submit it soon:D
01-15-2003, 11:15 PM#6
Byelobog
Another good way to get introduced to triggers is to take some of your favorite maps from b.net that use triggers and just look at all of their triggers. Start off with simpler ones, then move on up. Lots of trial and error for me with triggers.
01-15-2003, 11:47 PM#7
ph33rb0
Events and Conditions were what confused me. If you used StarEdit, conditions were what fired the trigger. Not so in WorldEdit.

Like Draco said, Events are what starts the trigger, and then the conditions are where it checks to see that whatever is in there is true. If not, the trigger ends there and nothing happens. If all the conditions evaluate to true, then the actions will run.