Jump to content

Finding actual unit statistics.


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...