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

Military statistical numbers

Discussion in 'Civ5 - Creation & Customization' started by Frossa, Feb 16, 2014.

  1. Frossa

    Frossa Chieftain

    Joined:
    Apr 29, 2012
    Messages:
    409
    Gender:
    Male
    Location:
    Sweden
    I was wondering if anybody knows whether it is possible to modify the military numbers seen in the Demographics screen.


    I know that every unit represents just over 1000 soldiers times its combat strength (a Warrior with 8 strength for example comes up as 9798 soldiers, and a 24 strength Musketman shows up as 26000).
    I think the numbers as they are presented in the game are very unrealistic and I want to decrease them if possible. Is this by any chance hard coded?
     
  2. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,342
    Location:
    Near Portsmouth, UK
    Hard-coded but somewhat alterable.

    In Demographics.lua

    Code:
    function GetArmyValue( iPlayer )
        return math.sqrt( Players[iPlayer]:GetMilitaryMight() ) * 2000;
    end
    
    So changing the calculation of army size from military might is just a case of editing the Lua file, (to change military might you'd need to recompile the DLL)
     
  3. Frossa

    Frossa Chieftain

    Joined:
    Apr 29, 2012
    Messages:
    409
    Gender:
    Male
    Location:
    Sweden
    That's unfortunate... oh well, thanks.
     

Share This Page