Go to footer

MT trigger conditions tutorial

Questions and thoughts about RPG in general

MT trigger conditions tutorial

Postby RPG-BLOG.bot » 06.03.2010, 18:00

<em>The following article is written by sol666, an author who just recently tapped into the field of RPG with his first RPG-tracks <a href="http://tmnforever.tm-exchange.com/main.aspx?action=trackshow&id=2359182#auto">Apocalyptic Hybrid</a>, <a href="http://tmnforever.tm-exchange.com/main.aspx?action=trackshow&id=2390195#auto">Orion Invasion</a> and <a href="http://tmnforever.tm-exchange.com/main.aspx?action=trackshow&id=2424257#auto">Ghouls</a>. He was so kind to create a tutorial explaining a specific MT feature he used in these tracks, so many thanks sol666 for sharing this knowledge! </em>

<hr />

<strong>Here is a short guide on how to use conditions in Trackmania's mediatracker.</strong>

I'm sure you all know how to place triggers in the mediatracker and how to make them do something, so I won't explain that.
What maybe not all of you know is that these triggers can have the <strong>following conditions</strong>, which you can change by simply clicking on it:

- none (standard)
- racing time <> x (does not work online!)
- already triggered x
- speed <> x
- not already triggered x

Now "<strong>already triggered</strong>" and "<strong>not already triggered</strong>" are those of interest. If you have ever wondered about the number behind that condition, the answer is very simple. It is the id of the trigger, which gives the condition. When placing a trigger in mediatracker, it automatically gets a <strong>unique id</strong>, starting from zero. So the first trigger you set gets id "0", second trigger gets id "1", ... really simple. <strong>And basically, that's all you need to know :)</strong>

Here is a short example how to use these conditions ingame, taken from my map <a href="http://tmnforever.tm-exchange.com/main.aspx?action=trackshow&id=2390195#auto">Orion Invasion</a>:

<div class="cntr"><object width="853" height="505"><param name="movie" value="http://www.youtube.com/v/-HMj5Sx6l4w&hl=en&fs=1&color1=0x2a2a2a&color2=0xe2ded5&hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-HMj5Sx6l4w&hl=en&fs=1&color1=0x2a2a2a&color2=0xe2ded5&hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="800" height="480"></embed></object></div>

<hr />

Let's assume the following situation (you come from the cp in the middle of the pic and drive "north"): An area of the track is guided by a motion detector (red). You can't pass without having the code to deactivate it. This is how i did it:

First I set the following triggers:

<div class="cntr"><img src="http://Anonymous.nitrolinken.net/tm/blog/solguide12/cosh.jpg" /></div>

<ol><li>id 1: contains the alert / blackscreen (red)</li><li>id 2: contains the message that you used your key (not really necessary, just information...) (yellow)</li><li>id 3: contains the key you need to pass (green)</li></ol>

Trigger 1 now should only be activated, if you haven't found the code (trigger 3) yet. So I set its condition to "<strong>not already triggered 3</strong>".

<div class="cntr"><a href="http://Anonymous.nitrolinken.net/tm/blog/solguide12/01advise.jpg"><img src="http://Anonymous.nitrolinken.net/tm/blog/solguide12/01advisesmall.jpg" /></a></div>

Driving there without having passed trigger 3, you get an alert. Having passed trigger 3, nothing happens.

Trigger 2 gives you the message, that you used the code and deactivated the motion detector. As this should only happen after you found the code, I set it to "<strong>already triggered 3</strong>".

<div class="cntr"><a href="http://Anonymous.nitrolinken.net/tm/blog/solguide12/02pass.jpg"><img src="http://Anonymous.nitrolinken.net/tm/blog/solguide12/02passsmall.jpg" /></a></div>

Driving there without having passed trigger 3, nothing happens. Having passed trigger 3, you get the message.

Trigger 3 now doesn't need any conditions in this case. It simply informs you that you found the code you need to pass trigger 1.
<div class="cntr"><img src="http://www.vinummusik.de/Trackmania/03activatesmall.jpg" /></div>

<strong>And that's basically all</strong>. Surely it gets a bit more complicated when there are more CP's between the triggers. There are a lot of possibilities on how to use this, I think. It's just up to you / your creativity.
For the programmers of you: a big disadvantage of this method is, that it only allows "if-cases". There is no "else". And hell, I would have needed "else-cases" a couple of times.

A useful tip: name all triggers you place with the id it has, just as i did. It really helps a lot when you have pages full of conditions. On this very track I used 41 ingame triggers, and I would have been lost without knowing which id does what.

Hope I was able to bring some light into the darkness of mediatracker conditions ;)

Cheerz, sol666 / =RR= arian sunnO)))<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5666217767742007162-6512179047686185957?l=trackmaniarpg.blogspot.com' alt='' /></div><p style='margin-top:10px;'><a class='externalURL' href='http://trackmaniarpg.blogspot.com/2010/03/mt-trigger-conditions-tutorial.html'>weiterlesen</a>
RPG-BLOG.bot
 
Posts: 79
Joined: 16.04.2010, 17:13


Postby dose » 16.10.2010, 19:46

I have just a question:

How about this example :
I have MT work on my CP#62 (that tells you to do something at #63)
but i don't want to show the message again and again, if they respawn to that CP#62 Before they reach #63 .

So what should be the condition to that cp#62 ?

thanks!

:pleasantry:
MY WEBSITE
AND
FACEBOOK RPG FORUM
????
User avatar
dose
 
Posts: 406
Joined: 14.06.2010, 14:18


Postby trunks_11 » 16.10.2010, 21:31

Hmm, it
User avatar
trunks_11
 
Posts: 739
Joined: 06.06.2010, 18:12


Postby dose » 17.10.2010, 00:28

Thanks, that's what i finaly made :)

:pleasantry:
MY WEBSITE
AND
FACEBOOK RPG FORUM
????
User avatar
dose
 
Posts: 406
Joined: 14.06.2010, 14:18


Return to Board index

Return to RPG Talk

Who is online

Users browsing this forum: No registered users and 1 guest