I have done something similar, but thats 14 lines of code and 2 counters just to generate the number, then you have to code all the choices as well. Lets take the add_money example and compare the way you had to do it in vanilla M2 and the way you can do it in Kingdoms. I will use 3 choices, 5, 10, and 20 thousand added to treasury.
Vanilla example
Code:
declare_counter random_counter
declare_counter fallthrough
monitor_event FactionTurnEnd FactionType england
if RandomPercent < 33
set_counter random_counter 1
set_counter fallthrough 1
end_if
if RandomPercent < 50
and I_CompareCounter fallthrough == 0
set_counter random_counter 2
set_counter fallthrough 1
end_if
if I_CompareCounter fallthrough == 0
set_counter random_counter 3
end_if
if random_counter = 1
console_command add_money england, 5000
end_if
if random_counter = 2
console_command add_money england, 10000
end if
if random_counter 3
console_command add_money england, 20000
end_if
end_monitor
Kingdoms example
Code:
monitor_event FactionTurnEnd FactionType england
generate_random_counter random_money 1 3
if I_EventCounter random_money = 1
add_money england 5000
end_if
if I_EventCounter random_money = 2
add_money england 10000
end_if
if I_EventCounter random_money = 3
add_money england 20000
end_if
end_monitor
In the vanilla example there are 25 lines of code (not counting empty lines) in the Kingdoms example there are 12. Multiply that by 31 factions.
25 x 31 = 775 M2TW
12 x 31 = 372 Kingdoms
If you are doing something for every settlement instead of every faction it gets worse, consider 199 settlements.
25 x 199 = 4975 M2TW
12 x 199 = 2388 Kingdoms
To add another choice to the M2TW version you have to add 8 lines of code, 3 for the new choice and 5 to generate the new number. To add another line to the Kingdoms version you have to change one number in the generate_random_counter line and add 3 lines of code.
For all factions
(25 + 8) x 31 = 1023 M2TW
(12 + 3) x 31 = 465 Kingdoms
For 199 settlements
(25 + 8) x 199 = 6567 M2TW
(12 + 3) x 199 = 2985 Kingdoms
For 10 choices it gets absurd.
(25 + (8 x 7) x 31 = 43000 M2TW
(25 + (3 x 7) x 31 = 16275 Kingdoms
(25 + (8 x 7) x 199 = 278600 M2TW
(25 + (3 x 7) x 199 = 104475 Kingdoms
Plus the commands are longer in M2
console_command add_money england, 20000 = M2TW
add_money england 20000 = Kingdoms
If you wanted to use an uneven distribution as in in your example above where the botton 50% is split into two options and the top 50% is one block then you just give the same command to two choices.
if counter = 1 then this
if counter = 2 then that
if counter = 3 then other
if counter = 4 then other
if counter = 5 then another
if counter = 6 then another
I would rather spend time coding the choices than coding both choices and generating the number.