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

Scenario Design
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.1659 replies, Sticky
Age of Mythology Heaven » Forums » Scenario Design » Have a Trigger Request? Post it here!
Bottom
Topic Subject:Have a Trigger Request? Post it here!
« Previous Page  1 ··· 10 ··· 20 ··· 30 ··· 40 ··· 50 ··· 60 ··· 65 66 67  Next Page »
Elrich
Hero
posted 23 July 2010 11:41 AM EDT (US)         
So you have a question trigger request?

You can post it here!



Hello and welcome to the Trigger Request Thread (TRT). This thread's purpose is only to place trigger requests and discuss them. If you have unrelated questions or need help with triggers, please use Azur's thread!



Before posting your request, it's always good to read the so-called FAQ.

  1. What is a FAQ?
    The term "FAQ" (when pronounced, it rhymes with "back") is an acronym for Frequently Asked Questions.

  2. How do I install a trigger?
    When we have finished making your trigger, we'll post the required code here. To install this code you will first of all need to find your way to the AoM installation folder. C:\Program Files\Microsoft Games\Age of Mythology by default). Now open the trigger folder if you intend to use the trigger in vanilla, or open the trigger2 folder if you use The Titans expansion. Next, open the file called typetest.xml. The only thing left to do is copy the code at the right position and save. If you requested a condition, then place the line above < /Conditions>, if you requested an effect paste it right above < /Effects>. Note the "s" at the end of both tags.

    Notes:

    1. When copying the trigger from someone please click first and only then copy the required code.
    2. If you're still uncomfortable with installing triggers please backup the original typetest file, i.e. copy the original to another folder.


  3. How do I uninstall a trigger?
    If a trigger happens to be faulty or if it generates errors you better remove it. Just do as if you were installing a new trigger, but instead of copy-pasting new code, remove the code corresponding with the chosen trigger. Make sure to remove it completely, including the starting < effect > or < condition > tag and the corresponding < /effect > or < /condition > closing tag. Failure to do so properly will cause XML errors in the file making ALL triggers in that file inaccessbile for AoM.

  4. So... How exactly are new triggers made?
    AoM has a built-in engine that can parse XS code. Triggers are programmed and interpreted using this language through a series of existing functions. Since there are over 600 functions, and only a few are used by the default triggers, this leaves plenty of room for a whole new set of advanced, useful triggers.

  5. Can I request anything?
    Although we can do a lot with today's knowledge, there are still limitation we won't ever get around. So if you think of a cool new trigger, make sure to post a request but don't forget you might get a negative reply. Commonly requested triggers that are not possible include (but are not limited to):

    • Modify Unit: change the stats of 1 particular unit.
    • Change Playername
    • Change Major God
    • Transform ALL units on map for player
    • I'll add more when I think of them.


  6. I want to learn trigger scripting, how do I do that?
    It takes quite some time, but if you really want to learn trigger coding, we recommend fully understanding XS language before you start making triggers. Therefore, go here: Master XS (WIP). If you want to skip all that, and you want to be able to create only simple triggers, read this guide.

  7. Help! My triggers have stopped working!
    Triggers Stop Working Guide. Also linking camera tracks, using Run Immediately, sound timers and decimals in conditions like Timer and Distance to Unit effect, might cause this. Moreover, typing an invalid name on the Victory Conditions will cause a trigger block. But post these sort of questions in the Great Question thread.



Resources

Recommended Downloads:
  1. Trigger Loader 2 + Quest Vars (AoM && TT) by invent00r and Mythic_Freak
  2. SomeNewXTriggers 3 (TT) & SomeNewTriggers 4 (AoM) by Reyk
  3. Proactive Triggers (TT & AoM) by invent00r
  4. Advanced Triggers Set (TT) by pftq
  5. New Custom Triggers (TT) by Baseballkid14
  6. Nottud's Latest Triggers by nottud
  7. Conditonal Effects (TT & AoM) by nottud
  8. Angry Levels (TT & AoM) by angryzor
  9. SIMSTools (TT) by angryzor
  10. Target Protounit Query by HailToTheOboe

Miscellaneous:
  1. First TRT by invent00r
  2. Trigger Templates by Mephiles
  3. A list of all guides sorted by Paperfriend




Posting a Request

So you have read the FAQ and want to post a request? OK, go for it, just be sure to use the following format:

Name - This should be as straightforward as possible. Try to comply with today's standards.
Description - Always describe the actions that you want the trigger to perform.
Example - Optional. An example can be a great help when requesting complex triggers.


[b]Name[/b] -
[b]Description[/b] -
[b]Example[/b] -


We might even ignore posts in other formats if we're in a bad mood
Remember that not all triggers are possible but we will try our best.




