Advanced Triggers Set
==== Trigger Set Version Updates ====
*February 7 2007:
- Army Add/Remove Unit accepts multiple unit selections, under request of unnamed person.
- Quest Var Compare Group and Save Highest/Lowest fixed when using > or <. Wrong version was put into pack.
- ID Viewer allows multiple unit selections, under same idea.
*February 5 2007: Released.
Works on both Expansion and Non-Expansion (See Readme for Further Details)
Visit www.pftq.com/Advanced_Triggers/ for video/screenshot demonstrations. :p
Many of the effects/conditions you find here have long been said "impossible" or require just far too much labor to achieve. I would therefore like to announce that below, you will find them all working perfectly and perhaps even more powerful (more features) than you expected.
Example: Convert Units in Area
- This is one of numerous effects once claimed rather "impossible" due to a lack of a command such as trConvertUnitsinArea. However, using advanced Knowledge Base Queries, this is achieved perfectly and even more customizable than a standard Convert Units in Area would have been.
For Age of Mythology, you can now build yourself new effects with the "Army - " effects. There is much power in these effects as you can use "Army - Add/Remove Units in Area" to add units in an area to an army. Then apply any effect/condition to these units using the already existing Army effects/conditions. That is but one of several "Army - " effects you can use to create new effects.
Note: Please read over the included Readme file for important information on using the effects/conditions. This description is incomplete.
CHANGES AND UPDATES
For those who have downloaded these effects/conditions before, please delete them and install these. Not only are countless issues fixed and many improvements made, the new files keep the effects/conditions seperate from the original and easy to remove/update.
Changes from the original effects/conditions include:
- Center/Target Unit now works perfectly
- All units can be used to Center/Target Unit (even Cinematic Block)
- All fields accept any form of data INCLUDING but not limited to:
-- Quest Var Code (enter trQuestVarGet("QVNAME"))
-- Player Stats (enter trGetStatValue(PLAYER, STATID_NUMBER))
-- Math Operations (5*PlayerStat)
-- Any XS Code (just open the typetest.xml and start digging!)
XS Effects/Conditions have been included to allow you to enter any form of data for the original effects/conditions as well, even the Unit Selection. This allows you to make use of "QV Set OBJECT ID" effects and enter the QV with the OBJECT ID stored.
THE EFFECTS AND CONDITIONS
<< Sharing Scenarios >>
Triggers do not "mod" games. They are saved and carried with scenarios that use them. Therefore, people who view a scenario with these effects/conditions do NOT require them installed.
<< Online Usage >>
All effects/conditions, whose standard counterpart works fine online, will also work fine online. Those that have counterparts which normally do not work online (Teleport), will not work online. Also take note if the effect/condition name contains "MP" or "SP", signifying whether the effect/condition is designed for Multiplayer or Singleplayer.
<< Modding my game?! Will I be able to play online?! >>
Of course you will. This is not a mod in the general sense, but rather an add-on to the editor. It will not affect your normal gameplay.
-------LIST OF EFFECTS AND CONDITIONS------
These are all the effects/conditions contained in this set:
- Army Add/Remove Unit
- Army Add/Remove Unit of Type
- Army Add/Remove Units in Area (Center Unit)
- Army Add/Remove Units in Area (Point)
- Army Copy From Army
- Army Remove Units with HP
- Army Remove Units with Percent HP
- Army Remove Units by Index
- Army Remove All Units (Clear)
Change Name in Area
- Change Name in Area (center unit)
- Change Name in Area (point)
Convert in Area
- Convert Units in Area (center unit)
- Convert Units in Area (point)
Copy Units in Area
- Copy in Area SP (center unit)
- Copy in Area SP (point)
- Copy in Area MP (center unit)
- Copy in Area MP (point)
- Copy/Convert in Area SP (center unit)
- Copy/Convert in Area SP (point)
- Copy/Convert in Area MP (center unit)
- Copy/Convert in Area MP (point)
Move to Self in Area
- Move to Self in Area (center unit)
- Move to Self in Area (point)
Near Unit Effects
- Army Build Building Near Unit
- Army Deploy Near Unit
- Army Move Near Unit
- Army Teleport Near Unit
- Invoke God Power Near Unit
- Move From Area To Near Unit
- Move Near Unit
- Teleport Units to Near Unit
- Unit Build Building Near Unit
- Unit Create Near Unit
Near Point Effects (Optional, Pt File)
- Army Build Building Near Point
- Army Deploy Near Point
- Army Move Near Point
- Army Teleport Near Point
- Invoke God Power Near Point
- Move From Area To Near Point
- Move Near Point
- Teleport Points to Near Point
- Point Build Building Near Point
- Point Create Near Point
QV Compare Group Set
- QV Compare Group (Condition)
- QV 1- Start Highest or Lowest
- QV 2- Save Highest or Lowest
QV Set Army Effects
- QV Set Army Num. Units
- QV Set Army Current HP
- QV Set Army Max HP
- QV Set Army Health (Percent HP)
- QV Set Army Num. Units with Min. Health
- QV Set Army Unit OBJECT ID
QV Set Unit Effects
- QV Set Unit Current HP
- QV Set Unit Max HP
- QV Set Unit Health (Percent HP)
- QV Set Unit Action Type ID
- QV Set Num. Workers on Unit
- QV Set Unit OBJECT ID
- QV Set Unit (OBJECT ID) in Area (Center Unit)
- QV Set Unit (OBJECT ID) in Area (Point)
QV Set Units in Area
- QV Set Units in Area (Center Unit)
- QV Set Units in Area (Point)
QV Set Distance to Unit
- Scatter - Random in Area (center unit)
- Scatter - Random in Area (point)
- Scatter - From Original Location (center unit)
- Scatter - From Original Location (point)
Teleport Units in Area
- Teleport Units in Area (center unit)
- Teleport Units in Area (point)
To Unit Effects
- Army Build Building At Unit
- Army Deploy To Unit
- Army Teleport To Unit
- Invoke God Power At Unit
- Move From Area To Unit
- QV Invoke God Power At Unit
- Teleport Units in Area (center unit) To Unit
- Teleport Units in Area (point) To Unit
- Teleport Units to Unit
- Unit Build Building At Unit
- Unit Create At Unit
- XS version of all appliable effects/conditions
ABOUT THE EFFECTS/CONDITIONS
I do not claim to have "discovered" the commands used to achieve this however. The proper credits would perhaps belong to TwentyOneScore, who actually discovered how to use these commands and had done so many times in his maps, nearly 4 years ago (2003). Note that I do not state he discovered the commands themselves; they were listed in Age of Mythology's documentations. He discovered how to "use" them in triggers. Originally, they were listed for other aspects of the game such as AI and victory conditions. Unfortunately, he did not post many guides (if at all) and primarily created Random Map Scripts; the commands were then forgotten and buried once he left.
Still, much effort and many days have been put into this pack to make it function properly. As said before, TwentyOneScore did not post much about this; rather, he only posted a list of these commands and sometimes a few examples (with not clear explanation of the commands themselves). Instead, I myself had to actually "rediscover" many of what he probably already knew. This is well illustrated by the fact that the original effects/conditions, for example, selected object ids instead of name ids - in which they would corrupt when units were deleted. More frustrating moments involved actually figuring out how to use and customize kb queries out of close to nothing. It can be said that although TwentyOneScore perhaps was first to use them, I very little reference and in a way, had to start from near scratch.
Note that not all effects/conditions here relied upon those commands. Some are in fact created just from me. Such examples include the "QV Save Highest or Lowest", which allows one to grab the highest/lowest QV out of a group of _infinite_ number of QVs. The effects stack and comparisons can be reset (start fresh) by a mere button in the effect panel. Another excellent example which I do not believe has been done before, is the ability to preserve unit relative locations when teleporting (or copying). The current Teleport Effect places all units in one spot; enabling "Retain Unit Positions" will force it to remember where the unit was, in relative to the center location. Yet another example is the "Scramble" effect. This uses just fancy QV math to calculate a random position, in whatever boundaries one chooses (even a radius within each unit itself). Many of the effects/conditions here are also purely of my own trigger work.
|Author||Comments & Reviews ( All | Comments Only | Reviews Only )|
Holy .....A truly worthy addition to the already formidable AoE3 Heaven arsenal. A work its author may pride over for years to come. Congratulation, Ptfq. I salute.
Great new effects.
They work great.
Thanks to pftq's new effects players can now build fixed guns anywhere on the map with my new scenario "Strategic Objectives".
Id love to have it but, (this is a stupid question) is it available for the twc?
Yes it works with The War Chiefs (aka expansion). Read the instructions above and notice this line: ‘Works on both Expansion and Non-Expansion’.
After downloading this I realized just how many possibilities were missing from the editor before. Thanks pftq, great job!
i need help (enter trQuestVarGet("QVNAME")) doesn't work as it has " in.
EDIT: i found it does work in chat effects, but i wanted to set an amount to tribute, but it didn't seem to work, and just made all the triggers stop. also could you write a more detailed uide on using XS, as i don't get what you use it for at all.
[Edited on 01/05/08 @ 07:20 PM]
this is aom triggers on aoe3 heaven?!
A couple of noob questions:
Could not get teleporting to work for single player or multiplayer. It seems to want a Unit ID which I cannot get. I've tried to use the ID lookup but failed. How do you find the Unit ID without having the proto file open in Wordpad while you are using the Editor? For instance, I want all types of units to go through the Teleporter I made. But there's no apparent way to set it up so units of more than one specific Type can pass through. Is there a "all" code? I tried looking up the numeric codes for MercStradiot and Musketeer in the ID Lookup thingy but it didn't give me any numbers, codes, etc.
I want all nearby units to be teleported, not just one type. what Unit ID do I use to specify all units from all players in a given radius of a point? Like if Player 1 and computer AI Player 2 both have 1 explorer, 5 musketeers, 2 hussars, and 5 Pikemen each inside the "teleporter" start radius at the same time, I want ALL units inside the "teleporter" radius to teleport to the destination radius together after a brief delay, not just one player's units or only one unit type. How can I set this up using your trigger set?
lastly, can I use the Condition "Units in Area" with your Teleport Units from Point to Point even though the default Condition "Units in Area" requires you specify a Center Unit? I'm using a Gaia cinematic block as Center Unit but for the Effect I'm placing a Set Area flag in/on the Cinematic Block. Is this okay? Why might it not work?
[Edited on 10/04/08 @ 07:57 PM]
Additional Comments: All working and all round brilliant. You can install it for TAD by putting the files in "trigger 3" insted of "trigger" or "trigger 2"