| 12-29-2006, 11:32 PM | #1 | ||||||||||||||||||
Note, that the tutorial is still in progress. Feel free to post comments & suggestions for improval :) Basics of Triggers By Archian My ten-year-old cousin has just started warcraft III modding, and has begun experimenting with the Trigger Editor. I promised that I would make a little tutorial relating to how to make some *very* basic, but useful triggers for custom maps. This tutorial is also meant as a source of information that may encourage newcomer's to start triggering and from there, develop their knowlege. So when you're done reading this tutorial, go inside the World Editor and do some experimenting yourself :) Click the images for larger versions. The "target group" of this tutorial is of course; beginners. Table of Content
The map script controls any in-game events not dictated by the user. Triggers are essential for creating maps with complicated goals and atmosphere. (From left to right: Variables... (Ctrl+B), New Category (Ctrl+G), New Trigger (Ctrl+T), New Trigger Comment (Ctrl+M), New Event (Ctrl+E), New Condition (Ctrl+D), New Action (Ctrl+R). The Trigger Editor:
GUI (Graphical User Interface) A graphical user interface, is a particular case of user interface for interacting with a computer which employs graphical images and widgets in addition to text to represent the information and actions available to the user. Usually the actions are performed through direct manipulation of the graphical elements. Trigger Functions: "ECA" (Events, Conditions & Actions) Note; each individual trigger can be created using various of countless (describing many) methods.You will most likely come to discover that as you gain more experience. There are 3 "categories" of trigger functions (Events, Conditions & Actions): Trigger: Trigger Functions
![]() Events
![]() Conditions
![]() ActionsWhen the event(s) occur, all conditions are met, the action(s) will take place. A trigger will start when any of the events listed occur. Note; you can "run" a trigger from another trigger without having those events occuring. Conditions are specific requirements which the trigger must observe. It cannot perform it's actions unless all the condition requirements have been covered. Note; that you can have 'And' / 'Or' conditions as well. Triggers that are run from another trigger have the option to ignore these conditions. If the event occurs, all conditions have been met, then this is the action(s) that the trigger will perform. Note; that you can may 'Run' other triggers or turn other triggers OFF or ON as well. Note; You may put any new triggers in the original Melee Initialization category created by the world editor, but you are not obligated to. Categories have no influence on the functionality of the trigger, so it doesn't matter which order you put them in. Enable, Initially On & Trigger Comments Notice that there are 3 fields at the top of each trigger (highlight'ed below).
Trigger Examples Below is shown some basic trigger samples. In this example, I will demonstrate a way to open a Gate without any condition(s). Here's the trigger i'm using: Trigger: In this example, I shall demonstrate a way to open a Gate with a condition. Here's the trigger: Trigger: Here's the trigger i'm using for this demonstration: Trigger: Sunken Brigde
The Specific Key Coming soon... Links
To be continued » |
| 12-29-2006, 11:57 PM | #2 |
Very cool and useful |
| 12-30-2006, 01:07 PM | #3 |
Very nice, there is a few grammar errors here and there though, such as "Ofcause" and "warcraft III modding" should be with capital letters, no? |
| 12-30-2006, 01:08 PM | #4 |
If I were you I wouldn't link to another tutorial, like you did with the variables. I would try and make it so that the reader didn't have to leave the page to learn everything. The only thing I think you should link to is like at the bottom where your linking to the tutorial forums and the region tutorial. Apart from that it seamed like a good start, good work :) |
| 12-30-2006, 02:00 PM | #5 |
Very good for beginners. And i personally like how you're linking to other tutorials. No need to reinvent the wheel. *approved* |
| 12-31-2006, 08:32 AM | #6 |
Very nice I have to say. I wish I had this tutorial when I learned triggering a few years ago... But one thing I had to laught: "warcraft modding". I don't think we can talk about modding when we just create some gui triggers... But: nice tut gl & hf |
