(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Tutorials > Trigger (GUI) Editor Tutorials

Trigger (GUI) Editor Tutorials Contains tutorials concerning the usage of GUI features.
Read the Rules before posting.

Reply
 
LinkBack Thread Tools Display Modes
Old 04-03-2007, 10:40 PM   #1 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Basics of Triggers

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


Introduction to The World Editors' "Trigger Editor"
The trigger editor is where the map script is written, either in GUI triggers or directly in JASS.
The map script controls any in-game events not dictated by the user. Triggers are essential for creating maps with complicated goals and atmosphere.

Trigger Editor: (Menu Bar\Module\Trigger Editor)Name:  TriggerEditor.jpg
Views: 3433
Size:  22.8 KB

triggermodules.jpg
(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:
Button:Functions:
Name:  Variables....jpg
Views: 3405
Size:  23.3 KBVariable Editor ~ MrApple's Beginner's Guide to Variables.
Name:  NewCategory.jpg
Views: 3379
Size:  22.7 KBCreates a new category for triggers; useful in custom maps with many triggers to keep a better overview.
Name:  NewTrigger.jpg
Views: 3335
Size:  22.4 KBCreates a new trigger.
Name:  TriggerComment.jpg
Views: 3300
Size:  22.8 KBA "comment category" which you can use for "headlines" under (for example) categories so each trigger "group" is kept well organized.
Name:  NewEvent.jpg
Views: 3283
Size:  22.7 KBCreates a new event for a trigger.
Name:  NewCondition.jpg
Views: 3267
Size:  22.8 KBCreates a new condition for a trigger.
Name:  NewAction.jpg
Views: 3258
Size:  22.4 KBCreates a new action for a trigger.

Of course, you can just right-click on the list, a trigger or a category to create the above mentioned.

rightclick.jpg

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 Functions
Events
Conditions
Actions
Notice, that these could be compared with the "cause and effect" theory. The cause and effect (Event and Action) with an optional "Condition" included.
When the event(s) occur, all conditions are met, the action(s) will take place.

Name:  Events.gif
Views: 3205
Size:  119 Bytes Events
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.

Name:  Condition.gif
Views: 3187
Size:  126 Bytes Conditions
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.

Name:  Actions.gif
Views: 3207
Size:  115 Bytes Actions
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).
triggerfields.jpg
  • Enabled - Determines whether or not the trigger is enabled in your map. If 'disabled', the trigger has no function.
  • Initially On - Triggers can be turned ON and OFF. When checked, the trigger will initially be ON when the game begins.
  • Trigger Comment - Is a text field area where you can add any comments regarding the specific trigger. Keep in mind that it has no impact on functionality.

Trigger Examples
Below is shown some basic trigger samples.

Opening A Gate #1Name:  Events.gif
Views: 3205
Size:  119 BytesName:  Actions.gif
Views: 3207
Size:  115 Bytes
In this example, I will demonstrate a way to open a Gate without any condition(s).
Here's the trigger i'm using:
Gate
Events
Destructible - Lever 0039 <gen> dies
Conditions
Actions
Destructible - Open Gate (Horizontal) 0038 <gen>
gate.jpg

Opening A Gate #2Name:  Events.gif
Views: 3205
Size:  119 BytesName:  Condition.gif
Views: 3187
Size:  126 BytesName:  Actions.gif
Views: 3207
Size:  115 Bytes
In this example, I shall demonstrate a way to open a Gate with a condition.
Here's the trigger:
Gate
Events
Destructible - Lever 0039 <gen> dies
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Actions
Destructible - Open Gate (Horizontal) 0038 <gen>
gate2.jpg

The Sunken BrigdeName:  Events.gif
Views: 3205
Size:  119 BytesName:  Condition.gif
Views: 3187
Size:  126 BytesName:  Actions.gif
Views: 3207
Size:  115 Bytes
Here's the trigger i'm using for this demonstration:
Sunken Brigde
Events
Unit - A unit enters Region 000 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Destructible - Resurrect Short Natural Bridge (Vertical) 0000 <gen> with 2500.00 life and Show birth animation
Animation - Change Short Natural Bridge (Vertical) 0000 <gen>'s animation speed to 95.00% of its original speed
Trigger - Turn off (This trigger)
showregion.jpg

brigde.jpg

The Specific Key
Coming soon...

Links


To be continued »
Archian is offline   Reply With Quote
Old 08-23-2007, 07:42 PM   #2 (permalink)

User
 
Join Date: Aug 2007
Posts: 1

adam067 is an unknown quantity at this point (0)


hey ive just started war3 modding and i would rly like to now to to set a unit patrol on a target region because im been trying for ages.
adam067 is offline   Reply With Quote
Old 08-24-2007, 05:02 PM   #3 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Try to ask your question here. And i guarantee you will get your question answered :)
Archian is offline   Reply With Quote
Old 12-22-2007, 03:27 PM   #4 (permalink)
 
ringmaster's Avatar

User
 
Join Date: Dec 2007
Posts: 4

ringmaster is an unknown quantity at this point (0)


how do u get the lever?
ringmaster is offline   Reply With Quote
Old 12-22-2007, 05:33 PM   #5 (permalink)
 
Herman's Avatar

Need to buy myself a comp
 
Join Date: Aug 2007
Posts: 1,061

Herman has little to show at this moment (34)Herman has little to show at this moment (34)Herman has little to show at this moment (34)Herman has little to show at this moment (34)


I like this

This looks like it could be a tremendously great tutorial if it was continued

I would also suggest adding in a little section on loops, how they work and what they do, but add that later, much later so players don't get overwhelmed
Herman is offline   Reply With Quote
Old 12-31-2007, 10:29 AM   #6 (permalink)
 
x-calibur's Avatar

User
 
Join Date: Jan 2007
Posts: 36

x-calibur has little to show at this moment (1)


this is maybe can help some users :D
__________________
Current Map : Warcraft Battle Royal
Support Forum :
Warcraft Map Maker
Hive Work Shop
x-calibur is offline   Reply With Quote
Old 12-31-2007, 12:43 PM   #7 (permalink)
 
Aeroblyctos's Avatar

Mighty Map Maker
 
Join Date: Aug 2006
Posts: 1,909

Aeroblyctos is a jewel in the rough (192)Aeroblyctos is a jewel in the rough (192)

Melee Tournament #1 Winner: Aeroblyctos 

This is a simple, but very good tutorial. I like the pictures you have taken and good luck putting more stuff to this tutorial. This will also save much of my time, because now I don't need to show all n00b map makers how to do basic triggers. This tutorial explains it.

Nice job, Archian.
Aeroblyctos is offline   Reply With Quote
Old 01-02-2008, 11:52 PM   #8 (permalink)
 
pistolwhip116's Avatar

User
 
Join Date: Sep 2007
Posts: 6

pistolwhip116 is an unknown quantity at this point (0)


Thumbs up That helps alot (10/10)

I just started trigger modding and i am amazed at how many things I can do with them

World editor is one of the easiest-to-use editors I've ever used
(UT04,Gmax,and EA command and conquer are the worst.)

your tutorial is genius (for all the new modders)!!!
pistolwhip116 is offline   Reply With Quote
Old 01-03-2008, 12:12 PM   #9 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Thank ye sir...
Archian is offline   Reply With Quote
Old 01-04-2008, 12:00 AM   #10 (permalink)
 
ThE0RaVeN's Avatar

User
 
Join Date: Jan 2008
Posts: 2

ThE0RaVeN is an unknown quantity at this point (0)


yea how do i make my units look like they are walkin on the walls cuz i got some models and i have no idea how to make them walk on the models do i have to make a trigger to make them fly or somthing
ThE0RaVeN is offline   Reply With Quote
Old 01-04-2008, 07:34 AM   #11 (permalink)
 
pistolwhip116's Avatar

User
 
Join Date: Sep 2007
Posts: 6

pistolwhip116 is an unknown quantity at this point (0)


FIRST nice rep I feel loved =-)
pistolwhip116 is offline   Reply With Quote
Old 01-05-2008, 09:07 PM   #12 (permalink)

