Log in

View Full Version : Script adjustment



stupac
03-21-2008, 02:29
I want to make sure I'm doing this right, if someone could quickly review it for me. I'm trying to edit the EBBS_SCRIPT to give the maks a boost in the early game (namely cause they always get defeated KH early in every one of my last campaigns) and to give the Romani a boost later in the game so they can actually become a formidable empire rather than just an Italian state, like they have been in all my other games.

I edited the Romani money script to look like this:

;After 20 years
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_TurnNumber > 80
and Treasury < 200000
if I_NumberOfSettlements seleucid < 3
console_command add_money seleucid, 900
end_if

if I_NumberOfSettlements seleucid < 6
console_command add_money seleucid, 300
end_if

if I_NumberOfSettlements seleucid < 9
console_command add_money seleucid, 300
end_if

if I_NumberOfSettlements seleucid < 16
and I_CompareCounter numPlayerSettlements > 10
console_command add_money seleucid, 600
end_if

if I_NumberOfSettlements seleucid < 25
and I_CompareCounter numPlayerSettlements > 18
console_command add_money seleucid, 600
end_if

if I_NumberOfSettlements seleucid < 35
and I_CompareCounter numPlayerSettlements > 30
console_command add_money seleucid, 600
end_if
console_command add_money seleucid, 600
end_monitor


I edited the Makedonian money script to this:

;first 20 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber < 81
and Treasury < 150000
if I_NumberOfSettlements macedon > 24
console_command add_money macedon, 1200
end_if

if I_NumberOfSettlements macedon < 25
console_command add_money macedon, 600
end_if

if I_NumberOfSettlements macedon < 16
console_command add_money macedon, 600
end_if


I basically doubled the money in 2 of the sections. So I think that Makedonia should be then getting 1200 mnai per turn as opposed to 600 until they get over 25 settlements right? And after 20 years the Romani should at most be getting another 900 mnai. Looking at the script though, I've almost doubled their income but it doesn't sound like enough to me, mere pennies. Is this enough or should I increase it more if I want to get the effect I desire? Would it be safe to triple or quadruple the amount? Also, I'm not really familiar with this file, so I wanted to make sure I wasn't doing something completely wrong.

Watchman
03-21-2008, 03:05
That's mnai per settlement, innit...? "Pennies" indeed...

stupac
03-21-2008, 05:04
That's mnai per settlement, innit...? "Pennies" indeed...

Oh my. I knew I must have been looking at it wrong, thank you very much, watchman. Yeah, I think what I have will be sufficient, I'll have to see how it effects my campaign.

Ower
03-21-2008, 08:40
;first 20 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber < 81
and Treasury < 150000
if I_NumberOfSettlements macedon > 24
console_command add_money macedon, 1200
end_if

if I_NumberOfSettlements macedon < 25
console_command add_money macedon, 600
end_if

if I_NumberOfSettlements macedon < 16
console_command add_money macedon, 600
end_if

Can I ask a question, why the first wan is if in this case Macedon has more than 24 settelments give them 1200, should it not be les then?

stupac
03-21-2008, 18:04
;first 20 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber < 81
and Treasury < 150000
if I_NumberOfSettlements macedon > 24
console_command add_money macedon, 1200
end_if

if I_NumberOfSettlements macedon < 25
console_command add_money macedon, 600
end_if

if I_NumberOfSettlements macedon < 16
console_command add_money macedon, 600
end_if

Can I ask a question, why the first wan is if in this case Macedon has more than 24 settelments give them 1200, should it not be les then?

I was wondering the same thing, I saw that on a few factions, and the complete opposite on others.

Korlon
03-21-2008, 21:05
Presumably it's because, in order to have conquered all that in just the span of 20 years, the faction must've recruited a tremendous amount of armies. This means the upkeep of all those armies must be killing the treasury of said faction, so the script must give more money to the faction in order to keep its finances in the green.

bovi
03-25-2008, 18:53
IIRC, there was a copy-paste error in the money script, I believe it's fixed in the internal version but would have to check again when I come home. They are definitely supposed to get more money per settlement when they have less of them, not the other way around.

stupac
03-26-2008, 00:05
IIRC, there was a copy-paste error in the money script, I believe it's fixed in the internal version but would have to check again when I come home. They are definitely supposed to get more money per settlement when they have less of them, not the other way around.

So you'd say this section is incorrect?


if I_NumberOfSettlements macedon > 24
console_command add_money macedon, 1200
end_if

Cause, that's what mine had without modification.

bovi
03-26-2008, 07:21
Yeah. Here's the current internal version:


;first 12 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber < 49
and Treasury < 100000
console_command add_money macedon, 1200
if I_NumberOfSettlements macedon < 25
console_command add_money macedon, 300
end_if
if I_NumberOfSettlements macedon < 16
console_command add_money macedon, 300
end_if
end_monitor



;after 12 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber > 48
and Treasury < 100000
if I_NumberOfSettlements macedon < 3
console_command add_money macedon, 900
end_if

if I_NumberOfSettlements macedon < 6
console_command add_money macedon, 300
end_if

if I_NumberOfSettlements macedon < 9
console_command add_money macedon, 300
end_if

if I_NumberOfSettlements macedon < 16
and I_CompareCounter numPlayerSettlements > 10
console_command add_money macedon, 300
end_if

if I_NumberOfSettlements macedon < 25
and I_CompareCounter numPlayerSettlements > 18
console_command add_money macedon, 300
end_if

if I_NumberOfSettlements macedon < 35
and I_CompareCounter numPlayerSettlements > 30
console_command add_money macedon, 300
end_if

console_command add_money macedon, 600
end_monitor

Ower
03-26-2008, 07:30
Thought so, thx for the confirmation, now I can fix it.

Yossarian
04-05-2008, 11:24
Quick question:

Is it supposed to look exactly like this:

;first 12 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber < 49
and Treasury < 100000
console_command add_money macedon, 1200
if I_NumberOfSettlements macedon < 25
console_command add_money macedon, 300
end_if
if I_NumberOfSettlements macedon < 16
console_command add_money macedon, 300
end_if
end_monitor



Will the script act differently with spaces in between the lines like this (which is what it looks like as per default):

;first 12 years
monitor_event SettlementTurnStart FactionType macedon
and not FactionIsLocal
and I_TurnNumber < 49
and Treasury < 100000
console_command add_money macedon, 1200
if I_NumberOfSettlements macedon < 25
console_command add_money macedon, 300
end_if

if I_NumberOfSettlements macedon < 16
console_command add_money macedon, 300
end_if

end_monitor

bovi
04-05-2008, 16:31
Multiple newlines count as one, so these pieces of code are equivalent.

Yossarian
04-06-2008, 09:41
Thanks for clearing that up!