Jump to content

Finding actual unit statistics.


Widerstreit
 Share

Recommended Posts

Hello, I starded modding today. Most things are clear to me, but where can I find the actual stats (like <attack><mellee><hack>*<hack>) which are used by units at the moment? 

I am using the SVN and in the public folder under simulation/templates/units/* there are no informations. I know how to make a new unit like in the tutorial.

Link to comment
Share on other sites

7 minutes ago, Widerstreit said:

Hello, I starded modding today. Most things are clear to me, but where can I find the actual stats (like <attack><mellee><hack>*<hack>) which are used by units at the moment? 

I am using the SVN and in the public folder under simulation/templates/units/* there are no informations. I know how to make a new unit like in the tutorial.

Templates typically inherit from others; open any xml template and have a look at the second line, all the information you need is there:

<Entity parent="*">

Unless a new value is specified in a template, the child has the same values as its parents. Basically all unit templates form a tree; e.g.:

template_unit.xml
  template_unit_cavalry.xml
    template_unit_cavalry_ranged.xml
      template_unit_cavalry_ranged_javelinist.xml
        units/athen_cavalry_javelinist_b.xml
          units/athen_cavalry_javelinist_a.xml
            units/athen_cavalry_javelinist_e.xml

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...