User
 
Join Date: Aug 2007
Posts: 23

damurloc has a little shameless behavior in the past (-5)


Thumbs up This is most helping, thank you oh repped one...

Im very glad about this, since im kinda a newbie in triggers and other stuff... am good at terraining of course... ANYWAY just wanted to thank you... do something else now... don't keep reading...
damurloc is offline   Reply With Quote
Old 01-05-2008, 11:16 PM   #13 (permalink)
Site & Art Director

Administrator
 
Join Date: Jan 2006
Posts: 1,821

Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)Archian has much of which to be proud (1239)

PayPal Donor: This user has donated to The Hive. User of the Year: 2006 

Quote:
Originally Posted by ThE0RaVeN View Post
yea how do i make my units look like they are walkin on the walls cuz i got some models and i have no idea how to make them walk on the models do i have to make a trigger to make them fly or somthing
I made this tutorial long ago, might be of use to you.
I think I posted it here at the Hive as well, but I'll redirect you to it here: http://www.wc3campaigns.net/showthread.php?t=85356

Now any further questions should be posted in the World Editor Help Zone forum.
Archian is offline   Reply With Quote
Old 06-27-2008, 10:04 PM   #14 (permalink)
 
Ostaph13's Avatar

User
 
Join Date: Jun 2008
Posts: 15

Ostaph13 has little to show at this moment (9)


Good

This is a good Tutorial for people who don't know triggering!
Ostaph13 is offline   Reply With Quote
Old 07-13-2008, 02:15 AM   #15 (permalink)
 
ants376's Avatar

User
 
Join Date: May 2008
Posts: 28

ants376 has a little shameless behavior in the past (-3)


i wanted to ask u something on the leader bords i needed one for ctf, and how to do a basic ctf if u can make aforem on that thatll be good
ants376 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basics of a Dialog Orc_Tamer "Graveyard" 7 03-07-2007 06:09 PM
Basics of a TD ragingspeedhorn "Graveyard" 22 03-06-2007 08:56 AM
Risk basics help!! maulzt Map Development 2 08-16-2006 07:42 PM
The Basics of Triggers Bob27 World Editor Help Zone 0 02-16-2006 04:59 AM
The basics death_warrior14 Warcraft Editing Tools 1 04-16-2005 11:59 PM