1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Unit columns

Discussion in 'Civ5 - Creation & Customization' started by Frossa, Feb 14, 2015.

  1. Frossa

    Frossa Chieftain

    Joined:
    Apr 29, 2012
    Messages:
    409
    Gender:
    Male
    Location:
    Sweden
    Quick question, does anybody know what these following things effect in a Unit?

    <MilitarySupport>
    <MilitaryProduction>
    <Suicide>
    <Conscription>
    <CombatLimit>

    They sound rather exciting, but before I go experimenting with them, I just want to make sure they do something to begin with.
     
  2. DarkScythe

    DarkScythe Hunkalicious Holo

    Joined:
    May 6, 2014
    Messages:
    804
    Best thing to try when you're unsure is to do a search within the game's XML files where you found those columns (in this case, the Civ5Units XML file.) You can then look at what units from stock use them, and you can generally figure them out that way.

    At the least, Suicide is used by the Nuclear Missile, Guided Missile, and the Atomic Bomb, so it should be for units that are similar to those which are "used up" when they attack.
     
  3. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,342
    Location:
    Near Portsmouth, UK
    Conscript is the "value" of the unit when conscripting population (warrior is 1, Mech Inf is 8 IIRC) - you would need to shuffle every unit up if inserting into the sequence

    However, while all the DLL/Lua API code is present, it's not used internally by the game.

    CombatLimit is used to determine the best defender in a multi-unit stack. Basically civilians, aircraft and missiles should set this to 0, all other units should leave it at the default of 100.

    RangedCombatLimit is used to pick the best defender against an air-strike. Basically missiles and aircraft should set this to 100, all other units should leave it at the default of 0.

    MilitarySupport indicates if this unit counts towards the cost of maintaining your military.

    MilitaryProduction indicates if this unit gains any production bonuses for military units when being built
     
  4. Frossa

    Frossa Chieftain

    Joined:
    Apr 29, 2012
    Messages:
    409
    Gender:
    Male
    Location:
    Sweden
    I see, thanks :)
     
  5. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    What about <Mechanized> and <RivalTerritory>? I assume RivalTerritory allows the unit to walk through enemy borders without war or open borders, like civ4 caravels, but what the heck is Mechanized? :confused:
     

Share This Page