Sengoku Rance:Parameters & Formulae

National stats

 * Cost (コスト) / Nation power (国力) - Cost is the total cost of all your commanders combined. Nation power is the sum of nation powers of the provinces you control. The game will not allow you to hire a new commander who will put your total cost over the nation power or hire a number of troops that will increase a commander's cost such that your total cost will exceed your national power, although the plot may force a commander to join who will make your cost exceed your national power. If your total cost exceeds your nation power, you will receive half as much income from the provinces under your control every turn.


 * Satisfaction (満足度) - When Rance achieves various objectives in the game, his satisfaction increases. Satisfaction can be used to trigger various beneficial events. See Sengoku Rance:Satisfaction bonuses for more information on the bonuses.


 * Gold (金) - Gold is the monetary standard of the land. You gain gold from lands under your control, events in the game and some of your unit's skills. Gold can be used for increasing a commander's maximum troops size or replenishing dead troops, it can also be used for several events within the storyline.


 * Score (得点) - The base score for the first game is 60 points. Every turn you lose one point. For every objective you achieve, you gain a certain number of points. Don't worry about the score on your first time playing through it; you are expected to get a score of 0. On subsequent playthroughs you can set the game to a higher difficulty, and you'll start off with more points depending on the difficulty. These points are used for buying bonuses for your second and subsequent playthroughs and only your highest score counts. See Sengoku Rance:Second Game Bonuses for the bonuses you can buy.

Personal stats

 * Name
 * Relationship - has two components:
 * Posture (red-hate, orange-normal, blue-trust, pink-love)
 * Progress (the smiley faces)
 * HP - Only used in commander/dungeon battles.
 * Level / Level Limit - the current level and the maximum level for this character. A character's level limit cannot be changed in game. Character level can be increased by:
 * as a reward option for increasing the relationship with the character.
 * by giving the character a Happiness Pokkuru (see Sengoku Rance:Items).
 * when completing the last level of a dungeon (for the first time for that dungeon), every commander gains a level (even if they were not used in the dungeon)
 * by special events. In particular Ogawa Kentarou has an amazing level up ability in most game routes.
 * Note: Your level only affects dungeon/commander battles (and greatly reduces enemy damage if yours is higher [Rance/Kentarou can go to 99]). It doesn't influence army battles, outside of the damage done by attack where the commander personally attacks (e.g. Commander Charge). (see Sengoku_Rance:Dungeon)
 * Job - The commander may have different job type than his fellow troop soldiers. The job of the commander is only important in dungeon/commander battles
 * Skills

Main stats

 * Troop type - different troop types have different icons. Known troop types include:
 * Bushi/Warrior (武士) - Sword icon. The stereotypical samurai.
 * Foot soldier (足軽) - Shield icon.
 * Tactician (軍師) - War fan icon.
 * Archer (弓兵) - Bow icon.
 * Ninja (忍者) - Shuriken icon.
 * Miko (巫女) - Red cross icon.
 * Monk (僧兵) - Praying bead icon.
 * Yin Yang/Diviner (陰陽) - Prayer slip icon.
 * Musketeer (鉄砲) - Rifle icon.
 * Cannon (砲兵) - Mortar/Cannon icon.
 * Knight (騎士) - Sword + shield icon.
 * Mage (魔法) - Staff icon.
 * Cavalry (騎馬) - Bird icon.
 * Animal (動物) - No icon.
 * Battle stats
 * Troop size
 * Actions - The number of actions the commander/unit may perform per fight.
 * Attack (Atk) - Increases physical damage done, formulae is Attack Power = base attack+ ATKx10
 * Hannys have ATK based attacks.
 * Magicians use ATK when counterattacking.
 * Defense (Def) - Increases defense against physical damage, formulae is Defense = base defense + DEFx8
 * Intelligence (Int) - Increases magic damage done, increases defense against magic. Formulae is Magic damage = Base Damage + Int x 10, Magical defense = Int x 7
 * Foot Soldier - Each point of Int increases the amount of 'guard' you get when using a guard command, although the amount differs depending on which command was used. All Guard grants 10% Guard per point, Ally Guard grants 20% Guard per point, and Ally Guard Plus provides 30% Guard per Point.
 * Tactician - Each INT gives 1 initial buff, and increases buff strength by 5%.
 * Diviner/Yin Yang - Affects magic damage done.
 * Monk/Miko - Affects healing.
 * Speed - influences the cooldown time between combat actions. this is also influenced by what attack is used, no exact formula is known.
 * Map event stats
 * Exploration (green) - covert actions, skill at finding dungeons, treasures and special locations.
 * Negotiation (yellow) - declaring war, creating a vassal, persuading prisoners and foreign generals to join your army.
 * Construction (blue) - increasing NP, preparation for battles.
 * Cost - national influence point cost of employing this commander

Battle Rating
The exact mechanics of Battle Rating, the slider described here, are not known. However, what follows appears to be true. Like with Battlefield Effect, it is practical to treat the Battle Rating as the difference between the sum of modifiers to the rating on your side and the sum of modifiers to the rating on your opponent's side. With this model, we can say that if we treat the Battle Rating as a number that starts out at zero, then: Code also exists for making Power of the Goddess of War and Power of the Emperor further increase Battle Rating, but this seems impossible to trigger.
 * If the battle ends on a strictly positive value, the player's side wins.
 * If the battle ends on a strictly negative value, the opponent's side wins.
 * If the battle ends with a value of zero, the defending side wins.
 * Before any of the modifiers below, the Battle Rating for any given side appears to be 100 times the amount of damage that the side in question has done divided by the total amount of damage done in the battle. Healing moves do not change these values.
 * If the battle takes place in a field, the defending side gains +10 to the rating.
 * If the battle takes place in a town, the defending side gains +20 to the rating.
 * If the battle takes place in a castle, the defending side gains +40 to the rating.
 * For each unit with Power of the Goddess of War, add +5 to the rating of the side that has it.
 * For each unit with Initial Battle Rating or Power of the Emperor, add +10 to the rating of the side that has it.
 * Whenever Whitty Comeback is used, swap both Battle Ratings and swap the total amount of damage done by the user's side with that of the opponent's side.
 * Whenever Shouting Charge is used, add +3 to the rating of the side that used it. This appears to be glitched and is not coded to trigger.
 * Whenever Rance Attack, Kentarou-Kun Slash, or Commander Charge are used, add +5 to the rating of the side that used it. These appear to be glitched and are not coded to trigger.
 * Whenever Battle Rating Down 1 is used, add +5 to the rating of the side that used it.
 * Whenever Battle Rating Down 2 is used, add +10 to the rating of the side that used it.
 * Whenever Battle Rating Up 1 is used, add +8 to the rating of the side that used it.
 * Whenever Battle Rating Up 2 is used, add +15 to the rating of the side that used it.
 * Whenever a unit is annihilated, add +5 to the rating of the side that did not lose their unit.

Battlefield Effect
As explained in the next section, the Battlefield Effect is a value which factors heavily in to damage calculation during army battles. During army battles, the value of the Battlefield Effect will be shown on the screen. The side of the screen that it is on indicates which side is benefiting from it. For calculation purposes, it is practical to treat the Battlefield Effect as the difference between the sum of modifiers to the Battlefield Effect on your side and the sum of modifiers to the Battlefield Effect on your opponent's side. The following is an exhaustive list of the factors that determine its value, all in terms of adding percentage points to the Battlefield Effect. Note that the final value of the Battlefield Effect will never go above 50% in favour of any side.
 * Each type of battlefield has its own initial value for the Battlefield Effect. These will always be in favour of the defender.
 * Fields give +0% to the Battlefield Effect.
 * Towns give +10% to the Battlefield Effect.
 * Exception: If the player is attacking a town in Yamatai controlled by the Miko Institute, then the Battlefield Effect will, before other modifiers, be +50% in the favour of the defending Miko Institute. This also remains true in FFA mode.
 * Castles give +20% to the Battlefield Effect.
 * Successfully scouting will add a number of percentage points equal to the difficulty of the scout to the Battlefield Effect, in favour of the side who scouted (NB: the AI can't scout).
 * During a battle, the Ninja Arts: Battleground Construction skills can increase the Battlefield Effect in favour of the user. Per use, the first level adds 4%, the second level adds 6%, and the final level adds 8%.
 * Via the 'Prepare for next battle' command, the player can increase the Battlefield Effect that they will have at the start of the next battle in the chosen province. The Battlefield Effect that is added by this command is often referred to as the battle prep and will initially be equal to 0.
 * The difficulty of the command will be equal to the minimum of 99 and 5+floor[current battle prep ÷ 2].
 * While it is possible to battle prep over 50%, this will never give a final Battlefield Effect of over 50%.
 * Each time the command is used, your battle prep in the chosen province will increase by 7 + 3*[number of times that the 'Increase Battle Preparation to [number]' SAT bonus has been used].
 * At the start of each turn, the battle prep of every province decreases by 3 percentage points, to a minimum of 0.
 * After a battle has been fought by the player, the battle prep in the province that it was fought in will be reduced to 0. Note that the player has to actually fight the battle: Battle Permits and battles that are skipped (e.g. by right clicking on the commander selection menu) do not count. "Event battles" such as the Tenshi Sect riots will also not count and will, in fact, not add your battle prep to the Battlefield Effect in those battles.

How scouting works
NB: This was extracted from a quick dive in to the game's decompiled code and only a few minutes of in-game testing. It may be wrong.

The difficulty required for a successful scouting is calculated as follows. Be warned that this calculation is made as soon as the attack is declared, so equipping the Battlefield Correspondent in the battle menu immediately before you scout will have no effect on the difficulty. NB: As mentioned above, a successful scouting will add a number of percentage points equal to the difficulty of the scout to the Battlefield Effect, in favour of the side who scouted (which is always the player). This may have consequence for whether or not you will want to equip the Battlefield Correspondent.
 * Generate a random whole number between 1 and 4, with each option having equal probability.
 * If the player is attacking, increase the randomly generated number by:
 * 1 if the target is a field
 * 2 if the target is a town
 * 3 if the target is a castle
 * Then, if the final result is greater than 3 and any of the player's units have the Battlefield Correspondent equipped (regardless of if said unit is being used for the scouting or not), make the final result 3 and do not change it otherwise.

Summary table
Different troop types with the same stats will work out differently.

Note that various costs may be affected by other factors such as items or satisfaction bonuses.


 * Attack = Base Attack + ATK * (1 + Buff Modifier) * 10
 * Defense = Base Defense + DEF * (1 + Buff Modifier) * 8
 * Note - A Footsoldier's Guard decreases the non-magical damage taking by the Footsoldier by 50%.
 * Magic Attack = Base Intelligence + INT * (1 + Buff Modifier) * 10
 * Magic Defense = INT * (1 + Buff Modifier) * 7
 * Speed is complicated (see the section below), but the lower Base Speed is better than higher Base Speed.


 * [1] Max troop size is based on difficulty and the number of provinces controlled. Vassaled provinces are not counted. The base value is then multiplied by each unit's troop ratio.


 * [2] Recruit cost goes up by 20 when troop size is 500~999. Recruit cost goes up by 40 more (base + 60) when troop size is 1000~.
 * [3] Monks heal back all of their troops at the start of a turn.
 * [4] Animal units do not heal between turns.
 * The effectiveness of new troops scales down with increased troop size. See

Damage Modifiers Healing Formula Counterattacks
 * Damage (Without Item Modifier) = { [Adjusted Troop Size * (Attack - Defense)%] * Skill Modifier} * (1 + Battlefield Effect)
 * The number within square brackets caps at the actual troop size.
 * If an attacker has sufficiently high attack versus the enemy's defense, they can reach maximum damage for their troop size.
 * Skills that do more than 100% damage to a single unit can cause damage to easily rise above a unit's actual troop size.
 * The Battlefield Effect is taken to be exactly as it is on the screen, but with the percentage being treated as positive for those who are benfitting from it and negative for those who are not. This means that the side which is benfitting from the Battlefield Effect will, per hit, deal more damage and take less damage than they otherwise would have.
 * Item modifiers are calculated AFTER skill modifiers. An example:
 * When (Oiuchi Fang equipped) Leila with 100 troops uses Royal Guard Charge against 1000 peasant rioters., she gains 50 damage after her damage doubles. Her final damage will be 250.
 * Items that add damage do NOT affect magic damage, only physical.
 * Field Battle Expert, Dungeon Expert, and Castle Siege Expert give a 40% increase in damage in the relevant damage type. These do not provide actual buffs, the increase in damage is not capped by the troop size limit, and they stack with all other multipliers.
 * Heal = Adjusted Troop Size * (INT * 3)% * Skill Modifier * (1 + Buff Modifier)

The counterattack algorithm is slightly complicated, but the following is believed: Manual Buff Formula Buff Strength
 * 1) Before any modifiers, counterattack damage appears to be equal to the amount of damage that the unit dealing the counterattack damage would have been able to do with a completely unmodified physical attack. The only modifiers that appear to apply this this are buffs, each unit's type, and each unit's stats.
 * 2) *There appears to be some safeguard in place if the damage that would've been dealt is very low. In theory, counterattacks should never do a tiny amount of damage.
 * 3) Couterattack damage is scaled based on what move is used by the unit receiving the counterattack damage. If we call the figure in step 1 "100% damage", then Side Attack guarantees 0% damage, Warrior Attack gives about 25%, and Full Power Warrior Attack gives about 50%.
 * 4) After step 2, the Dragonfly Cutter multiples this damage by 1.5 whereas Counterattack doubles this figure and Counterattack 2 triples it. These stack multiplicatively.
 * 5) Guard Shikigami will be broken by counterattack damage, reducing said damage to zero.
 * 6) Battlefield Effect appears to be irrelevant.
 * Strategy C gives (Troop Size / 300 + 2) buffs.
 * Strategy B gives (Troop Size / 200 + 2) buffs.
 * Strategy A gives (Troop Size / 100 + 2) buffs.
 * Fuu-Rin-Ka-Zan, How to Siege Castles, Japan's Field Battles Weekly, and Attack/Defense/Intelligence/Speed Luck give 50% boosts.
 * Dungeon Walker and Outcall Miko give 40% boosts.
 * Tacticians give 5% boosts per point of INT.
 * In commander battles, tacticians and Fuu-Rin-Ka-Zan give 30% boosts.
 * Seigan's Triplet ability gives +50% buffs.

Speed
The speed algorithm is complicated, but we think that we know the following:
 * With the sole exception of the First Move skill, base speed (see the table above) and the normal speed stat are what is used to determine where a unit will be in the turn order at the start of a battle. Having 0 speed is equivalent to having +8 to base speed and with each extra point of speed (up to 9) this decreases by 2. For example, 9 speed is equivalent to -10 base speed.
 * Speed buffs, regardless of their source or strength, are equivalent to -4 base speed.
 * If and only if the game is determining the initial turn order, the follow apply:
 * Each unit is randomly given either +1, +2, +3, or +4 to its base speed. Each of these outcomes is equally probable.
 * Approximately 92% of the time, add 10 to the base speed of the unit that the game is currently determining the turn order for. If the unit in question is a Diviner, this is instead reduced to 4. If the unit is not a Diviner and does have First Move, this is reduced to 0.
 * All skills in the game have a recovery time. This is used in conjunction with the initial turn order, the unit's base speed, and any modifies to the unit's base speed to determine how soon the unit next acts after using said skill. Many of these recovery times are tabulated below.
 * Determining non-initial turn order may be nothing more than simple arithmetic. From skimming the code, it has been guessed that if you have figured out what final number was used to determine each individual unit's initial turn order, then you could add the recovery time of their first action to that earlier number, adjust for base speed and the modifiers to it (e.g. subtract ten if 9 Spd), and then you would have the number that would be used to determine when the unit gets their second move. Using this number should be fairly simple - the unit in question should move before anyone with a higher number and move after anyone with a lower number.
 * In the case of skills that require preparation, recovery time determines both the number of turns until the prepared action is taken and the number of turns until the next action can be taken after the preprepared skill is used.
 * For skills which consume the unit's final action (including skills which consume all of them), the recovery time determines their position once the character receives Convert Action. Using any version of Convert Action on a unit appears to effectively add 6 points to their base speed for this battle, but this does not stack.

Battle Permits
but is capped at the user's troop count minus 1 or 2000. Therefore it is recommended to keep the permit user's troop count at exactly 1000.
 * If you are not in the KTM route and have not taken them as a Second Game Bonus, then, in a start of turn event that can happen at any point after turn 60, 3G will give the player all five permits. These are equippable items.
 * Each permit corresponds to a particular unit type (Warrior, Foot Solder, Ninja, Tactician, and Diviner).
 * A unit can not equip its permit unless it has at least 1,000 total troops.
 * Immediately after a turn is ended, each unit that can use its permit will attack and automatically take an enemy territory. This is subject to the follow rules and restrictions:
 * Permits are used in the order that they appear in the item menu and are used one at a time. In other words, you can take five territories in one turn.
 * A unit can not use its permit unless it has at least 1,000 troops alive.
 * Permit holders always reclaim territories in your provinces before attacking enemy provinces.
 * The last territory of a province will never be attacked.
 * Regardless of who owns the province, attacks on any Demon Army controlled territory in the Africa areas (including Senkan Nagato) in the True Route will always fail. As detailed in the Walkthrough, this will cause your permits to be permanently confiscated. This is the only way that the permits can be taken from the player or fail.
 * Permit holders can only attack where the player would normally be able to.
 * The target of the attack is picked randomly from the list of all valid targets.
 * After the permit has been used, some of the user's troops will die. The number of troops lost is a number between 100 and 200 + 30*n, where n is the number of times your battle permits have attacked in total during the current game. This number is increased additionally by
 * 200 if the battle permit user has more than 2000 troops
 * 500 if you're in the Demon King route
 * 300 if your target is the Demon Army or the One Eyed House,
 * The target of a permit attack is not determined by a uniform probability distribution. This means, that some territories are more likely to be attacked than others. The game assigns each territory a certain ID (listed below). Then it loops through all territories which can be attacked from lowest ID to highest and flips a coin. If the coin lands on heads, the current battle permit target is set to the the respective territory. This means that successful coin flips from territories with higher ID will override earlier results, which makes territories with high IDs more likely to be targeted.

An example with 4 territories: The territory with the In general the probabilities are 0.5, (0.5)^2, (0.5)^3,...,(0.5)^(n-1), (0.5)^(n-1), where n is the number of territories that can be attacked.
 * largest ID has a chance of 50% to be attacked
 * second largest ID has a chance of 25% to be attacked
 * third largest ID has a chance of 12.5% to be attacked
 * smallest ID has a chance of 12.5% to be attacked

Dungeons
Information for damage done in Dungeons can be found on the Dungeons page.

Randomness
This game uses two different kinds of randomness.

The first kind is produced by a function called "RAND" which returns a random integer in the interval between 1 and a certain specified number. This function can be treated as truly random and it governs the majority of the game's randomness. Here are a few examples: There are however "random" events that aren't determined by RAND. When a new game is started, a random array R is created. One can think of R as a list with 400 entries all containing a random integer between 1 and 60. This array will never change. It will also set an index variable i to 1. Every time a random number R(i) (meaning the i-th entry of R) is requested by the game, i will increase by 1. When i reaches 401, it will start over at 1.
 * After battle drops (affection items, textbooks)
 * The units your enemy targets in battles
 * Footsoldier guarding
 * Ero diary entries gained from levies
 * Ashikaga deciding whether or not to ask you for money
 * Troop count fluctuations of commanders joining you

Since this index will be the same, no matter how often you reload, all outcomes of events that use this kind of randomness will also be the same unless the index changes from being used by another function.

Suppose you have two ninjas trying to use assassinate, a skill that has its success or failure determined by this "deterministic" randomness. By attempting an assassination and thus changing the index i, the first ninja will change the outcome of the second ninja's assassination attempt.

Other than the "kill move probability function" there is only one other function that also uses R and that is the "Pick a random commander" function. It is used in a wide variety of events including: The outcomes of these events can be changed by changing the index i. Increasing i by even 1 may have dramatic changes to the outcome of certain events.
 * Deciding the composition of enemy forces during a non-scripted battle
 * Enemy increasing a random commander's troop size at the end of your turn
 * Shimazu brothers seducing your commanders
 * Selecting commanders to fight Apostle Gigai

For an example of how to change i, suppose that we want to capture a certain commander, but he is not appearing in battles. This means that we need to change the enemy's army composition. Maybe the enemy attacked us only once during the last end of turn phase or maybe we didn't use assassinate. If we change any of these things after reloading, the enemy's army composition during our next battle will be different.

We can also, without changing i ourselves, let normal RNG change it. For example, during the end of turn phase each introduced enemy house makes a decision (based on a 50% chance calculated by RAND) to increase a random commander's troop size. This uses the "Pick a random commander" function and thus changes i.

By combining all of these methods, we can produce a wide variety of different index values i at the start of our next turn. If we are lucky, one of them results in the desired commander showing up in our next battle.

"Certain kill move" algorithm:
Some skills, such as assassinate or whirlwind shot, have the ability to annihilate an enemy commander (without reducing their troop count) with a random probability. These skills are: The success/failure of these skills is determined using the following algorithm:
 * Assassinate
 * Assassinate 2
 * Commander snipe
 * Whirlwind shot
 * Aim and shoot

probability = 0%

if (Commander snipe) probability = 45% if (Assassinate) probability = 45% if (Assassinate 2) probability = 50% if (Whirlwind shot) probability = 45% if (Aim and shoot) probability = 40% //The skill that gives this buff is not obtainable through normal means if (attacker has concentration buff) probability += concentration * 10%

if (any defending unit has assassination guard) probability -= 10% if (troop battle) { if (defender's troops * 2 < attacker's troops) probability += 5% if (defender's troops > attacker's troops) probability -= 10% if (defender's troops > attacker's troops + 1000) probability -= 10% }

