Results 1 to 10 of 10

Thread: How do I edit unit replenishment rate?

  1. #1
    Tomahawk's Avatar Civis
    Join Date
    Mar 2010
    Location
    Southern Finland
    Posts
    100

    Default How do I edit unit replenishment rate?

    How do I edit unit replenishment rate?

  2. #2

    Default Re: How do I edit unit replenishment rate?

    Under campaign_variables table:

    replenishment_base_land 8
    replenishment_base_sea 8
    replenishment_bonus_land_can_recruit_unit_owned_region 5
    replenishment_bonus_land_garrisoned_in_owned_province 5
    replenishment_bonus_land_garrisoned_in_shared_province 3
    replenishment_bonus_land_owned_region 5
    replenishment_bonus_sea_can_recruit_unit_owned_sea_region 5
    replenishment_bonus_sea_garrisoned_in_owned_sea_region 5
    replenishment_bonus_sea_garrisoned_in_shared_sea_region 3
    replenishment_bonus_sea_owned_sea_region 5

    ----> Website -- Patreon -- Steam -- Forums -- Youtube -- Facebook <----

  3. #3
    crzyrndm's Avatar Artifex
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    2,576

    Default Re: How do I edit unit replenishment rate?

    Reducing food_shortage_system_replenishment_mod_cap from 20 will probably have the most influence. Percentages are additive, so the 20% bonus replenishment for having 20 food makes the base replenishment rate on land 8 (base) + 20 (food) + 5 (owned region) = 33% / turn
    It’s better to excite some and offend others than be bland and acceptable to all
    Creating a mod.pack with PFM - Database Table Fragments

  4. #4
    Tomahawk's Avatar Civis
    Join Date
    Mar 2010
    Location
    Southern Finland
    Posts
    100

    Default Re: How do I edit unit replenishment rate?

    Thanks!

  5. #5

    Default Re: How do I edit unit replenishment rate?

    Is there a way to make city garrison replenishment really high, but army replenishment really low? Somehow I have to make an effect apply to one but not the other. Right now I can only get effects to apply to both, because garrisons have the default stance.

    If only I could somehow apply an effect to generals armies, but not to garrisons...
    Last edited by CIaagent11; October 20, 2017 at 04:18 AM.

  6. #6

    Default Re: How do I edit unit replenishment rate?

    Quote Originally Posted by CIaagent11 View Post
    Is there a way to make city garrison replenishment really high, but army replenishment really low? Somehow I have to make an effect apply to one but not the other. Right now I can only get effects to apply to both, because garrisons have the default stance.

    If only I could somehow apply an effect to generals armies, but not to garrisons...

    I really wish someone had a hint on how to mod that...

  7. #7

    Default Re: How do I edit unit replenishment rate?

    Is there a way to make city garrison replenishment really high, but army replenishment really low? Somehow I have to make an effect apply to one but not the other. Right now I can only get effects to apply to both, because garrisons have the default stance.

    If only I could somehow apply an effect to generals armies, but not to garrisons...
    After that thread was made, anyone got an idea how to implement this?

  8. #8
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: How do I edit unit replenishment rate?

    there are two ways to do that

    1) go to campiagn variables and tweak all values with replenishment, this way you can change them individually, like
    replenishment_base_land
    replenishment_base_sea
    replenishment_bonus_land_can_recruit_unit_owned_region
    replenishment_bonus_land_garrisoned_in_owned_province
    replenishment_bonus_land_garrisoned_in_shared_province
    replenishment_bonus_land_owned_region
    replenishment_bonus_sea_can_recruit_unit_owned_sea_region
    replenishment_bonus_sea_garrisoned_in_owned_sea_region
    replenishment_bonus_sea_garrisoned_in_shared_sea_region
    replenishment_bonus_sea_owned_sea_region

    2) make a new entry into "campaign_difficulty_handicap_effects_tables" with the "rom_force_campaign_mod_replenishment_rate"
    check the vanilla effect and you'll find it for AI, make new lines, check the booleans and you'll have a global% modifier for player

  9. #9
    Jake Armitage's Avatar Artifex
    Patrician

    Join Date
    Apr 2011
    Location
    apartment 6
    Posts
    4,694

    Default Re: How do I edit unit replenishment rate?

    ah sorry, I answered to a whole other question...

    regarding the replenidhment division between normal and garrison units I don't really think you can do anything, I've checked lua functions and there's nothing for that

  10. #10

    Default Re: How do I edit unit replenishment rate?

    Thank you, Jake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •