Author Topic: How to use Max Unit Count param  (Read 888 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
How to use Max Unit Count param
« on: 11 November 2010, 20:33:32 »
I know that a Max Unit Count parameter was added recently but i cant seem to figure out or how to implement. Ive looked on the wikia as well. May I ask how and where do i put it in the xml?
« Last Edit: 11 November 2010, 20:46:30 by titi »
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Question
« Reply #1 on: 11 November 2010, 20:45:43 »
look here:

https://docs.megaglest.org/MG/Unit_XML

Code: [Select]
<unit>
    <parameters>
        <size value="#" />                       <!-- How many units per side a building uses -->
        <height value="#" />                     <!-- The height of a unit -->
        <max-hp value="#" regeneration="#"/>     <!-- Maximum hit points and rate of regeneration -->
        <max-ep value="#" regeneration="#"/>     <!-- Maximum energy points and rate of regeneration -->
        <max-unit-count value="#"/>              <!-- Maximum number of these kind of units (not mandatory) -->
        .....

And please use a better title next time! Just "Question" is not very useful.
« Last Edit: 18 June 2016, 13:05:08 by filux »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios