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.3 replies
Age of Mythology Heaven » Forums » Scenario Design » Trigger Problem
Bottom
Topic Subject:Trigger Problem
lief ericson
Mortal
posted 26 April 2003 11:53 AM EDT (US)         
In the scenario I'm making there are relics scattered across the map. It's an RPG, and as you go you can find these hidden relics and pick them up (you've got some Hersirs). Half way through the scenario, you come to a market where you can sell these relics to the merchants there and get GP's and upgrades. The only problem is that I don't know how to work these triggers. Any ideas?

I've tried a units in area condition, but you need to pick a player and relics are gaia. But there is no gaia option.


SEXITUP.
Former Leader of the FPH Clan
Acting-President of AoMH
AuthorReplies:
DarkKnight_
Mortal
(id: PW_DarkKnight)
posted 26 April 2003 12:13 PM EDT (US)     1 / 3       
Make the relics a player, it really doesn't affect them.

DK
Niadanac
Mortal
posted 26 April 2003 12:22 PM EDT (US)     2 / 3       
Use Distance to Unit,

You can Select The relics as your "unit select" and use the merchant and as the Target. Unit.

mistacheese
Mortal
posted 26 April 2003 05:44 PM EDT (US)     3 / 3       
Edit this line in the trigger.xml

<Condition name="$$22299$$Units in Area">
<Param name="DstObject" dispName="$$22300$$Center Unit" VarType="unit">default</Param>
<Param name="Player" dispName="$$22301$$Player" VarType="float">1</Param>
<Param name="UnitType" dispName="$$22302$$Unit Type" VarType="string">Unit</Param>
<Param name="Dist" dispName="$$22303$$Radius" VarType="float">10</Param>
<Param name="Op" dispName="$$22297$$Operator" VarType="operator">==</Param>
<Param name="Count" dispName="$$22304$$Count" VarType="float">1</Param>
<Expression>trCountUnitsInArea("%DstObject%",%Player%,"%UnitType%",%Dist%) %Op% %Count%</Expression>
</Condition>

That should let you type the player num, 0 being gaia. Hope that works.


Exiled
Battle Dwarves
Battlefields: Kemsyt's Uprise

Mistacheese wins the "Person-who-secretly-emmits-CheeZy's-thoughts" award - Cheezy
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames