STREAMLINED INSTRUCTION FOR TONIO
COMMON THINGS
YEAR MODIFIER
Compute the number of years played in the game from start.
First find "Start year of campaign" which can be found on line 4 where it says “Startyear = X“ where X is the start year.
Then find "Current year of save" which can be found a bit further down where it says
"globaldata = {
startdate = { year = 1624 month = august day = 0 } "
Subtract start year of campaign from "current year of save" and thus get approximately the numbers of years played. Call that Y. Then set the year modifier to 1.007 ** Y (note: ** = exponential expression). Example: if Y = 3 then set year modifier to 1.007*1.007*1.007.
If this is too complicated then instead set year modifier according to this
< 1450 2
< 1475 1.5
< 1500 1
< 1525 0.8
< 1550 0.6
< 1575 0.5
< 1600 0.4
< 1625 0.35
< 1650 0.3
< 1675 0.28
< 1700 0.25
< 1725 0.23
< 1750 0.2
< 1775 0.19
< 1800 0.17
Later 0.15
Example: if a session ends say in 1499 then 1 is used as year multiplier, if it ends in 1776 0.19 is used as multiplier.
I will call this modifier YM when presenting the formulas.
VALUE MODIFIER
Set value modifier to 500. I will call this modifier VM when presenting the formulas.
INFLATION MODIFIER
Set inflation modifier to 1 + the value for inflation stored in the save. I will call this modifier IM.
DETAILED ANALYSIS OF OUR DIFFERENT ASPECTS OF POWER
PP = power point.
A) INCOME
Formula: PP = ((All income – income from peace and events) / IM) * YM /50
Note: use hardocoded value of 50 at the end.
B) CURRENT MP POOL
Formula: PP = Current MP pool * YM / 4000
C) ARMY AND NAVY MORALE
For each 0.05 higher land morale at 100% maintenance you get 1 PP.
For each 0.1 higher naval morale at 100% maintenance you get 1 PP:
D) TECHS
Formula: PP = (trade level * 6 + infra level * 6 + land tech level + naval tech level) * YM * 0.5
E) FLEET SIZE
PP = Min(20,
(Number of galleys * galley cost + Number of warships * war ship cost) /IM *YM /VM)
F) FORTRESSES
Set average fort level = ( number of minimal fortresses * 1
+ number of small fortresses * 3
+ number of medium fortresses * 6
+ number of large fortresses * 11
+ number of mighty fortresses * 21
+ number of maximal fortresses * 41)
/ number of city provinces
Formula: PP = (Your average fort level - the lowest average fort level) * 4.
G) ARMY SIZE
Same algorithm as for fleets. But now we have three types, infantry, cavalry and guns.
H) SHIPYARDS
Code:
If number of shipyards > 0 then do
x = 900 + 100 * number of shipyards
y = 0
do i = 1000 to x by 100
y = y + i
End
PP = y / IM * YM / VM
End
else PP = 0.
I) MANUS
Code:
If number of manus > 0 then do
x = 400 + 200 * number of manus
y = 0
do i = 600 to x by 200
y = y + i
End
PP = y / IM * YM / VM
End
else PP = 0
J) CCs
Code:
If number of CCs > 0 then do
x = 750 + 250 * number of CCs
y = 0
do i = 1000 to x by 250
y = y + i
End
PP = y / IM * YM / VM
End
else PP = 0.
K) TREASURY
Formula: PP = Treasury size / IM * YM / VM.
L) CoT:s OWNED
Formula: if number of COT:s owned > 0 then PP = number of COTs owned * 2 else PP = 0.