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

Modding Discussions
Moderated by Alexastor, Mister SCP

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Is there a way to make a tech remove training buttons from a building via techtree?
posted 03-02-16 11:17 PM EDT (US)   
I made a tech that disables some units (which were previously enabled by 'Age0{civ}' tech), e.g.

<Effect type ='Data' amount ='0.00' subtype ='Enable' relativity ='Assign'>
<Target type ='ProtoUnit'>Grenadier</Target></Effect>


The unit is disabled, but the train button is still there taking up space. So I tried removing it with:

<Effect type ='Data' amount ='-1.00' subtype ='AddTrain' unittype ='Grenadier' relativity ='Absolute'>
<Target type ='ProtoUnit'>ArtilleryDepot</Target></Effect>


...but no such luck. I even tried removing the unit's train button from the building's proto, and instead used an AddTrain at each place in techtree that it's enabled, but to no avail.

Is there a RemoveTrain effect subtype or suchlike?
Replies:
posted 03-03-16 04:26 AM EDT (US)     1 / 2  
a transformation of your building to barrack2/stable2... could be done. Duno if it solves your problem

Also this could help:

<Train row ='0' page ='0' column ='0'>Uhlan</Train>
<Train row ='0' page ='0' column ='1'>Oprichnik</Train>
<Train row ='0' page ='0' column ='2'>CavalryArcher</Train>
<Train row ='0' page ='0' column ='0'>Hussar</Train>
<Train row ='0' page ='0' column ='1'>WarWagon</Train>
<Train row ='0' page ='0' column ='1'>Ruyter</Train>
<Train row ='0' page ='0' column ='2'>Dragoon</Train>

column decides at which spot the unit appears. So Hussar and Uhlan would share a spot (both = 0). Idea isnow that you have a unit that replaces the Uhlan and assign it aswell to spot 0. Hope this helps


ESO2 Name:Sir_ConstantinESO Name:Sir_Pacman
Trigger Freak and Modder for AOE3

SCP Editor Tools---my map pack---Some incomplete stuff
My trigger Pack

[This message has been edited by Mister SCP (edited 03-03-2016 @ 04:27 AM).]

posted 03-03-16 08:24 PM EDT (US)     2 / 2  
a transformation of your building to barrack2/stable2... could be done. Duno if it solves your problem
That will have to do! I wouldn't've thought of that.

(I tried using the proto train slots to muscle out the disabled unit but it didn't work.)

Thanks for the quick reply!
Age of Empires III Heaven » Forums » Modding Discussions » Is there a way to make a tech remove training buttons from a building via techtree?
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Empires III Heaven | HeavenGames