Unfinished Requests

  • Unit Patrol by Bingo Little
  • Army Wander by Endarron
  • QV Damage Units in QV area by name by mrjonathan0
  • Unit Heading Towards Unit by dwieeb
  • Damage units in Area by % (has been done before?) by Steak And Khan
  • Most Units In Area by Sir_Hans
  • QV Modify x by satansfall
  • Move from area to random area by Mister SCP
  • Set Unit Formation by aZeusDude2
  • Army Deploy Random Myth Unit by bgan
  • QV Randomize Series by Alexgd92
  • Convert all except protounit (or unit) by Joshonator
  • SET Ambient Colour/Sun Colour/Sun Specular/Terrain Ambient Fade Version by andrewv42
  • Damage units near army by AJER
  • QV count units in area with state by AuroraP
  • QV Grant random resources per stat by AuroraP
  • Condition: Random Timer by SwordOfValor
  • Army deploy in line by SwordOfValor
  • Condition: unit (type/in area) worked on other unit. by WinstonShnozwick
  • Gruoup selected by Guard of Olympus
  • Pick Unit by XxXItachiXxX
  • Modify Protounit All Percent by AuroraP
  • Random Forest by Bubble

  • Finished Requests

  • Damage Units near protounit for sneaky_squirrel & mrjonathan0
  • Move units from area to unit for Azur
  • Clear Chat History of Player & Chat Contains Anything for Lewonas
  • QV Change unit type by ID for Yeebaagooon
  • Move to QV Unit for Yeebaagoon
  • QV Modify Protounit for Xzyiothe
  • Player Kill GP Slot for Titanic Kraken
  • Move all player units for Anstar
  • Protounit Change Name for Dimir_Guildmage
  • Shop start/end with max for Mephiles
  • Diplomacy trigger for Yeebaagooon
  • Diplomacy both ways trigger for Yeebaagooon
  • Modify protounit trigger for Yeebaagooon
  • Convert trigger for Yeebaagooon
  • Make all units have no bonuses for Brighty
  • Conditional Army Units in Area for Sneaky_Squirrel
  • GROUP Select 2 for AuroraP
  • Send QV Color Chat for Alexgd92
  • Quest Var xModify for Alexgd92
  • QV Randomize 4 amounts for Alexgd92
  • QV Set Population Count for Beelzebub
  • Units in area of army for SwordOfValor
  • Damage units in area of army for SwordOfValor
  • AG with armies for SwordOfValor
  • Army deploy QV Count for Silicone Ruff Jr
  • Quest Var set rank for gunner1
  • Convert units in area to random player for Zorx
  • Units Change Name By Type for beerad
  • Army deploy where the units facing for SwordOfValor
  • Unit Heading Towards Unit for Noble
  • Convert Random Units In Selection for xEXOLARx
  • QV Set Units in Area (Center Army) for SwordOfValor
  • Move Units from Area (action) for SwordOfValor

  • Enjoy.
    Last updated: 03 september 2009

    In all your science of the mind, seeking blind through flesh and bone
    Find the blood inside this stone
    Well, I know I've never shown what I feel, I've always known
    I plan my vengeance on my own - and I was always alone
    AuthorReplies:
    Lewonas
    Mortal
    posted 07 April 2018 05:39 PM EDT (US)     1651 / 1659       
    If the building is destroyed, it picks the next in order of construction or sth. (dunno if the first one started constructing, or the first one finished is next in the list).
    I believe it's the first one you started and also finished constructing, or better said, the temple you finished constructing which has the lowest unit ID. The moment you start constructing a building, a unit ID is generated for the building. All unit IDs are generated in an ascending order, so the temple with the lowest ID value, that has been fully constructed and is still alive is the one that's picked. But this is just my speculation.
    Can a trigger be made using the same code the techtreex uses? Or is it already there with the basic triggers as some sort of unit create working online?
    IIRC, the code that's executed by the techtree is probably hardcoded somewhere in the .exe file. So you would have to come up with your own trigger solution. You can use unit queries to find a temple with the lowest unit ID and deploy the units there. But, unfortunetaly, I don't believe there's a command that can retrieve the gather point of a building.

    What are the key ingredients to make a popular RPG? To find out, read the results of the RPG survey.
    Want to create an advanced patrol/pathfinding system? Have a look at the powerful Pathfinding triggers.
    Games I'm playing: The Witness [80%] Chivalry: Medieval Warfare [20%]
    scragins
    Heretic of December
    posted 08 April 2018 09:14 AM EDT (US)     1652 / 1659       
    There is a trigger that I have used in the past, it might have been made by Nottud. It was a train unit effect. Using you could select a unit (building) and train a unit with it. The trained unit would then move to therapy point for the build it was trained from.

    I think I was able to control the rally point using the move to unit effect. This may be useful when you are trying to work out where the rally point is set to.
    Lewonas
    Mortal
    posted 08 April 2018 10:14 AM EDT (US)     1653 / 1659       
    Yes, you could work it out like that, but it's very clumsy. There also doesn't seem to be a command that retrieves the route a unit is following or the destination the unit is moving to. Otherwise that could have been use to retrieve the gather point location.

    What a mess. So when is finally the next generation of the Age of games coming out without all these poor design choices and restrictions? It just hurts to think about the possibilities and incredibly awesome creative scenarios that could be made if we finally would get our hands on a proper modernized map editor and stable online servers where random Out of Synch errors are a thing of the past. 10 more years?

    /rant

    What are the key ingredients to make a popular RPG? To find out, read the results of the RPG survey.
    Want to create an advanced patrol/pathfinding system? Have a look at the powerful Pathfinding triggers.
    Games I'm playing: The Witness [80%] Chivalry: Medieval Warfare [20%]

    [This message has been edited by Lewonas (edited 04-08-2018 @ 10:18 AM).]

    damaskditager
    Mortal
    posted 10 October 2018 09:08 AM EDT (US)     1654 / 1659       
    Hi everybody!
    I made this trigger, it works perfect, but only one thing needed to add and I don't know how to do it . Please can you add Unit's name before text?

    < Effect name="Send Chat Fron Unit With Sound/Flash/Anim" >
    < Param name="PlayerID" dispName="From Player" VarType="player">1< /Param >
    < Param name="SrcObject" dispName="Unit" varType="unit">default< /Param >
    < Param name="Text" dispName="Text" VarType="string">Hello< /Param >
    < Param name="Duration" dispName="Flash Sec" varType="float">5< /Param >
    < Param name="Sound" dispName="Sound" varType="sound">chatreceived.wav< /Param >
    < Param name="AnimName" dispName="Animation" varType="string">< /Param >
    < Param name="LoopIt" dispName="Loop:" varType="bool">false< /Param >
    < Command loop="" loopParm="SrcObject">trUnitSelect("%SrcObject%");< /Command >
    < Command>trUnitHighlight(%Duration%, true);< /Command >
    < Command>trChatSendSpoofed(%PlayerID%, "%Text%");< /Command >
    < Command>trUnitSetAnimation("%AnimName%",%LoopIt%);< /Command >
    < Command>trSoundPlayFN("%Sound%");< /Command>
    < /Effect >

    for example
    ("unitname": "text")
    (Ajax: hello)

    [This message has been edited by damaskditager (edited 10-13-2018 @ 05:17 AM).]

    Apoc2077
    Mortal
    posted 19 October 2018 11:28 PM EDT (US)     1655 / 1659       
    Are there any triggers that let you save and load QVs to and from a file?
    Izalith
    Mortal
    (id: Lilitu)
    posted 20 October 2018 12:56 PM EDT (US)     1656 / 1659       
    U could make your own trigger file and hardcode all the QVars u want in some effect in there. o.o

    Just every time u change number, you'd have to delete the effect & put in the new one instead.

    Azarath Metrion Zinthos

    Steam: Order of Azarath
    Twitch: twitch.tv/orderofazarath
    Discord: Azarath @ https://discord.gg/3ENKJeb
    Adjudika12
    Mortal
    posted 30 December 2018 10:34 PM EDT (US)     1657 / 1659       
    Hi, if anyone coould help me with this trigger it would be great!

    I need a condition that allows me that every time a specific unit is killed, for example lets say a Spearman, it triggers some effects.

    This sounds silly at first, but actually the conditions that we have available, even with advanced triggers, can't fulfill this condition.

    The "is dead by name" condition takes a single kill as a fulfullment of the condition for the whole scenario and this does NOT reset even if the trigger that contains the condition is disabled.

    So I need a condition that takes every dead of a specific name of units as single events so it triggers the efects everyt that unit is killed instead of looping ad infinitum when just one of it dies.

    I know there is the method with the units killed value, but it doesnt work for me since I need specific triggers for specific units that are killed by the player.

    This is for a RPG scenario in which I want every enemy unit to give a different amount of exp and gold based on the actual unit and not on the kill count. I could do this one by one with each unit, but it will take forever. That's why I'm looking for a trigger that allows me to set the value of every unit and the exp (wood) it grants. So for example Spearmen are 1 exp, wolves are 2 exp, cyclops are 5 exp, etc. Exp meaning they grant wood.

    I know I wrote a lot, but I wanted to make myself very clear. Not sure if I actually did it haha.

    Anyway, I hope someone can help me, this will solve all my scenario problems
    TAG
    That AoM Guy
    (id: aom expert)
    posted 06 January 2019 08:36 PM EDT (US)     1658 / 1659       
    one word, ytriggers

    Check out my YouTube
    For live help with me, enter this chatroom. If I'm not on you can leave a message.
    nottud
    Mortal
    posted 07 January 2019 07:37 AM EDT (US)     1659 / 1659       
    Easier Way: Use the unit killed cost stat and then make the enemy units cost appropriate amounts. Then with a looking trigger track the amount the stat changes and grant resources appropriately.

    For setting the costs easily I recommend my Modify Protounit Absolute trigger: http://aom.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=13,30046,,10

    If you need assistance adding it to your triggers there should be some guides around and if not I can help out.

    [This message has been edited by nottud (edited 01-07-2019 @ 07:39 AM).]

    « Previous Page  1 ··· 10 ··· 20 ··· 30 ··· 40 ··· 50 ··· 60 ··· 65 66 67  Next Page »
    You must be logged in to post messages.
    Please login or register

    Hop to:    

    Age of Mythology Heaven | HeavenGames