You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Dr Nicks Trigger Tutorial (For Newbies)
posted 12 May 2004 09:54 PM EDT (US)   
Okay, I know that there’s a lot of information on this topic already. That being said, there doesn’t seem to be any information that is geared toward the beginning designer. So, in the spirit of fostering a larger, more competent community, here is:

Dr Nicks Trigger Tutorial (For Noobies)

Okay, so you’ve opened up the editor and you know how to place terrain and units and you know (from playing the campaigns probably) that you should be able to do a lot more. You may have heard of triggers. You may have even read other tutorials on triggers, but were confused. Well, you’ve come to the right place. I won’t go over the more technical things; there are tutorials for that already. I won’t go over every possible trigger; There are also tutorials for that. What I attempt to do through this tutorial is explain just what a trigger is in language you can understand. So let’s begin.

Chapter 1: And Now For Something Completely Different…

Okay, first I’m going to go over something with you that you should know and that will dramatically improve your chances of understanding triggers. It is however, not really AOM related. It is English (yeah, as in the language) and logic.

I want to discuss with you sentences that start with the word IF. As in: “IF its lunch time, THEN I will eat lunch.” I know this is a rather stupid sentence, but bear with me here. Notice that there are two parts to this sentence: the cause: “IF…” and the effect: “THEN…”. This is important. Note also that the opposite is true: “IF it is NOT lunch time, THEN I will NOT eat lunch.” Are you with me so far? Good. Okay, now we can even make additions to this statement as in: “IF it is lunch time AND we have food, THEN I will eat.” Or even the other way: “IF it is lunch time, THEN I will eat AND take a nap.” Okay. Notice the key words here (you should I capitalized them). IF…THEN is a shorthand for this type of sentence. I will call it that from here on out. AND is a sort of addition. Note I can also use OR for a slightly different result, as in: “IF it is lunch time OR I am hungry, THEN I will eat.” The important part is that there are two major parts to the IF…THEN: “cause” or more appropriately, “Condition” (IF) and “Effect” (THEN). Okay, Now for the good stuff…

Chapter 2: Trigge-Who?

Okay, I’m not going to go into exactly what a trigger is, as this would be very technical. Instead I’m going to tell you what a trigger is like and what it does. Then I will describe (in general terms) how to use them. Ready? Lets go.

A trigger is like an event. That’s right. You can create events in your scenario using scenarios. An event can be anything from a unit walking somewhere, to a certain technology becoming forbidden to a certain player. There a great many events possible using triggers. This is what a trigger does.

Are you ready for what a trigger is like? It may surprise you….A trigger is LIKE Chapter 1. That’s right, it’s very easy to convert a trigger into an “IF…THEN” sentence and (more importantly) vice versa.

Okay so here’s how to use a trigger. The scenario editor comes equipped with a “trigger editor” If you open that up (You can either go to the "Trigger" menu and select "Triggers", or by pushing the button that looks like a wheel thingy on the toolbar, your choice) you will get a window that has two sections. The one on the left is all of your triggers. The one on the right is where you can edit them. So, if this is a new scenario, you won’t have much in either window. This is because there are no triggers yet.

Chapter 3: But how do you use it?

So the first thing you need to do is create a new trigger. This can be done by pressing the “Insert” button. Now on the left you will see something like “Trigger235” or something similar. This is the name of your new trigger. There will also be some stuff on the right. Make sure that the radio button marked “Trigger” is selected. This is where you will set up your trigger’s basic type stuff. NAME is where you can give your trigger a better name then “Trigger235.” I always recommend renaming this to something more descriptive of what your trigger will do.

There is also something called “Priority” with a little scroller thingy. With this you can set how likely it is that this trigger will activate, giving it a sort of a random effect. If you set the priority to high it will pretty much always activate when its supposed to, but if you have too many High priority triggers, you will experience the mighty unstoppable force otherwise known as “Lag.”

In addition, there are some check boxes. These I will leave to your experimentation. They are pretty self explanatory. So now, you have a trigger, and it has a name and a priority. But, how do you get it to do something.

Well, remember that old “IF…THEN” thingy. The THEN part always had an action. Something was always done (“THEN I will eat.”). This is the action you want your trigger to take, so I want you to look at the left panel in the Trigger Editor window. There are three options: “Trigger”, “Condition”, and “Effect.” Does that remind you of anything? Here’s a refresher: “IF” can also be called the “Cause” or, more appropriately the ”Condition”, “THEN” can also be called the ”Effect”. It should all be starting to come into place now. The option (“Trigger”, “Condition”, and “Effect”) that you select will change the right-hand portion of the Trigger Editor into the appropriate action. In other words, if you select “Condition” it will change into a place where you can select your condition (your “IF”) you can also add more than one “Condition” and the effect is the same as “AND” in the “IF…THEN” sentence. You may notice you can also change this to “OR” for the desired result. There is also a place to check “NOT”. It all makes sense now doesn’t it?