if (commander battle) if (attacker's level < defender's level) probability = 0% if(attack has "assassination skill +" AND defender has no actions) probability = 100% if(defender isn't important AND probability > random(1-60)) ATTACK SUCCEEDS else ATTACK FAILS

The random number number is determined by the nth value in a list of 400 predefined random values, where n is a global variable that increments by 1 every time the list is accessed. When n reaches 401 it is reset back to 0 and the random numbers start to repeat.

Note: "assassination skill +" is a skill that only Gekkou has.

"Picking a random commander" algorithm:
A lot of events require the selection of a random commander. The algorithm that governs this process looks like this: RandomCommanderSelection( "TroopType", "SkipActed" ) for (k from 1 to 199){ i = i + 1	               // i is the global RNG index discussed earlier if (i > 400){ i = 1 }   n = R(i)                     // Picks the ith element out of the random array R    X = Commander(n)             // Picks the nth commander out of the roster // Note: Sorting your commander list doesn't change //      the commander's number. if ( (X doesn't exist) OR (X is reserved) OR        (X has acted this turn and  "SkipActed" == true) ){ do nothing }   else if ((X's troop type is "TroopType") OR ("TroopType" isn't specified)){ pick X   } } // In the rare case that the algorithm hasn't been able to pick a fitting commander, the // following loop will come into play, doing the same as the previous loop, but going // through all possible commanders from first one to last for (k from 1 to 60){ X = Commander(k) if ( (X doesn't exist) OR (X is reserved) OR        (X has acted this turn and  "SkipActed" == true) ){ do nothing }   else if ( (X's troop type is "TroopType") OR ("TroopType" isn't specified) ){ pick X   } } Note that this algorithm can be potentially unable to pick a commander. This can be the case when selecting commanders for a battle. In that instance, the enemy will send out "Gathered Footsoldiers", a weak unit with low troop count and 2 ATK/DEF/INT/SPD.

Capturing/Killing Enemy Commanders
The algorithm for checking if an annihilated enemy unit is captured or killed can be summarized as follows: The capturing/killing attempts will be made in the following order, relative to the initial positions of the enemy commanders:
 * In event battles, no commanders will be captured or killed.
 * A capturing attempt will fail immediately if:
 * the commander is marked as uncapturable. This will happen if:
 * it is marked as important (e.g. heads of house before their house is conquered)
 * it is marked as impossible to recruit (e.g. named guards such as Nanjou Guard)
 * it is a Peasant unit
 * it is a generic from the Demon army, Dokuganryuu, or Imagawa.
 * two enemy commanders have already been captured or killed and the commander was either not hit by Light Attack or was defeated by the instant kill of an instant kill attack. The order that captures/kills are checked in is explained below.
 * the house that the commander belongs to has less than four commanders left, not counting commanders who require introductions but have not yet been introduced (e.g. the five Ninja units that join Iga's army when they are almost conquered).
 * Note that not all commanders who need to be introduced have introductions. For example, Ikkyu's unit will not be introduced until the event that causes Isoroku to start fighting the Oda House. However, this should not be an issue because it appears that a unit cannot appear in a battle unless it has been introduced.
 * If a commander is not important and not generic, they will be marked as introduced after their house has been conquered. This appears to work differently in FFA.
 * the prison has not been opened.
 * Note: capturing a unit via an event (e.g. conquering the Hara House) opens the prison
 * you have more than 25 prisoners. If this is not the case, but you still have more than 20 prisoners, the probability of immediate failure is 50%.
 * The 20 and 25 figures should not count non-introduced commanders who require introductions. However, as above, this may be a non-issue.
 * The capturing attempt will be a success with a probability of 1 in n and fail otherwise. The integer n takes the value:
 * 1 (meaning certain success), if:
 * your commanders participating in the battle have both Defeated Warrior Hunt and Sticky Ground
 * the commander has been hit with Light Attack, but has not been defeated by the instant kill of an instant kill attack
 * the commander is Nanjou Ran or Yamamoto Isoroku and it is after their respective events which make them capturable have been seen
 * 2, if your commanders participating in the battle have either Defeated Warrior Hunt or Sticky Ground, but not both.
 * 5 otherwise.
 * If the following are all true, a kill attempt is made:
 * The capturing attempt on this commander has failed.
 * The commander is not important.
 * The commander is a generic.
 * Either two enemy commanders have not already been captured or killed or the commander in question was hit by Light Attack and not defeated by the instant kill of an instant kill attack.
 * The house that the commander belongs to is not too low on commanders (counted as above).
 * During a kill attempt, the commander is certainly killed if:
 * the unit is an Infected unit.
 * he is Abe Heizou or Asahina Hyakuman.
 * it was defeated by the instant kill of an instant kill attack.
 * Otherwise, there is a 50% chance that the commander will be killed during a kill attempt.

Consequences

 * Kills have a negative effect on your chances of capturing units. For capturing, this means that instant kill moves should only be used on commanders which will be processed late in the algorithm (e.g. back row) to not lower your chances of capturing earlier commanders.
 * Using Light Attack on a unit that you are able to kill but have failed to capture makes it possible to kill more than two commanders in one battle.
 * Ignoring special commanders, instant kill moves, Light Attack and Sticky Ground, these are some probabilities for capturing commanders (determined by simulation):
 * Capturing at least one commander with/without Defeated Warrior Hunt, if
 * 1 unit is annihilated: 50% / 20%
 * 2 units are annihilated: 75% / 36%
 * 3 units are annihilated: 84% / 46%
 * 4 units are annihilated: 88% / 51%
 * 5 units are annihilated: 89% / 53%
 * 6 units are annihilated: 89% / 55%
 * Capturing two commanders with/without Defeated Warrior Hunt, if
 * 2 units are annihilated: 25% / 4%
 * 3 units are annihilated: 38% / 7%
 * 4 units are annihilated: 42% / 9%
 * 5 units are annihilated: 44% / 10%
 * 6 units are annihilated: 44% / 11%

Gold
Excluding things that are exclusive to FFA, and mostly ignoring rounding, here is a complete list of all of the methods for acquiring Gold in the game:
 * At the start of the game, you will have 3,000 Gold. With a Second Game Bonus, this amount can be increased to 13,000.
 * Start of turn proceedings:
 * At the start of each turn, before the Gold for starting that turn is collected, the player's current Gold is increases by 4% for every commander under the player's control who has the Asset Tech skill. This can stack up to a maximum of 20% of the current Gold, but will only give either that amount or 2000 Gold, whichever is lower.
 * After this, the player will gain an amount of Gold equal to 60 times their NP. For each Gold Statue that the player has equipped to a commander, this amount will be multiplied by 1.1. After this, the amount will then be multiplied by 1+0.05*[number of possessed commanders with the Merchant skill]. Finally, rounding down, the end result of these calculations will be halved if the player's NP cost exceeds their total NP.
 * Levies - whenever a province is conquered by the Oda House for the first time, an event will be made available which will allow the player to impose a levy. If this is done immediately after the conquer, it will gain the Oda House 2,000 Gold. However, for each turn that passes with the province in question still under the control of the Oda House, the amount which can be levied will increase by 100 Gold, to a maximum of 5,000.
 * Botan Hunt - on the first time they are done, the Botan Hunt in Owari will award the player 500 Gold and the Botan Hunt in Sado will award the player 700 Gold. However, each time that the Botan Hunt in Owari is done, it will increase the reward for every future Botan Hunt by 50 Gold. Similarly, the Botan Hunt in Sado will increase the reward for every future Botan Hunt by 100 Gold.
 * Headfish Hunt - each successful Headfish Hunt awards the player 5,000 Gold.
 * Monkey Hunt in Saitama - when successfully completed, awards the player 5,000 Gold.
 * Colourless event with Kouhime - prior to the first gourd being broken, or the KTM route being entered, 100 Gold can be obtained by doing a colourless event with Kouhime.
 * Iga dirty plan - the one-off event, 'Dirty plan (What's Inukai's is mine)' awards the player 2,000 Gold.
 * Oppressing the Tenshi Sect - the one-off event, 'Oppress the Tenshi Sect to get money' awards the player 500 Gold.
 * 'Get money: 5000' SAT Bonus - self-explanatory.
 * Sado dungeon - when it is cleared for the first time, the player will be awarded 5,000 Gold.
 * The Loot skill - in every battle where it is used, the player will gain an amount of Gold equal to 10 times the NP that they had when the move was used. It does not have to deal damage for this to happen.
 * Selling troops - explained elsewhere on this page.

Enemy stat scaling
In the game's code there exists a counter for each country that roughly translates as "secret reinforcements". It has an initial value of zero, but when its value is one it gives +1 to every one of the main four combat stats for every unit in that country's army and it gives +2 if its value is two. It cannot take any other values. Detailed below is every way to change this value. A version of this counter also appears in Free For All mode, but will not be detailed here.
 * The Weaken Enemy Countries SAT Bonus will reduce every enemy house's value to 0.
 * If the player is not in normal (0 star) difficulty, has killed more than 3,000 enemy troops during a single battle, and if a tenth of the total number of troops that the enemy has lost during that battle is greater than the total number of troops that the player has lost during the battle, the counter will increase by one to a maximum of two.
 * There is currently no evidence to suggest that healing units will make the lost troops no longer count.
 * If you are fighting the Tenshi Sect, the number of dead enemy troops is decreased by 3,000 before any calculations are done.