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

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Have a Trigger Request? Post it here!
« Previous Page  1 2 3 ··· 10 ··· 20 ··· 30 ··· 40 ··· 50 ··· 60 ··· 70 ··· 80 ··· 90 ··· 100  Next Page »
posted 04 October 2007 11:46 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 purpose is only to place trigger request and discuss about them. If you have unrelated questions or need help with triggers, please use OmegasRage 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?
    First of all, you need to have Age of Mythology installed. If you have that, then you are half away done. Now you will need to find your way to your AoM installation folder, and open the trigger folder or the trigger2 folder if you pretend to install the new trigger on The Titans (the expansion). With the notepad, open a file called, typetest.xml - at this point, you need to copy the trigger from this page and paste it there. If you requested a condition, then place it under or under if it was an effect you requested.

    Notes:
    1. Please put the trigger at the end of each list so you can easly remove them and keep the integrity of the typetest file.
    2. When copying the trigger from someone, please click the edit image (), and only then copy the respective effect or condition.
    3. If this is your 1st trigger you're installing, please backup the original typetest file.

  3. So.. How exactly are new triggers done?
    AoM has a built-in engine that can prase XS code. Triggers are programmed and interpreted using this language through a serious 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, usefull triggers - but it does have some limitations...
  4. I want to learn triggers, how do I do that?
    It takes a quite some time, but if you really wish to learn triggers, I recommend fully understanding XS language before you start making triggers, and for that you need to go here - Master XS. If you want to skip all that, and you want to be able to do only simple triggers, read this guide.
  5. Help! My triggers have stopped working!
    Triggers Stop Working Guide. Also using run immediately, linking camera tracks, 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. New triggers for TT v3 by nottud
  7. Conditonal Effects (TT & AoM) by nottud
  8. Angry Levels (TT & AoM) by angryzor
  9. SIMSTools (TT) by angryzor
  10. 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.
Description - Always describe the actions that you want the trigger to perform. Please give atleast one example of use.

Remember that not all triggers are possible but I - and anyone who wants to help me -, will try our best.

Enjoy. .
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos são de quem os souber guardar.

[This message has been edited by invent00r (edited 08-15-2008 @ 03:40 PM).]

Replies:
posted 04 October 2007 12:07 PM EDT (US)     1 / 2502  
Change terrain/forest/water/cliff in area:

Allows you to change terrain/forest/cliff/water in area of map. Currently I have only suceeded ones for singleplayer and got a terrain one to work for the whole map only.

This is extremely advanced so beware. You will also need to know how to mode switch to get some editor comamnds like terrain painting, toggling camera limit to work.

Here is my change terrain on entire map.
   <Effect name="zMake everywhere a terrain type">
<Param name="t" dispName="new terrain" VarType="string">SnowB</Param>
<Command>subModeEnter("Simulation", "Editor");</Command>
<Command>terrainPaint("%t%");</Command>
<Command>subModeLeave("Simulation", "Editor");</Command>
<Command>modeEnter("pregame");</Command>
<Command>modeEnter("Simulation");</Command>
<Command>subModeEnter("Simulation", "Singleplayer");</Command>
</Effect>
NOTE:Currently nobody I know knows about this mode switching in triggers to make certain commands work.

This is the command:
      <Command>terrainPaint("%t%");</Command>
The rest is the mode switching - don't change any of it or it may crash/not work online!

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 10-04-2007 @ 12:08 PM).]

posted 04 October 2007 05:01 PM EDT (US)     2 / 2502  
I was thinking of somthing similar to nottuds transform trigger. Instead of changing the type of unit to another unit FOR EVERY PLAYER, is it possible to make it change for only one player?
Here is an example for why someone might want this other than randomness:
Each player has a wizard (pharoh) and each wizard is best at a certain spell.
So player one's preist projectile change into kronny sfx, while player 2s change into ragnorak sfx,
player 3 is crad blood,
player 4 changes into fire siphon fire and so on.
Makeing it seem like each wizard is more different then the others.
Possible?
posted 04 October 2007 05:31 PM EDT (US)     3 / 2502  
Everyone has been asking me this and it is IMPOSSIBLE. However, I made a guide that can help get round the problem but is not perfect:

http://aom.heavengames.com/cgi-bin/forums/display.cgi?action=ct&f=13,25003,,all

Do not worry - the population flickering does NOT affect anything except that you may see your population meter flicker to a really high number. (I made an escape with this trick to have towers fire diff thing for each player and it worked fine)

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 10-04-2007 @ 05:33 PM).]