Chapter 4: Conclusion

Okay, so now you have a basic Idea of what a trigger is and how to use it. Remember that a trigger has two basic parts: “Conditions” and “Effects” if you use these terms when asking questions on the forums, other formers can understand you better. As in: “I have a question about this Condition.” Instead of “I have a question about this trigger.” Also, I recommend reading the other tutorial guide in the AOMH Design Library. It should make a lot more sense now.


Where be your gibes now? your gambols? your songs?
Your flashes of merriment, that were wont to set the table on a roar?
Not one now, to mock your own grinning?

[This message has been edited by DrNick (edited 05-13-2004 @ 07:05 AM).]

Replies:
posted 12 May 2004 09:58 PM EDT (US)     1 / 11  
DrNick, I must say that your guides are very good quality and I speak for the Scenario Design community when I say: thank you for devoting your time to better improve the learning environment of this community.

//////////////-Halus-Cryxibus-\\\\\\\\\\\\\\
**********--Halo-Cryxos--**********
*######################*
*######################*
*######################*
***********************************
posted 12 May 2004 10:07 PM EDT (US)     2 / 11  
Thank you very much. I am glad that my guides are appreciated.

Where be your gibes now? your gambols? your songs?
Your flashes of merriment, that were wont to set the table on a roar?
Not one now, to mock your own grinning?
posted 12 May 2004 10:26 PM EDT (US)     3 / 11  
Will it be considered stealing if I do one, too. I was going to, but I had a concert.

Why vote
for a
JOhnKErry

BUSH |*=|
Cheney'04


posted 12 May 2004 10:30 PM EDT (US)     4 / 11  
I don't care. Just give me credit for any ideas you take from mine.

Where be your gibes now? your gambols? your songs?
Your flashes of merriment, that were wont to set the table on a roar?
Not one now, to mock your own grinning?
posted 13 May 2004 01:39 AM EDT (US)     5 / 11  
what how could this be a guide when he seys stuff like this

Quote:

So the first thing you need to do is create a new trigger. This can be done by pressing the “Insert” ( I think ) button.


and

Quote:

(using either the menu, or by pushing the button that looks like a wheel thingy)

but i kinda didn't need the guide but good job anyways


(¯`·.¸¸.·>§σŕçęŕõŕ øƒ Σŕεbùś<·.¸¸.·´¯)
Professor for the Tsuninversity
Teacher for the NDA
Moderator At Age Quest
posted 13 May 2004 06:05 AM EDT (US)     6 / 11  
@DrNick:
Fine article, Dr Nick!
We would like to know if we can add your article to the Tsuniversity?

storycreator
Head of The Tsuniversity
and the Tsunami Studios
posted 13 May 2004 07:09 AM EDT (US)     7 / 11  
@Sorceror_Erebus: Picky, picky. Just for you, I will take out the "I think" and make the second sentance a little more clear. I would like to know what you call the wheel-thingy though. Maybe its a valve?

@storycreater: That would be great. Thank you. If you want it, I have another guide here.


Where be your gibes now? your gambols? your songs?
Your flashes of merriment, that were wont to set the table on a roar?
Not one now, to mock your own grinning?

[This message has been edited by DrNick (edited 05-13-2004 @ 07:16 AM).]

posted 14 May 2004 02:00 AM EDT (US)     8 / 11  
ooooooooooo poo i forgot to add my guide storycreator

someone told me i should... who was it ...... i should do that on the weekend

@nick... thank you for changing it for me... i'm not very picky i just didn't like the guide


(¯`·.¸¸.·>§σŕçęŕõŕ øƒ Σŕεbùś<·.¸¸.·´¯)
Professor for the Tsuninversity
Teacher for the NDA
Moderator At Age Quest
posted 14 May 2004 03:47 AM EDT (US)     9 / 11  
@DrNick:
Thanks. I'll add post a link to the uploaded articles here.

@SorcerorErbus:
I guess it was Byzantine Warrior, our AoM guy.
Can you give me a link to that guide?


storycreator
Head of The Tsuniversity
and the Tsunami Studios
posted 14 May 2004 04:33 AM EDT (US)     10 / 11  
done its the guide to making a Bridge
enjoy

(¯`·.¸¸.·>§σŕçęŕõŕ øƒ Σŕεbùś<·.¸¸.·´¯)
Professor for the Tsuninversity
Teacher for the NDA
Moderator At Age Quest
posted 18 May 2004 12:06 PM EDT (US)     11 / 11  
@Sorceror_Erebus:
Looks great!
I'll upload it soon, too.

storycreator
Head of The Tsuniversity
and the Tsunami Studios
Age of Mythology Heaven » Forums » Scenario Design » Dr Nicks Trigger Tutorial (For Newbies)
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames