Ok, so here i have a basic banking system which is made with QV's, and with wood and gold.
||AoM: The Titans
The gold is the amount of gold you have on you at the time, (you could have it set that if you die you loose all this gold). The bank (wood) is gold set in the bank. At the moment it earns 15% intrest (this is for the example so you can see it in work).
this uses the chat contains and plyr resource count conditions. in this there are 6 levels if banking the money and withdrawing it.
1,2,3,4,5 and all
1= 1 gold
2= 10 gold
3= 100 gold
4= 1000 gold
5= 10000 gold
all = all of the gold
now i am actually not that good at triggers, i figgured that alot of people allready know how to do this, but if you dont you can use this as an example.
<Effect name="QV Set as Plr ResCount">
<Param name="QVName" dispName="$$23952$$Var Name" VarType="string">QV1</Param>
<Param name="PlayerID" dispName="$$22301$$Player" VarType="player">0</Param>
<Param name="Resource" dispName="$$22324$$Resource" VarType="resource">food</Param>
<Command>trQuestVarSet("%QVName%", trPlayerResourceCount(%PlayerID%, "%Resource%"));</Command>
I DID NOT MAKE THIS CODE I GOT THIS CODE SENT TO ME BY KHAN
If you are wondering how to add this trigger to you game (the code is above) use this (said by Mythic_freak/Invent00r)
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 <tt>< Conditions ></tt>, if you requested an effect paste it right above <tt>< Effects ></tt>. Note the "s" at the end of both tags.
I have had alot of help with is, but i do hope that many people could find a use for it (i know that i will be using this in my upcoming scenario)
you do not have to have it as chat contains, you could have it when you get near the banker, and a choice dialog pops up asking if you want to put it in the bank or take it out.
then it gives you a choice of how much to take out/put in
PS: sorry the triggers are un-organised
|Author||Comments & Reviews ( All | Comments Only | Reviews Only )|
|No messages found|