posted 04 October 2007 06:41 PM EDT (US)     4 / 2502  
Isn't there a qv invoke gp on/near unit? If so where? I remember hearing that somewhere....BUT if not how about that as a trigger? Or army deploy near unit? That could be fun for some fX
posted 04 October 2007 07:30 PM EDT (US)     5 / 2502  
pftq made one.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 04 October 2007 10:22 PM EDT (US)     6 / 2502  
Is there any way to tell if custom triggers will/won't be compatible with vanilla?

Has anyone made a condition: invoked god power for vanilla?
posted 05 October 2007 03:27 AM EDT (US)     7 / 2502  
I hope your good at kbcommands

EFFECT:
Create unit at Army
Pretty simple, creates a unit at an army.

CONDITION:
Units surrounding Army (or units in area around army)
Just like units in area, but the center unit is an army - that moves.

I Hope this keeps you busy for a little while ~ Khan

<||=================================||>
Proud Member of Forgotten Empires
96Reviews KaS Dota2 Halo 5 Reach
{ "Work until your idols become your rivals" }
༼ つ ◕_◕ ༽つ trGetUnitScenarioName(); ༼ つ ◕_◕ ༽つ
posted 05 October 2007 03:38 AM EDT (US)     8 / 2502  
invent00r just wants a sticky

A green great dragon.
posted 05 October 2007 04:18 AM EDT (US)     9 / 2502  
invent00r just wants a sticky
True... very true...
shall we vote if he will get it?

I am the great Witch King!
My LOTR website: mahanaxar.freevar.com
posted 05 October 2007 04:20 AM EDT (US)     10 / 2502  
People don't just vote and get a sticky.
It takes a mod and his powers to make a sticky.
and by the looks of this thread invent00r just took the code out of Yeebaagooon's Question Thread.

A green great dragon.
posted 05 October 2007 05:27 AM EDT (US)     11 / 2502  
Here are a Few Triggers I request for RPG:

Army deploy near Army
-> Deploying Army near an Army

Army teleport to Army
-> Teleport Army to Army

and other Army to Army (ex: Army move to Army)

Change Player Name
-> Change the Player Name (Perfect use for RPG, so we can have our name on the Character)(Displaying a Dialog box to fill the name)

