User:LxCaucassus/sandbox

PMIV Algo Format
There will be one algorithm, for every front, every year a war carries on. This carries on until a treaty is signed or total victory is achieved by the victors. There are two stages to every algorithm—the pre-war stage, and the battle stage. The battle stage may be repeated up to six times per year, depending on how large the war is, in population and nation size. It is extremely important to read this page: War Mechanics, as it has more specifics on how the algorithm will work.

Location
Location is Determined by your location relative to your combatant.

The percentage of your population which can count towards the algo will change in relation to the region you’re located in. At maximum your population will count in full in one connected region from your home region. Sea zones do not count, and will be considered a detrimental region to all unless you maintain a naval concentration. Which negates this. While negating the sea attrition to your population score will be in full as you land on the land region.

For each movement beyond your initially no detriment region allowance. so moving from Say Eastern Europe to Western Europe (which has to go through central europe) 20% of your population will effectively not be counted in the algorithm to symbolize the difficulty of resupply of a major army abroad infrastructural issues etc etc.. If your invading another continent then you suffer an automatic 35% reduction of your population involvement. Unless your an empire which stradles continents (Byzantines, Ottomans, Russia just a few examples)

Extra continental invasions which are forced to cross more than 2 major sea regions will suffer from major penalties

The least percentage of population included will remain capped at 5%

Region penalties are cumulative (i.e. add all that apply)

List of Region Modifiers for Attackers

 * Same Region: 0%
 * Bordering Region - Land: 0%
 * Bordering Region - Sea: -(N)%
 * Naval concentration: +(N)%
 * Next Region over (add as applicable): -(P)%
 * On Same continent:-(Q)%
 * Other Continent:-35%
 * Multi-continental Empire: +35%
 * Hard Cap: -95%

