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

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Tutorial on installing Triggers
posted 06 May 2007 08:23 PM EDT (US)   
Recently I noticed a few people were having trouble installing triggers from the code that was posted.
So I decided to make a guide with screenshots to show step by step on how to do it.

Let's start with a trigger code.
nottud's Transform trigger.

Next Highlight the trigger code.

and press Ctrl C to copy the code, or right click copy.

Then go to C: Program Files/Microsoft Games/Age of Mythology/trigger2

Now you have two options.
The first one is to edit an existing trigger file to include the trigger.
[JPEG, (277.79 KB)]
Right Click, open with, notepad.

You should have something that looks like this.
[JPEG, (255.07 KB)]

Scroll down to the bottom, and paste with Ctrl V or right click paste, between the <effects></effects> tags.
[JPEG, (269.56 KB)]

Next you save it.
[JPEG, (321.82 KB)]

Done.


The other way is to create a new trigger file.
Right click, new, textdocument.
[JPEG, (362.89 KB)]

Then name it, and open it.
Then you need to basic code.<?xml version = "1.0"?>
<trigger version="2">



<Conditions>
<Condition name="$$22289$$Always">
<Expression>true</Expression>
</Condition>
</Conditions>

<Effects>
<Effect name="$$22355$$SetIdleProcessing">
<Param name="IdleProc" dispName="$$22356$$Process Idle:" varType="bool">true</Param>
<Command>trSetUnitIdleProcessing(%IdleProc%);</Command>
</Effect>
</Effects>
</trigger>
[JPEG, (150.20 KB)]


Then save it. Remember to have .xml after the name.
[JPEG, (306.58 KB)]

Done.


When pasting a trigger in the file, it should go between the <conditions></conditions>
if it is a condition.
And <effects></effects>
if it is an effect.

If you downloaded a .XML or a .XMB file it should be placed in C: Program Files/Microsoft Games/Age of Mythology/trigger2

If you have any questions and/or suggestions, feel free to post them here.

(_̅_̅(̲̲̲̲̲̅̅̅̅̅̅(̅_̅_̲̅marij̲u̲̅an̲̅a̲̅̅_̅_̅_̅()
(is not as helluva drug as pepe)

[This message has been edited by Freaky2 (edited 05-20-2007 @ 10:52 AM).]

Replies:
posted 07 May 2007 01:40 AM EDT (US)     1 / 3  
Great guide!

Will probaly come in handy to link newbies to.


Yes, periods and smileys are the same for me
No matter what you say
posted 07 May 2007 04:52 AM EDT (US)     2 / 3  
I knew everything in that guide except the trigger2 bit. Thanks, I'm gunna mess up my editor now!

Hello, my name CHEEZ BIX:
  • Download the beta version of my map, Hero Wars: Godpowers Unleashed!
  • posted 07 May 2007 07:48 AM EDT (US)     3 / 3  
    I would call this an excellent and very unselfish but useful job!
    Finally!
    Age of Mythology Heaven » Forums » Scenario Design » Tutorial on installing Triggers
    Top
    You must be logged in to post messages.
    Please login or register
    Hop to:    
    Age of Mythology Heaven | HeavenGames