-______-
/ Altarz \The Imagination ₪ALtarz₪
||-021-||of the Number
||_)T(_||>>>021<<<
posted 05 October 2007 05:33 AM EDT (US)     12 / 2502  
Change Player Name = impossible

I've been wanting that for ages ~ Khan

<||=================================||>
Proud Member of Forgotten Empires
96Reviews KaS Dota2 Halo 5 Reach
{ "Work until your idols become your rivals" }
༼ つ ◕_◕ ༽つ trGetUnitScenarioName(); ༼ つ ◕_◕ ༽つ
posted 05 October 2007 09:53 AM EDT (US)     13 / 2502  
Quoted from Steak And Khan:
Create unit at Army
Pretty simple, creates a unit at an army.
Pretty simple indeed. However, the malfunction of one comand, the lack of updated information from another and also the non-existence of 1 command makes it almost impossible.
I can't reach Army location & position values. =/
So ToreNou021, I can't do your triggers either. Sorry.
Quoted from Steak And Khan:
Units surrounding Army
<Condition name="Units surrounding Army">
<Param name="u" dispName="$$22295$$Source Units" VarType="unit">default</Param>
<Param name="army" dispName="$$22348$$Army" VarType="group">default</Param>
<Param name="R" dispName="Radius" varType="long">10</Param>
<Command>int d = %R%;int c = 0; trArmySelect("%army%");</Command>
<Command loop="" loopParm="u">if(d>trUnitDistanceToPoint(xsVectorGetX(kbGetBlockPositio n(""+%u%)),0,xsVectorGetZ(kbGetBlockPosition(""+%u%)))) c++;</Command>
<Expression>c > 0</Expression>
</Condition>
Not as simple as it might look.
You can select as many units as you like! .
Quoted from Keron Cyst:
By the looks of this thread invent00r just took the code out of Yeebaagooon's Question Thread
What? No no no.
I only might have used a similar thread name + stricked out 'question' in the 1st message that Yeebaagoon's Thread has + linked to the Question Thread + took 1 FAQ from there + used 4 hr.
Other than that, it was all me.

-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos são de quem os souber guardar.
posted 05 October 2007 11:17 PM EDT (US)     14 / 2502  
Create Unit at Army

About the 10th time I've heard this asked. Won't go into details (already posted several times the exact triggers :P ) but it's do-able using a combination of the Advanced Triggers Set.

Basically you grab a unit from the army and save its ID to a QV (usually use the unit at index 0 so you do not select a non-existing unit). Then use that ID for any of the At/Near Unit effects.

I might go and look for my old post, but I'm glad to see that alot of new people have taken to learning kb commands. I think this should be pretty easy to figure out from here.

[This message has been edited by pftq (edited 10-05-2007 @ 11:19 PM).]

posted 06 October 2007 01:59 AM EDT (US)     15 / 2502  
Basically you grab a unit from the army
So... no ghost armies then ~ Khan

<||=================================||>
Proud Member of Forgotten Empires
96Reviews KaS Dota2 Halo 5 Reach
{ "Work until your idols become your rivals" }
༼ つ ◕_◕ ༽つ trGetUnitScenarioName(); ༼ つ ◕_◕ ༽つ
posted 06 October 2007 05:05 AM EDT (US)     16 / 2502  
Quoted from Steak And Khan:
Create unit at Army
   <Effect name="Unit Create At Army">
<Param name="Army" dispName="$$22348$$Army" VarType="group">default</Param>
<Param name="Player" dispName="$$22301$$Player" VarType="long">0</Param>
<Param name="ProtoName" dispName="$$22434$$ProtoName" varType="protounit">Villager</Param>
<Param name="Count" dispName="$$22435$$Count" varType="long">0</Param>
<Param name="Heading" dispName="$$22432$$Heading" varType="long">0</Param>
<Command>int oldPlayer = xsGetContextPlayer();int Player = xsVectorGetX(vector(%Army%,-1)); xsSetContextPlayer(Player);</Command>
<Command>kbLookAtAllUnitsOnMap(); vector a = kbArmyGetLocation(xsVectorGetY(vector(%Army%,-1)));</Command>
<Command>for(i = 0; </Command>
<Command>& lt;</Command>
<Command>/**/ %Count%)</Command>
<Command>trUnitCreate("%ProtoName%", "007", xsVectorGetX(a),0,xsVectorGetZ(a), %Heading%, %Player%);</Command>
<Command>xsSetContextPlayer(oldPlayer);</Command>
</Effect>
Didn't knew that look at all units would make the function work correctly. ^_^
Remove the space after '&'.
Quoted from ToreNou021:
Army deploy near Army
   <Effect name="Army Deploy Near Army">
<Param name="ArmyS" dispName="Army Source" VarType="group">default</Param>
<Param name="ArmyT" dispName="Army Target" VarType="group">default</Param>
<Param name="ProtoName" dispName="$$22434$$ProtoName" varType="protounit">Villager</Param>
<Param name="Count" dispName="$$22435$$Count" varType="long">0</Param>
<Param name="Heading" dispName="$$22432$$Heading" varType="long">0</Param>
<Param name="Clear" dispName="$$22464$$Clear Existing Units:" varType="bool">true</Param>
<Command>int oldPlayer = xsGetContextPlayer();int Player = xsVectorGetX(vector(%ArmyT%,-1)); xsSetContextPlayer(Player);</Command>
<Command>kbLookAtAllUnitsOnMap(); vector a = kbArmyGetLocation(xsVectorGetY(vector(%ArmyT%,-1)));</Command>
<Command>trArmyDispatch("%ArmyS%", "%ProtoName%", %Count%, xsVectorGetX(a),0,xsVectorGetZ(a), %Heading%, %Clear%);</Command>
<Command>xsSetContextPlayer(oldPlayer);</Command>
</Effect>
Quoted from ToreNou021:
Army Teleport To Army
   <Effect name="Army Teleport To Army">
<Param name="ArmyS" dispName="Army Source" VarType="group">default</Param>
<Param name="ArmyT" dispName="Army Target" VarType="group">default</Param>
<Command>int oldPlayer = xsGetContextPlayer(); xsSetContextPlayer(xsVectorGetX(vector(%ArmyT%,-1)));</Command>
<Command>kbLookAtAllUnitsOnMap(); vector a = kbArmyGetLocation(xsVectorGetY(vector(%ArmyT%,-1)));</Command>
<Command>trArmySelect("%ArmyS%");</Command>
<Command>trUnitTeleport(xsVectorGetX(a),0,xsVectorGetZ(a));</Command>
<Command>xsSetContextPlayer(oldPlayer);</Command>
</Effect>
Quoted from ToreNou021:
Army Move To Army
   <Effect name="Army Move To Army">
<Param name="ArmyS" dispName="Army Source" VarType="group">default</Param>
<Param name="ArmyT" dispName="Army Target" VarType="group">default</Param>
<Param name="EventID" dispName="$$22362$$Trigger" varType="event">-1</Param>
<Param name="AttackMove" dispName="$$22416$$Attack Move" varType="bool">false</Param>
<Command>int oldPlayer = xsGetContextPlayer(); xsSetContextPlayer(xsVectorGetX(vector(%ArmyT%,-1)));</Command>
<Command>kbLookAtAllUnitsOnMap(); vector a = kbArmyGetLocation(xsVectorGetY(vector(%ArmyT%,-1)));</Command>
<Command>trArmySelect("%ArmyS%");</Command>
<Command>trUnitMoveToPoint(xsVectorGetX(a),0,xsVectorGetZ(a), %EventID%, %AttackMove%);</Command>
<Command>xsSetContextPlayer(oldPlayer);</Command>
</Effect>
Done.
-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos são de quem os souber guardar.
posted 06 October 2007 05:49 AM EDT (US)     17 / 2502  
invent00r just took the code out of Yeebaagooon's Question Thread.
Nooo! Blasphemer against the Great Question Thread! Throwing of random objects will continue until I am satisfied!

______________________________________ Yeebaagooon ______________________________________
____________________ AoMH Seraph ____________________
"You can't trust yeebaagooon to lead a rebelion, He would send everyone to steal mirrors so he could bask in his own brilliance." - Out Reach
"Yeebaagooon had never seen a more handsome man in all his life. He couldn't control himself, He needed to act. Gripping the mirror in his strong arms he kissed the figure before him..." - Out Reach
AoMH: Unfinished Scenarios|Singleplayer: Codename Ripto|Multiplayer: Minigames Z|CSC 7
Ex Seraphs Dictator, Spore Heaven Seraph
posted 06 October 2007 06:05 AM EDT (US)     18 / 2502  
banned
^_^

A green great dragon.
posted 06 October 2007 08:48 AM EDT (US)     19 / 2502  
Can someone put the ARMY CHANGE NAME trigg up plz
posted 06 October 2007 08:56 AM EDT (US)     20 / 2502  
Yer true he did take something from you and that was wrong, but dude, take a chill pill...anyway back to the thread (Sorry that it was off-topic)

I'm very responsible, when ever something goes wrong they always say I'm responsible
posted 06 October 2007 11:25 AM EDT (US)     21 / 2502  
Lol, tried to warn hime but it could not connect to the database lol.

The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 06 October 2007 12:08 PM EDT (US)     22 / 2502  
I'm sorry Yeebaagooon but I can't just not copy stuff from usernames that start with Y.

I was born like this.

-invent00r

My Work: 1 2 3 4 5 6 7 8 9 10

WIP: Master XS Battle Micro AI
Paused: AI (%4.247)
Os segredos são de quem os souber guardar.
posted 06 October 2007 10:13 PM EDT (US)     23 / 2502  
Thanks, invent00r! Erm.. One more Question, How to add these Triggers?

EDIT: I successfully Add the Triggers, But why the Triggers doesn't Work?

-______-
/ Altarz \The Imagination ₪ALtarz₪
||-021-||of the Number
||_)T(_||>>>021<<<

[This message has been edited by ToreNou021 (edited 10-06-2007 @ 10:49 PM).]

posted 07 October 2007 05:05 AM EDT (US)     24 / 2502  
Have you got AOMed? it's great for finding errors in triggers. open it up and covert it from xml to xmb. if it finds any errors it tells you where they are ~ Khan

<||=================================||>
Proud Member of Forgotten Empires
96Reviews KaS Dota2 Halo 5 Reach
{ "Work until your idols become your rivals" }
༼ つ ◕_◕ ༽つ trGetUnitScenarioName(); ༼ つ ◕_◕ ༽つ
posted 07 October 2007 05:40 AM EDT (US)     25 / 2502  
Trigger Converted, No Errors occured.

EDIT: But, It still doesn't work. It stop all triggers in my scenario. Could you post me in the Download section (the typetest)? thx

-______-
/ Altarz \The Imagination ₪ALtarz₪
||-021-||of the Number
||_)T(_||>>>021<<<

[This message has been edited by ToreNou021 (edited 10-07-2007 @ 09:24 AM).]

« Previous Page  1 2 3 ··· 10 ··· 20 ··· 30 ··· 40 ··· 50 ··· 60 ··· 70 ··· 80 ··· 90 ··· 100  Next Page »
Age of Mythology Heaven » Forums » Scenario Design » Have a Trigger Request? Post it here!
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames