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

Modding and Scripting
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.3 replies
Age of Mythology Heaven » Forums » Modding and Scripting » Make a Unit trainable
Bottom
Topic Subject:Make a Unit trainable
Michi2208
Mortal
posted 17 November 2018 07:26 AM EDT (US)         
Hello everyone,
(Using AoMEE w. Tales of Dragon)

as the title says, i want to make some units Trainable, like the guardian or the statue of poseidon.

I've put:
(effect type="Data" amount="1.00" subtype="Enable" relativity="Absolute")
(target type="ProtoUnit")Guardian(/target)
(/effect)
into my techtree for the 2nd age.

proto:
(train row="1" page="1" column="5")Guardian(/train)
for the temple

(unit id="476" name="Guardian")
(bid)2168(/dbid)
(displaynameid)18484(/displaynameid)
(footprint>Giant Footprint(/footprint)
(icon>Scenario Sleeping Guardian Icon 64(/icon)(initialhitpoints>20000.0000(/initialhitpoints)
(maxhitpoints>20000.0000(/maxhitpoints)
(los>12.0000(/los)
(portraiticon)Scenario Sleeping Guardian Icon 64(/portraiticon)
(obstructionradiusx>1.0000(/obstructionradiusx)
(obstructionradiusz>1.0000(/obstructionradiusz)
(soundvariant)Crush(/soundvariant)
Mobile
(maxvelocity)4.0000(/maxvelocity)
(movementtype)Land(/movementtype)
(turnrate)9.0000(/turnrate)
(unitaitype)HandCombative(/unitaitype)
(initialunitaistance)Aggressive(/initialunitaistance)
(trainpoints)600.0000(/trainpoints)
(populationcount)1(/populationcount)
(buildlimit)1(/buildlimit)
(allowedage)4(/allowedage)
(cost resourcetype="Food")800.0000(/cost)
(cost resourcetype="Gold")500.0000(/cost)
(cost resourcetype="Favor")50.0000(/cost)

and this are the lines a changed for the unit.
but now the unit isn't trainable at the temple for the egypts at the 2nd age.

Yes i know, but for display i had to change the < to (

what did i wrong?
can anyone help me?

[This message has been edited by Michi2208 (edited 11-17-2018 @ 07:37 AM).]

AuthorReplies:
WinterGod
Mortal
posted 17 November 2018 12:24 PM EDT (US)     1 / 3       


I did something like this before.
Using Shrine or some other building is more useful because, Egyptian building and temple slots will be quite full by Age 4.

You also have to edit the temple proto file and allocate a slot for the myth unit. Or maybe it was the tech in the data file.

Creating a brand new unit is always simpler.
Michi2208
Mortal
posted 17 November 2018 04:39 PM EDT (US)     2 / 3       
Ok i understand, but is there a possible way to make the Guardian trainable?

and how can i allocate a slot?

---------------------

I added:

(unittype)Military(/unittype)
(unittype)EmbellishmentClass(/unittype)
(unittype)Unit(/unittype)
(unittype)UnitClass(/unittype)
(unittype)Military(/unittype)
(unittype)MythUnit(/unittype)
(unittype)MythUnitSiege(/unittype)

now it's working

[This message has been edited by Michi2208 (edited 11-17-2018 @ 05:04 PM).]

WinterGod
Mortal
posted 17 November 2018 06:53 PM EDT (US)     3 / 3       
I copied this from the Atleantean Villagers, you have to create something like this. It's from the proto file. If you have trouble training the guardian, simply duplicate colossus, change it's sound files replace its skin and replace its icon.

<unittype>Hero</unittype>
<train>Temple Overgrown</train>
<train row="2" page="1" column="2">Tower Mirror</train>
<train row="0" page="1" column="2">Guild</train>
<train row="2" page="1" column="4">Sky Passage</train>
<train>Titan Gate</train>
<train row="1" page="1" column="3">Barracks Atlantean</train>
<train row="0" page="1" column="1">Settlement Level 1</train>
<train row="2" page="1" column="1">Palace</train>
<train row="2" page="1" column="3">Wonder</train>
<train row="0" page="1" column="3">Manor</train>
<train row="1" page="1" column="2">Tower</train>
<train row="1" page="1" column="1">Armory</train>
<train row="0" page="1" column="0">Farm</train>
<train row="1" page="1" column="4">Counter Building</train>
<train>Wall Long</train>
<train>Wall Short</train>
<train>Wall Medium</train>
<train row="0" page="1" column="5">Wall Connector</train>
<train row="0" page="1" column="4">Dock</train>
<train row="0" page="1" column="6">Temple</train>
<train row="2" page="1" column="0">Market</train>

[This message has been edited by WinterGod (edited 11-17-2018 @ 06:54 PM).]

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

Hop to:    

Age of Mythology Heaven | HeavenGames