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

Scenario Design
Moderated by Yeebaagooon, TAG, nottud

Hop to:    
Welcome! You are not logged in. Please Login or Register.14 replies
Age of Mythology Heaven » Forums » Scenario Design » DISABLE TRIGGER -- too difficult to use without a drop-down list? Here is the fix!
Bottom
Topic Subject:DISABLE TRIGGER -- too difficult to use without a drop-down list? Here is the fix!
Alexandergreat3
Mortal
posted 11 March 2003 08:32 PM EDT (US)         
Hi,

Anyone who had used the effect Fire Event had probably known that there is a drop-down list of triggers that can be selected and activated.

However, with the effect Disable Trigger, there is no drop-down list available. This is difficult to work with, especially when there are a lot of triggers involved... and triggers with long names!

I opened the trigger file, and have managed to fix this annoying, little problem . My trigger now has a drop-down list:

<img src="http://photos.msn.com/imageserver/image.aspx?Image=HcZNnT9kkUgk8XMFImr!eI4LAE0fmoexFdREzC!zxVSc6jx*G8h5gJouCSXP6T8887a6vnz0qxxfHiQYbM5ELMzB5yqM6BEBdJu dO7Xg1PkuRYC9ioXcOKKB9tlMtMadrr2WUJ4uY0bCXNfUdUVUww$$">

--------------------------------

.
Here is how to add this list to your trigger:

.

Step 1: Find the file named Typetest.xml in your trigger folder
. (C:\Program Files\Microsoft Games\Age of Mythology\trigger)

Step 2: When you have found the file, open it using notepad
Step 3: After opened, go halfway down the page, and you will find these really MEAN and SCARY looking lines:

<Effect name="$$22425$$Disable Trigger">
<Param name="TrigName" dispName="$$20509$$Name" varType="string">default</Param>
<Command>xsDisableRule("_%TrigName%");</Command>
</Effect>

Step 4: stay calm!
Step 5: change the word string to event. Change the word default to -1.

Step 6: Save your file
Step 7: Now you can scream...

-------------------------

**NOTE**
There is a concern that this will not work for RM scripts. If you design/play multiplayer RMS that use triggers, please be aware of this. If it doesn't work, then simply change back the wording of the trigger.

This is perfectly fine with custom scenarios.

[This message has been edited by Alexandergreat3 (edited 03-12-2003 @ 11:37 PM).]

AuthorReplies:
jonnycartooney
Mortal
posted 11 March 2003 09:00 PM EDT (US)     1 / 14       
Aaaaaaaaaaahhhhhhhhhhhhhh,

Thanks alot AG3, that makes it so much easier than having to find the trigger you need every time.


--:: Jo NnYCaR tOoNeY::--
AomJunkie - Junkie Assistant
~ www.aomjunkie.com ~
The lighter side of Aom

CheeZy
Mortal
(id: CheeZy monkey)
posted 11 March 2003 09:06 PM EDT (US)     2 / 14       
If it's that easy, why didn't ES do it?

CheeZy ex-HG Angel
WildFire Games - Artist, Lead Scenario Designer, Game Designer for 0 A.D.
"But really, stop fighting and listen to CheeZy when he says use good grammar." - Phantom_rider.
----Stuff I've Made----
Elpea
Hal
(id: lp_usa)
posted 11 March 2003 09:58 PM EDT (US)     3 / 14       
^ true

Niadanac
Mortal
posted 11 March 2003 10:26 PM EDT (US)     4 / 14       

Quote:

If it's that easy, why didn't ES do it?

Why didn't ES do alot of things?

Mojo14
Mortal
posted 12 March 2003 01:18 AM EDT (US)     5 / 14       
That's like asking... why didn't you do it?
kinghades
Mortal
posted 12 March 2003 01:38 AM EDT (US)     6 / 14       
no thats like asking why does poo smell like poo! None knows.

I am a alien from the galaxy Draco. I was here to plant life 1 billion years ago. I have returned to survey this worlds life. To my dissipointment humans have grown to be a menace. You must me eaten to ensure other species survival. You've got 1 month, Sorry. I tried to make it four.
kan_apo
Mortal
posted 12 March 2003 11:08 AM EDT (US)     7 / 14       
That's another good one from you Alexander,thanks .
LicensedDevil
Mortal
posted 12 March 2003 11:34 AM EDT (US)     8 / 14       
has anyone tested it whilst playing with someone who hasn't done it?

Licensed Devil
I'm here to kill your self belief
-=[SCN Punk Network]=-
-=[WebMaster]=-
SCN Punk Empires Editor Guide (or here)
Alexandergreat3
Mortal
posted 12 March 2003 03:10 PM EDT (US)     9 / 14       
LD,

This isn't a new trigger. All it does is enabling the drop-down list for the trigger -- which were supposed to have it like the Fire Even trigger -- to make it easier to use.

This won't cause any compatibility issues.

TwentyOneScore
Mortal
posted 12 March 2003 04:02 PM EDT (US)     10 / 14       

Quote:

This won't cause any compatibility issues.

I'd test it first before saying that. The typetest.xml file is used whenever an RMS containing triggers is used. I know for a fact that the game complains if two players have different versions of the RMS script, so I would image that this could also raise a flag.

The only way the game can be in sync during an online game is if the players start with exactly the same random seed, script and data files. If this file was changed by one user and not the other than this could cause an OOS error.

I bet a pint this is an issue...


"Just invite him over for dinner. Turn him from an enemy into a friend. Then when he's least expecting, BAM! The old fork in the eye!" - M.S.
--
Member Tsunami Studios <<< Play TOS Maps - 9 Maps - Avg Rating: 4.67! >>>
Alexandergreat3
Mortal
posted 12 March 2003 04:50 PM EDT (US)     11 / 14       
TWS,

From my online games, even new triggers such as the Set Current HP by EO works for everyone, eventhough some of the players might not have that trigger enabled on his/her scenario editor.

Besides, this little drop-down list is nothing more than a "visual aid", which all it does is enabling the designer to search for the trigger easier.

Anyhow, if it create any issue, please let me know, thanks =).

LicensedDevil
Mortal
posted 12 March 2003 04:57 PM EDT (US)     12 / 14       
thats my point, set current hp DOESN'T work if both players don't have it...

Licensed Devil
I'm here to kill your self belief
-=[SCN Punk Network]=-
-=[WebMaster]=-
SCN Punk Empires Editor Guide (or here)
TwentyOneScore
Mortal
posted 12 March 2003 06:55 PM EDT (US)     13 / 14       
My understanding is that for a scenario, the typetext.xml is compiled into the .scn when the designer saves it. That means it is transferred with the scenario.

My concern was for an RMS using triggers, the engine uses the LOCAL COPY to create the run time triggers. If the two versions are different, then different triggers could be created for each player.

Your suggested change might not cause any difference in trigger generation, but the game still might complain.


"Just invite him over for dinner. Turn him from an enemy into a friend. Then when he's least expecting, BAM! The old fork in the eye!" - M.S.
--
Member Tsunami Studios <<< Play TOS Maps - 9 Maps - Avg Rating: 4.67! >>>
Alexandergreat3
Mortal
posted 12 March 2003 09:42 PM EDT (US)     14 / 14       

Quote:

My concern was for an RMS using triggers, the engine uses the LOCAL COPY to create the run time triggers. If the two versions are different, then different triggers could be created for each player.

This makes much more sense now! Thank you for clarifying. Your concern about compatibility issue with custom RMS is certainly a very reasonable one.

As I'm not very well-informed with RM scripting, I do not know how to go about testing the effect this new change with the trigger might have with a RMS. If you have any suggestion, please let me know =).

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

Hop to:    

Age of Mythology Heaven | HeavenGames