Example:

 * Naples with a naval concentration invades Southern France.
 * Naples starting region: Southern Europe
 * France Starting Region: Western Europe
 * Sea attrition (Med sea) which is canceled out by naval concentration.
 * Southern Europe to Western Europe with a naval concentration leaves out any attrition allowing the full force of the Neapolitan population to count.
 * (note a map will be made which will discuss and work out the specifics of regions. However before this time, mods should be relatively able to answer the questions about which region your nation resides in.

Population
The first thing done is an algo is that the population is found of the entire alliance for both sides—leading nation, allies, and vassals.
 * (Total Population * 0.02)/5000 = Score

Government
If the government of the leading nation is a ...
 * Great Nomadic Horde - +8
 * Celestial Empire (China, Japan) - +8
 * Absolute Monarchy - +7
 * Westminster Monarchy (England) - +6
 * Absolute Feudal Monarchy - +6
 * Elective Monarchy - + 5
 * Feudal Monarchy - +5
 * Iqta' (Islamic Feudalism) - +5
 * Theocracy - +5
 * Oligarchy/Council - +6
 * Warlord/Tribal - +5
 * Free City (Holy Roman Empire) - +5
 * Merchant Republic - +5

(more types will be added as we progress through the game and more modern types of government are invented.)

Economy

 * Tier I - +2
 * Tier II - +3.5
 * Tier III - +5
 * Tier IV - +6.5
 * Tier V - +8

Technology

 * Tier I - +5
 * Tier II - +7
 * Tier III - +10
 * Tier IV - +15
 * Tier V - +20

Tiers will scale with the time period and will be subject to moderator approval as well as my own.

Battle Stage
This stage may be repeated up to six times, depending on the size and scale of the war. Note that in this stage, "Attacker" does not mean the nation that declared war first, but means the nation that is in the enemy's territory, attacking enemy cities or troops.

Army/Navy Size
If you are having trouble with army sizes, or your suggested army size is implausible, ask any moderator for the maximum army size you can field. Army size includes all allies and vassals on the same front.
 * 0.3+ Per 1,000 Men
 * 0.3+ Per 10 Ships

Finding Maximum Army/Navy Size

 * Army
 * Feudal Nations: 0.0075 times population
 * Absolute Feudal Monarchies: .01 times population
 * Absolute Monarchies: .02 times population (cannot be achieved until at least 1620)
 * Nomadic Hordes: 0.01 times population
 * Non-feudal Nations: 0.02 times population
 * Naval-concentrated, non-feudal nations: 0.01 times population
 * ​Navy
 * Merchant Republic: 0.0018 times merchant republic's population
 * Naval-concentrated nations: 0.0000936 times population
 * Normal Nations: 0.00003 times population

PRO TIP : You can send your entire military strength abroad in a fight but this will incur penalties such as revolts at home of nobility, Peasants, separatists. It is highly encouraged that unless you are fighting within a good marching distance of your home territory (neighboring nations in the region) the threat of revolt will be a decent possibility.. The more forces you deploy, further away, the more unrest at home you will have unless you have established or left a strong policing unit. (roughly 15-25% of your nation’s armed forces would be expected to be retained within the homeland for an extended campaign abroad and will be used as the general rule of thumb. This is generally only deterrent for smaller revolts like peasants and your own nobility rather than separatists and claimants to your throne is applicable.

Mercenaries
If you want to hire mercenaries to fight in wars, you must follow this formula. As all states hired mercenaries during this period well into the enlightenment age You have have a maximum 20% of your total military strength consisting of mercenaries. (Translation: you can multiply your troops by 1.25, but at a cost detailed below)


 * A mod will run an RNG to determine the behaviour of the mercenaries.
 * 1-3 = extremely professional fight on payment and promises of some sort of civilized loot system
 * 4-7 = Semi Professional, will cause some scale of looting damage to your own territory or whatever territory your own. Loot system is relatively disorganized and semi violent. Their unruly behavior over long period of time may anger your allies.
 * 8-10 = Unprofessional mercenaries. You have hired absolute scum, their looting system consists of burning the city, taking everything and murdering and raping the populous. Holding these troops on home soil can see national property damaged, and likewise for your allies lands. Your forces, and Allied forces will tolerate these men for a minimum of 5 years before the mercenaries are forced to leave the army for a different region.

Location of Battle
To find where land battle takes place, find the closest two major cities that is occupied by both sides. If the attacking player doesn't specify a plan, assume that the two armies will meet at a point between the two major cities.

All of the land categories are rather obvious, if a player has done their research then it should be relatively obvious what to classify everything as. A River of almost any type can be used, a Mountain range must be specifically labeled as a mountain range on historic maps, and if ignored mountain passes or river crossings in a different country could prove as a circumvention to your defense.


 * Attacking-(Land Battle)
 * Near a major religious site: +5
 * Near the center of government/state: +4.5
 * Near a city: +3.5
 * Near a major river or the coast with naval superiority: +3
 * Near a populated border: +2
 * Near a major river or the coast: +1
 * Near a desolate location far away from anyone: 0
 * Attacking-(Land Battle in Hostile Mountains)
 * Near Capital: -10 (note very few nations capitals are in the mountains.)
 * Near/at City: -8
 * Near Major Fortress: -6
 * Near Religious site: -4
 * Normal attacking: -3
 * Decisive Battle: -3
 * Attacking-(Assault on a City/Fort)
 * Besieging a center of government/very well-fortified city: +8
 * Besieging a Strategic Fortress: +8
 * Besieging a major religious site: +5
 * Besieging a major city: +4
 * Attacking-Sea
 * Near/at Capital : +10
 * Near Major Fortress: +7
 * Near a major religious site: +5
 * Near the center of government: +4.5
 * Near a city: +3.5
 * Far from any coast: 0
 * Defending-(Land Battle)
 * Near a major religious site: +7
 * Near the center of government/state: +6
 * Near major friendly fortress : +5.5
 * Near a city: +4
 * Near a major river or the coast with naval superiority: +3.5
 * Near a populated border: +2
 * Near a major river or the coast: +1
 * Near a desolate location far away from anyone: 0
 * Defending-(Assault on a City/Fort)
 * Besieged center of government/very well-fortified city: +12
 * Defending major Fortress: +9
 * Besieged a major religious site: +7
 * Besieged a major city: +4
 * Defending-Sea
 * Defending near landing site : +10
 * Near a major religious site: +5
 * Near the center of government: +4.5
 * Near a city: +3.5
 * Near the coast or in a major river: +1
 * Far from any coast: 0
 * Defending-(Land Battle in Friendly Mountains)
 * Near/At Capital (if applicable): +16
 * Near Major Fortress/Majorly fortified city: +13
 * Near/At City: +10
 * Near Major River: +9
 * Coastal mountains: +9
 * Mountains: +7
 * Defending-(Battle on a Major River)
 * Near Capital (if applicable) +10
 * Near Major Fortress: +8
 * Defended River crossing: +7 (army must have at least 1 turn to establish necessary fortifications)
 * Contested River Crossing: +5 (army will meet the enemy at the crossing but has no built up defenses)

In terms of fighting a siege the generally accepted numbers are a rough 3 to 1 ratio for a siege. An battle in full regards to an attack or siege on a major fort, city, or nation's capital will follow those same conventions. In the case of major cities and strategic forts, YOU MUST capture the city of fort to continue on into the country from that avenue. If you embark on a siege 3 to 1 in favor of attacker to defender must be undertaken to take a well fortified city with no penalty and can only be circumvented by Great Generals and Great Leaders. Conducting a Siege means that the involved manpower will not be available for other combat operations unless you pull them from duty to another front, or break the siege.

If you have 3 to 1 odds during a siege you will incur no penalties If you have 2 to 1 odds, you will incur an extra 10% casualties and a 15% detriment to your score If you have 1 to 1 odds or less, you will incur an extra 20% casualties and 25% detriment to your score.

If you attempt to bypass it a 20% detriment penalty to your final score will be applied to your forces due to the exposed rear or flank of your army as long as another enemy army is nearby and the massive strategic disadvantage that is opened when a large enemy garrison remains to harass the main army. This is specifically true due to the harassment which would occur and impart casualties, attrition and a loss of morale.

Great Generals/Leaders
Great Leaders may maintain control/good use over all elements of a nations military this means planning for all fronts

Great Generals are only able to lead within one army/front


 * Great General or Admiral
 * Great Leader - +45 (this would be considered a great king such as genghis etc etc, Event decided extremely reare)
 * General - +25 (Delegated via Event, can reach Great Leader status if they are able to take the throne. Much more common, usually requires distinguished service in a large good war.)
 * Admiral - +20 (Delegated via Event)

Attrition (Attacking)

 * Winter: (determined by RNG by uninvolved mod and if not applicable mod supervised uninvolved player)
 * Heavy Winter: 85% 1-2
 * Moderate Winter: 25% 3-6
 * Light Winter: 10% 7-8
 * Low Impact Winter: .5% 9-10
 * Mountains
 * Contested Mountains: 50% (this means plain and simple doing a mountain crossing, no historically traveled pathways etc etc)
 * Contested Mountain Pass 15%:
 * Contested River crossing: 5%

Blunder
RNG done by Unbiased, Uninvolved Mod

-0 to -5

Strategic Defenses
All nations will gain a maximum amount of 4 Strategic defensive areas (hinging on their population) and are used specifically to guard strategic choke points such as mountain passes, gaps in terrain, or important territories in the nation. For every 3 million people you will gain a strategic defense point/fort which will give a major boost to the defensiveness to a region and can effectively deter an enemy from a major offensive. They take roughly a decade to construct and prepare, and are a significant investment by the country. Their placement is roughly the same as a heavily fortified city, and in order to place these (and determine their coverage or even necessity as you can be denied if you lack the necessity) you must give a legitimate area for this fort, and give a predicted region of coverage. If they do not match up you will be denied. This will be handled by the resident algorithm moderator.

Casualties

 * Battle Tier 1: 15% of the losing force is lost. This requires both nations being within at least 25,000 troops of each other in the battlefield. In a Siege battle 10% of the losing forces will be killed wiped unless on the 2nd algo or a resounding defeat.
 * Victors: will incur 10% casualties in this Tier. In a Siege battle the Attacker will incur 13% casualties
 * Battle Tier 2: 30% of the losing force will be wiped out or captured. In a Siege 25% of the defeated force will be destroyed. (not applicable in a second algo defeat or in this case a siege which equates to the necessary amount to take a strategic fort or city)
 * Victors: Will incur 6% casualties. In a Siege they will incur 15% casualties.
 * Battle Tier 3: 75% of the losing force is wiped out or captured. In a Siege the entire force is wiped out or captured
 * Victors: Will incur 2% casualties. In a Siege 5% of the attacking force suffers casualties
 * Battle Tier 4: Losing force ceases to exist. In a Siege the the Losing force also ceases to exist
 * Victor: Attacking force takes minimal casualties. Siege, Attacking force takes .5% of casualties

Attacker
If an enemy is not within the 25,000 mark on troop comparison then all these values will be halved for the attacker. If the enemy has 50,000 less than you then they are halved once again. (this applies to the attacker.) This applies in every order of magnitude (and will be subject to change when populations have expanded enough to warrant the changing of the numerical amounts)

Defender
If an enemy attacking you is not within the 25,000 mark all values will be halved for the Defender. At another order of 25,000 the values will be halved again. (this is subject to change following the increase in population which will change the numerical values)

Victory or Defeat
To achieve a victory or be subject to a defeat, a few things must happen. You must have seized or won decisive battles or sieges in the territory in question. No longer will 200% clear an enemy from the battle all together.

To win victories the enemy must be defeated in the field or beaten while sieging. Just showing up with an army will not guarantee you victory.


 * Battle Tier 1 - 200-300% - Winner has won a battle with the enemy convincingly but not decisively (normal battles). Enemy can regroup and retreat in good order. In the case of Sieges a second algo is required as 500% will be minimum for sieges of fortified cities and major forts.
 * Battle Tier 2 - 300-500% - Winner has won a decisive battle and the enemy retreats in good order but with a decent amount of casualties.
 * Battle Tier 3 - 500-900% - Winner has won a crushing decisive victory enemy forces have suffered at least 40-50% casualties and are retreating out of the region. If caught in a city when this happens the garrison is entirely wiped out or taken prisoner.
 * Ultimate Tier - 900%+ - Winner has shattered the enemy into a full scale retreat from this region and any adjoining ones. The army will attempt to retreat to the nearest fortified city to regroup 55-60% casualties are expected. In the case of a siege the entire force is wiped out with a significant surrender as well. -5 for the next algo for the loser in this situation due to the morale of such a significant loss. That -5 morale de-buff will last 1 year.

Economic Tiers

 * Tier 1 +3
 * Everyone not listed in the other tiers
 * Tier 2 +5
 * Chimu
 * Hungary
 * Croatia
 * All other Player HRE states
 * Tondo
 * Majapahit
 * Tier 3 +10
 * England
 * Bulgaria
 * Ottomans
 * Bengal
 * Korea
 * Poland
 * Russia
 * Brandenburg
 * Austria
 * Norway
 * Papal States
 * Khmer
 * Swahili
 * Oman
 * Tier 4 +15
 * Caliphate
 * Korea
 * Japan
 * Milan
 * Delhi
 * Sicily
 * Denmark
 * Sweden
 * Tier 5 (best) +20
 * Benin
 * China
 * Bahmanid
 * Persia
 * Iberia
 * France
 * Burgundy

Tech Tiers

 * Tier 1 +3
 * (this is for tribes and non metalworking societies)
 * Tier 2 +5
 * Chimu
 * Mexica triple alliance
 * All Higher Native Civilizations, baring the Chimu, haven’t worked too much on metallurgy so I’m not sure if they would make the cut.
 * Tier 3 +10
 * France
 * Burgundy
 * England
 * Brandenburg
 * Austria
 * Hungary
 * Bahamanid
 * Denmark
 * Sweden
 * Norway
 * Croatia
 * Russia
 * Poland
 * Ottomans
 * Tier 4 +15
 * Iberia
 * Milan
 * Two Sicilies
 * Bulgaria
 * Benin
 * Gurkani
 * Greece
 * Tier 5 (best) +20
 * China