Logo Platform
logo amplifiers simplified
Endless Legend
Universe banner wording

ENDLESS™ Legend is a turn-based 4X fantasy-strategy game, where you control every aspect of your civilization as you struggle to save your homeworld Auriga. Create your own Legend!

Unit cost

Reply
Copied to clipboard!
9 years ago
Dec 11, 2014, 8:31:34 PM
Hi,



I fail to find in a XML the base unit cost for factional units and minor tribes units, can somebody help me on that?



Thanks in advance.
0Send private message
9 years ago
Dec 12, 2014, 6:28:59 PM
Search for "UnitProductionCost" in SimulationDescriptors[Class].xml

Also look at the tags in UnitBodyDefinitions.xml
0Send private message
0Send private message
3 years ago
Jun 25, 2021, 4:18:33 PM

Hey there,
The thing with Endless Legend is, it doesn't specify cost for each specific unit, but rather places them into cost categories, and makes them cost accordingly. 

In SimulationDescriptors[Class].xml  you will find : 

      <!-- Unit Cost References -->

      <SimulationPropertyDescriptor Name="UnitProductionCostCheapest"         BaseValue="30"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostCheaper"          BaseValue="60"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostCheap"            BaseValue="80"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostLessThanAverage"  BaseValue="90"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostAverage"          BaseValue="110"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostMoreThanAverage"  BaseValue="120"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostExpensive"        BaseValue="140"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostMoreExpensive"    BaseValue="180"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostMostExpensive"    BaseValue="250"/>

      <SimulationPropertyDescriptor Name="UnitProductionCostGuardianKiller"   BaseValue="300"/>


And in UnitBodyDefinitions.xml you will find something like this for the cost formula: 

    <CustomCost ResourceName="Production" Instant="false">$Property(../ClassEmpire:UnitProductionCostAverage) + $Property(../ClassEmpire:UnitProductionCostAverage) * $Property(../ClassEmpire:CostIncreaseFromEra)</CustomCost>


As you can see, the ClassEmpire:UnitProductionCostAverage search for categorized values in SimulationDescriptors[Class].xml to determine the costs of units. 


0Send private message
?

Click here to login

Reply
Comment
0Send private message