搜索结果: *

  1. What do barracks (fief improvement) do? (and how high lvl can constable train?)

    It appears to do two things.

    First, it causes higher-tier troops to be recruited at that center when you leave money for auto-recruitment.

    Searching for "slot_center_has_barracks" in module_simple_triggers.py (in the dev kit) will let you get a better idea of exactly what's going on, but basically, a random number 0-99 is being generated, and the value of that number determines which party will be recruited, with lower numbers resulting in parties with higher-tier troops; the barracks simply reduces that number by 15 after it is generated (which is enough that it will often, but not always, result in a higher-tier party than you would have gotten otherwise).


    Second, it gives the villages associated with that center a chance to have upgraded units from what they would have provided without it (as in, it appears to literally just pick the first upgrade option of the troop that had been selected before that check).
  2. [Submod] More accurate food consumption estimates

    I tweaked the food_consumption_display_message script to make it factor in foraging. Quite simply, it just subtracts the amount of food foraged from the :num_men divisor (and makes sure that the value is at least one), which has seemed to be accurate upon testing. scripts.txt version...
  3. [WB] Scripting question - Modding prisoner limit (Solved)

    I'm trying to make a custom mod using the Module System, with the intention of making the prisoner limit scale with party size. I've already coded it, and it seemed like it initially worked when I tested it (I had a prisoner limit of one with zero Prisoner Management skill), but I got a CTD...
后退
顶部 底部