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

Modding and Scripting
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Guide to conversion
posted 25 January 2005 00:06 AM EDT (US)   
Requireds:
AoMed 0.6
AoM or AoM:TT
Techtree(x).xmb
Proto(x).xmb

Lo and behold the secrect of making units converting one an another finally is revealed. To figure this out took me a long time but once you know what your doing, it takes you 5 minutes!

First off some problems I found with doing this are:

-You must have pop available.
-Having conversion time take to long will have the unit killed off.
-Unit generally needs a good looking model available (as in waving arms in the air i.e: priest, caladria, lampade)

Now, lets begin by getting our new unit into place. Let's go grab out proto(x) out and find the Priest. We're gonna create a Monk.
Let's check out the convert line.

<action name="Convert">
<param name="MaximumRange" value1="10"></param>
<param name="MinRate" type="Huntable" value1="15"></param>
<param name="Rate" type="Huntable" value1="0"></param>
<param name="MinRate" type="Zebra" value1="35"></param>
<param name="MinRate" type="Elephant" value1="55"></param>
<param name="MinRate" type="Hyena" value1="45"></param>
<param name="MinRate" type="Wolf" value1="45"></param>
<param name="MinRate" type="Lion" value1="45"></param>
<param name="MinRate" type="Boar" value1="45"></param>
<param name="MinRate" type="Giraffe" value1="45"></param>
<param name="MinRate" type="Aurochs" value1="45"></param>
<param name="MinRate" type="Bear" value1="45"></param>
<param name="MinRate" type="Polar Bear" value1="45"></param>
<param name="MinRate" type="Crocodile" value1="45"></param>
<param name="MinRate" type="Water Buffalo" value1="45"></param>
<param name="MinRate" type="Walrus" value1="45"></param>
<param name="MinRate" type="Hippo" value1="45"></param>
<param name="MinRate" type="Rhinocerous" value1="55"></param>
</action>

All of these animals what do we do? We erase them all but 3 lines of animals.

<action name="Convert">
<param name="MaximumRange" value1="10"></param>
<param name="MinRate" type="Huntable" value1="15"></param>
<param name="Rate" type="Huntable" value1="0"></param>
<param name="MinRate" type="Zebra" value1="35"></param>
<param name="MinRate" type="Elephant" value1="55"></param>
<param name="MinRate" type="Hyena" </action>
Now we're going to replace the MinRates with just normal rates, and you put in the type to whatever you want. Some of the things you can do are: (note I haven't tested all of them out yet)
-UnitClass (this will convert ALL units)
-BuildingClass (this will convert ALL buildings)
-HumanSolider (this will convert ONLY human soliders)
-MythUnit (this will convert ONLY myth units)
-AbstractArcher (this will convert ONLY archers)
-AbstractInfantry (this will convert ONLY infantry)
-AbstractCavarly (this will convert ONLY cavalry)
-AbstractTitan (this will convert ONLY titans)
Also you can add all of the units (I.E. Hippikon, Toxotes, Hoplite, obles)

We're going to have the Monk be able to convert only units and building and titans, so it will look like this.

<action name="Convert">
<param name="MaximumRange" value1="10"></param>
<param name="Rate" type="UnitClass" value1="15"></param>
<param name="Rate" type="BuildingClass" value1="0"></param>
<param name="Rate" type="AbstractTitan" value1="35"></param>
</action>

Notice that I took of MinRate and replaced it with Rate.


So, now that we have that done, we must hit the techtree(x).xmb. First off, we can't have it be xmb, so first convert it to a .xml file through AoMED.

Now that we are there we are ready to go! Open up the techtree with notepad and find the line;
<effect type="Data" action="Convert" amount="30.00" subtype="WorkRate" unittype="Huntable" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Hyena" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Hyena" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Wolf" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="30.00" subtype="WorkRate" unittype="Lion" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Boar" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Giraffe" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Aurochs" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Water Buffalo" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Bear" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Polar Bear" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Crocodile" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Walrus" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="60.00" subtype="WorkRate" unittype="Hippo" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="70.00" subtype="WorkRate" unittype="Rhinocerous" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="70.00" subtype="WorkRate" unittype="Elephant" relativity="Absolute">

Does that look familiar? Well it should, it has all of the animals that you deleted in the proto.
(NOTE: Check and make sure you have the last </effect> that will cause errors in the xmb conversion)
Now, we have the stuff we need to make everything match up with the proto so we change our furry friends with the units we switch to convert.
<effect type="Data" action="Convert" amount="10.00" subtype="WorkRate" unittype="UnitClass" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="10.00" subtype="WorkRate" unittype="BuildingClass" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="10.00" subtype="WorkRate" unittype="AbstractTitan" relativity="Absolute">
<effect type="Data" amount="10.00" subtype="RechargeTime" relativity="Absolute">
<target type="ProtoUnit">Monk</target>
</effect>

NOTE:Add the rechargetime so that he will be able to get back to converting faster.

Now that we got that line we need to find a place to put it!
Let's say that we want these crazy old monks to be able to convert starting in the Heroic Age. We want to go find age 3 and underneath all of the mumbo jumbo right before the </effects> paste in all the information so it looks like this;

<tech name="Age 3" type="Normal">
<dbid>66</dbid>
<displaynameid>10853</displaynameid>
<status>OBTAINABLE</status>
<icon>Icon Achievement Age 3</icon>
<flag>AgeUpgrade</flag>
<flag>HideFromDetailHelp</flag>
<effects>
<effect type="SetAge">Heroic Age</effect>
<effect type="Sound">AgeAdvance</effect>
<effect type="Data" action="RangedAttack" amount="7.00" subtype="MaximumRange" relativity="Absolute">
<target type="ProtoUnit">Priest</target>
</effect>
<effect type="Data" amount="6.00" subtype="LOS" relativity="Absolute">
<target type="ProtoUnit">Priest</target>
</effect>
<effect type="Data" action="RangedAttack" amount="1.10" subtype="Damage" damagetype="Pierce" relativity="BasePercent">
<target type="ProtoUnit">AbstractPharaoh</target>
</effect>
<effect type="Data" action="RangedAttack" amount="6.00" subtype="MaximumRange" relativity="Absolute">
<target type="ProtoUnit">AbstractPharaoh</target>
</effect>
<effect type="Data" amount="1.10" subtype="Hitpoints" relativity="BasePercent">
<target type="ProtoUnit">AutoupgradedUnit</target>
</effect>
<effect type="Data" amount="1.10" subtype="Hitpoints" relativity="BasePercent">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="HandAttack" amount="1.10" subtype="Damage" damagetype="Hack" relativity="BasePercent">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="RangedAttack" amount="1.10" subtype="Damage" damagetype="Pierce" relativity="BasePercent">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" amount="6.00" subtype="LOS" relativity="Absolute">
<target type="ProtoUnit">AbstractPharaoh</target>
</effect>
<effect type="Data" action="HandAttack" amount="1.20" subtype="Damage" damagetype="Hack" relativity="BasePercent">
<target type="ProtoUnit">AutoupgradedUnit</target>
</effect>
<effect type="Data" amount="0.75" subtype="TrainPoints" relativity="BasePercent">
<target type="ProtoUnit">Hippikon</target>
</effect>
<effect type="Data" action="Convert" amount="10.00" subtype="WorkRate" unittype="Unit" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="10.00" subtype="WorkRate" unittype="Building" relativity="Absolute">
<target type="ProtoUnit">Hero</target>
</effect>
<effect type="Data" action="Convert" amount="10.00" subtype="WorkRate" unittype="AbstractTitan" relativity="Absolute">
<effect type="Data" amount="10.00" subtype="RechargeTime" relativity="Absolute">
<target type="ProtoUnit">Monk</target>
</effect>
</effects>
</tech>

That should do it! If you have any questions or comments, ask me at archerydude2002@aol.com


Happy converting! (Might I note you can use this for archers so their arrows convert )I need to mention thought that with this you need to make an the anim. file with a convert animation


[This message has been edited by Monkish_man (edited 01-25-2005 @ 05:16 PM).]

Replies:
posted 25 January 2005 10:22 AM EDT (US)     1 / 15  
Cool. Converting enemy arrows? That has interesting posibilities...

Practice safe foruming by not posting tired.
On my todo list of mods (meaning stuff I really want to do but can't get around to yet):

Editor Modpack of some sort
Project Excelsior
Always keep in mind, all my posts are a stream of consciousness, so don't take anything I say too literally.
posted 25 January 2005 10:40 AM EDT (US)     2 / 15  
Very good guide !

Does it work without the techtree changes as well?

posted 25 January 2005 11:13 AM EDT (US)     3 / 15  
added.

Theris264
former Age of Mythology Heaven and Age of Empires III Heaven forumer||former member of Ambition Designs
"An eye for an eye, and the whole world goes blind" -Gandhi
posted 25 January 2005 04:11 PM EDT (US)     4 / 15  
Woah man, this is awesome. Nice find!
posted 25 January 2005 05:13 PM EDT (US)     5 / 15  
I found it a while ago, and no it doesn't work without techtree edits.

Theris...added to what?

[This message has been edited by Monkish_man (edited 01-25-2005 @ 05:34 PM).]

posted 25 January 2005 05:27 PM EDT (US)     6 / 15  
woooooot XD

Leader of Liquid Fire. Animator Seb C.

One does not simply leave HG
posted 26 January 2005 00:18 AM EDT (US)     7 / 15  
Hey good job Mormonish man!

(yo its me zBurito from aoe 2...)

Its been a while lol.

posted 26 January 2005 01:05 AM EDT (US)     8 / 15  
I was gonna say!! Hey, what are you doin in these parts? Also, e-mail me, archerydude2002@aol.com I bet your gonna get banned. How's it been goin, what made ya look me up?
posted 26 January 2005 02:48 AM EDT (US)     9 / 15  
"Added " means Theris have added your guide to his sticky thread of guides and such.

posted 26 January 2005 03:37 PM EDT (US)     10 / 15  
Very nice...Congrats Monk, you made news my friend.

£¿ïþß첩û £¤® ~ ¿ïØûîÐ £í® §üÐ줧
Ô¿ÿmþîåñ §â££ ã §ÅÇ
Gravity is a myth, the Earth sucks.
posted 26 January 2005 05:38 PM EDT (US)     11 / 15  
woo baby! first time, probably the last too! flippy, I still need help on that modeling problem...e-mail me please. I can't believe it made news!
posted 26 January 2005 05:38 PM EDT (US)     12 / 15  
It's well deserved buddy

posted 26 January 2005 05:41 PM EDT (US)     13 / 15  
Thanks elpea!! I'm glad I could finally do somethin to help around here
posted 26 January 2005 08:15 PM EDT (US)     14 / 15  
I remember when AOM came out you were talking about buying it, after I said I hated it lol, and I didnt see you again. THat was like,,,, 2 years ago. Anyways I see you are still into your scenario design, your AOE 2 maps rox!!! btw get msn haha
posted 26 January 2005 08:41 PM EDT (US)     15 / 15  
Heh, that was a long time ago.... good ol' maps
Age of Mythology Heaven » Forums » Modding and Scripting » Guide to conversion
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames