1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

How to begin in triggering, for the complete noob

Discussion in 'Trigger (GUI) Editor Tutorials' started by hawk_767, Jan 24, 2009.

  1. hawk_767

    hawk_767

    Joined:
    Aug 23, 2007
    Messages:
    443
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Getting started triggering in the WE

    First of all, this tutorial is for people who know their way around the basic trigger editor, meaning how to create a trigger but not to set up exact events and triggers for in game.

    Now let us discover what exactly triggers are and what they do.

    Triggers are options you can put into place in the WE so that different events will occur in game. They can be simple to very complex, and they can create many different effects from spells and abilities to cinematic and unit, in game actions.

    When you are just beginning modding with the WE the trigger editor may seem a little overwhelming at first, but I will describe each piece and give some examples of simple triggers that will help you create simple trigger maps.

    Events: This is where you should start when making your trigger, however when you first start you may be drawn to look at the actions section since it is a bit more explained and easy to understand. This is however where you will make the trigger work. You will place the basic action to occur here.

    [​IMG]

    Conditions: These may seem quite confusing to you beginners but they aren't as bad as you may think. Here is where you will set the conditions that must be taken for your trigger to work. In lay mans terms, here you will say what must happen for your actions to take place.

    [​IMG]

    Actions: This is where you will select the exact actions to take place for your triggers. You can make units move from place to place, make cinematic videos begin and end, and many many more events. The actions are what you will most likely want to look at most since these events are shown very bluntly and easy to understand. These along with all the others will be explained further in the examples.

    [​IMG]

    This is what the entire trigger list will look like.

    [​IMG]

    First example: Moving units

    This is a simple trigger that will cause one unit to move from one point to another when your unit or units enter a specified region.

    First start by creating a simple region. I've marked mine with patchy grass.

    [​IMG]

    For the means of this tutorial you will want to place 1 unit that is owned by you and another than is owned by another color. I used peasants for my example.

    [​IMG]

    Now go up to the trigger editor button and click on it. You may notice the Map initialization trigger there but you won't need it so if it gets in your way for these examples you may delete it. Once you've done this you'll want to click the new trigger button, following this you will click new event. You can now read the events and what you could possibly do. Once your ready go down to the event labeled,
    Unit – Unit Enters Region,
    This is in the Unit event group.

    [​IMG]

    Once you've got this selected you need to click the word Region highlighted in red. Then you should select the region your unit or units will enter.
    It will then look like this. Where it says Region highlighted in blue however it will be whatever you named your region instead.

    [​IMG]

    This is what the trigger should read,
    [​IMG]

    Now on to the condition that you will want to set. You probably will at first be confused by some of the things that are layed out in the Conditions selection.
    First you'll want to create a new condition, this button is right next to the Create new event and action buttons.

    You'll see
    Triggering unit is a structure Equal to True

    [​IMG]

    You'll want to stick with Boolean Comparison for this one as well.
    Now you'll want to select the Triggering Unit is a Structure, which is highlighted in blue. You should change the function to

    Unit – Unit Selected by player.

    Now when you select the unit that will be used to enter the region, which will be my peasant. Mine now looks like this,

    [​IMG]

    Again this is what it should look like now.

    [​IMG]

    Now on to the actions. The action I will use is going to be a very simple one, when your unit, the peasant, enters the region another unit, the enemies or allies, will move to the center of that same region.

    Since you now know how to get around the trigger editor I will be a little less descriptive now. This way you will be able to use what you've learned so far to find what you need.

    Now in the Actions section you will want to find the action

    Unit - Issue order targeting a point. Now try getting this one on your own. Get your trigger to look like this, except where it says Order Peasant 002 it will have the name of the unit you selected.

    [​IMG]

    In the image you can see what group the action is in and what to change the specifics to.

    If you have done this correctly you should get this,

    [​IMG]

    TADA! Your done, you've just created your first trigger. Now once you have done this you should gradually make this trigger more complicated. Try adding in unit spawns when you enter the region, or gates you place could be opened. You could do many things from this base trigger.

    Remember, triggering may be complicated and make you want to stop because of the difficulty, but start out small and slowly get more and more complex, that way you'll be able to get better and better.

    I've included the map I made this trigger on in case you need to look at it more carefully.
     

    Attached Files:

    Last edited by a moderator: Apr 12, 2009
  2. Pyritie

    Pyritie

    Joined:
    Nov 26, 2006
    Messages:
    11,357
    Resources:
    60
    Models:
    30
    Icons:
    9
    Packs:
    3
    Skins:
    12
    Tools:
    1
    Maps:
    1
    Tutorials:
    4
    Resources:
    60
    It's extremely basic but I guess it could be useful for the complete noob.
     
  3. hawk_767

    hawk_767

    Joined:
    Aug 23, 2007
    Messages:
    443
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    that was really the aim. For someone who's played the game and understands nothing of triggering. I wasn't trying to aim at anyone who knows slightly what their doing but for people who need somewhere simple to start.
     
  4. medion555

    medion555

    Joined:
    Jun 20, 2008
    Messages:
    467
    Resources:
    0
    Resources:
    0
    Helped me alot with beginning thanks
    (maybe show how to make an opening gate trigger for all players couse i only can make it for player red of blue or teal etc open it and not for all
     
  5. LsK_LaDyGaGa

    LsK_LaDyGaGa

    Joined:
    Apr 22, 2009
    Messages:
    162
    Resources:
    0
    Resources:
    0
    to make gate oppen for al...

    if you want a gate to open for all units you can change certain conditions or delete them entirely. Remeber conditions are restrictions. If you remve a restriction it works on everbody.
     
  6. slake

    slake

    Joined:
    May 12, 2009
    Messages:
    198
    Resources:
    0
    Resources:
    0
    very nice tutorial but that is too simple even for a idiot > try adding more stuff
     
  7. kenxlol2

    kenxlol2

    Joined:
    Jul 21, 2009
    Messages:
    1
    Resources:
    0
    Resources:
    0
    hi, hawk_767. I have try the method you taught in this thread, it is working! I am glad and nervous! But unfortuanately, the trigger is not running while I running in a map which I have imported model. What would be the issue?
     
  8. Tonyvien

    Tonyvien

    Joined:
    Aug 14, 2009
    Messages:
    4
    Resources:
    0
    Resources:
    0
    I dont get what was the point of this trigger, the unit just goes into the center, is that it ?
     
  9. Axarion

    Axarion

    Joined:
    Sep 30, 2009
    Messages:
    675
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Even when I were a totally newbie I could make this Tutorial^^ Sorry but it's way to easy.
     
  10. Visimirsit

    Visimirsit

    Joined:
    Aug 28, 2009
    Messages:
    52
    Resources:
    0
    Resources:
    0
    this is very usefull for a begginer (do not say noob thats pretty unpolite) xP
    Think abut it if he know how to make this triger then the bigginer could try to do other stuff and play with it. Like now i made an event and i have an condition so i can randomly play with the action section... so we have an entering unit event and an bollien condition ( never knew what boolien means but i use it myself xD ) so hmm il chose an action like destructible open/close gate and i chose open. OK COOL now i have a trigger that can open gates! and now he can try to make another trigger that would do the opposite thing. like a unit enters a region. The unit is trigger unit or for example peasant and chose the event to close the gaate :) ok now i have a trigger that will open and close the gates hmm well i wish i could do this easier... well there is a way!!! i delete this trigger and create a better one: unit enters a region trigger unit equals to peasant , destructible open/close gate (lets chose open) then a new action that goes after the open/close one, wait (enter a n umber) seconds and then i make a new action again after the wait action, destructible close gate. so here we have an improved trigger that will open a gate when your unit will go thro and after x seconds it will close :) make the same trigger form the other side of the gate and wohoo we have a perfect door... :) ok now i want to make an respawn (only begginers use this to learn) event: unit dies. condition trigger unit is a blablasomeone, action wait (X) seconds then a new action: Unit- create unit facing angle :) in that trigger u will chose how many units should be created what unit will be created and who will own that unit :) and here u go we have a simple respawn trigger (the most simple. :) ITS VERY BUGGED) but nobody was born knowing :) skills comes with time. :) still im am a begginer with world editor maybe a lil advanced. :) anyways this is good way to learn but i prefer opening other people maps and start playing with triggers :)

    EDIT: P.S. sorry for my english. Still learning it ;p
     
  11. Hashjie

    Hashjie

    Joined:
    Apr 20, 2009
    Messages:
    1,515
    Resources:
    0
    Resources:
    0
    you could also use enters inbetween your text, that can work too (it also gives my eyes a lot more rest) ;)

    example:



    b.t.w. I think this tutorial is a bit to basic to be a tutorial... When I started trigger editing I just dive into the trigger editor play around for half an hour and got the same result ;) I didn't start with any tutorial... I started with some common sence of how things are ;D

    well maybe it's usefull for some people who don't understand the english words: event, condition and action

    because when you understand these words you probably understand a lot more of triggers.

    triggers look a lot like talking to someone:
    I want a unit to enter some area (region)
    and I only want a certain unit type to do that
    now I want to make another unit walk to the area of the first unit

    • doesn't this look like talking?
      • Events
        • Unit - A unit enters Area <gen>
      • Conditions
        • (Unit-type of (Triggering unit)) Equal to Peasant
      • Actions
        • Unit - Order other peasent to Move To (Center of Area <gen>)
     
  12. hawk_767

    hawk_767

    Joined:
    Aug 23, 2007
    Messages:
    443
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    There are a lot of people that try to start and have no basic understanding of it all. These are the type of things I made when I first started. I made this for people to learn if their beginning and to then edit and apply their own twists to however they wish it to be. Just a basic skeleton trigger for someone. Sorry for the non-existing spacing haha didn't realize I did that.
     
  13. nutversion1

    nutversion1

    Joined:
    Feb 11, 2010
    Messages:
    1
    Resources:
    0
    Resources:
    0
    Thank you
     
  14. Animoi666

    Animoi666

    Joined:
    Apr 8, 2009
    Messages:
    428
    Resources:
    0
    Resources:
    0
    true.
    but this tutorial was for dummies who dont know what triggering actually is used for (or w/e). ( i think >_> )

    i would recommend hawk_767 to continue on it a little and maybe go trough a whole list of basic triggerings to expand the knowledge of someone TOTALLY new to this.

    anyways, gj hawk but its still missing something. ^^

    ( 3/5 due to incompleteness in my opinion. )
     
  15. FluXz

    FluXz

    Joined:
    May 5, 2010
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Very handy, thanks!!
     
  16. SasuhKun

    SasuhKun

    Joined:
    Jul 30, 2009
    Messages:
    1,155
    Resources:
    0
    Resources:
    0

    Like me. Thank you very much! +rep
     
  17. RoytjeScheerman3

    RoytjeScheerman3

    Joined:
    Aug 11, 2009
    Messages:
    8
    Resources:
    0
    Resources:
    0
    I think this is to easy. My first trigger was spawning.
    Every 5 sec a footman came and walked somewhere else.
    What complete noobs do is try making an escape or something. So you may want s=to say that they do not have to do that and start easy.
     
  18. Psf_Kurt

    Psf_Kurt

    Joined:
    Feb 24, 2009
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Which in this case would be me. Im making my first attempt of a map after years of playing, and this was helpful :)
     
  19. hawk_767

    hawk_767

    Joined:
    Aug 23, 2007
    Messages:
    443
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    I'm glad this is at least helping some people with no idea where to start. I do realize it is extreeeemely basic, but glad to see people appreciating it. Was thinking I should add a few more basic tutorials getting a bit more complex as I continue through them. We'll see though, thanks for reading the tut guys.
     
  20. Psf_Kurt

    Psf_Kurt

    Joined:
    Feb 24, 2009
    Messages:
    109
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Please do so!
    You have no idea how long it took me just to have the map not giving you auto-Victory as soon as it started :S. I had to put a player 2 controlled by computer and remove some of the "Melee intialization" actions (thats how you do it right?)

    If you do make more tutorials please send me a PM or something so I can check them out.