
Originally Posted by
Redmeth
So is this possible, Sheep? Could you give different money bonuses depending on years passed? Another trigger to lower the bonuses to what they are right now (as in the script you posted today or yesterday) would be that if during the say 20 years of added bonuses for infrastructure their treasury would exceed 200k they would start getting only the normal bonuses.
I know a bit about programming but from what I understand the RTW-script language is pretty crappy and you can't really use too many if's and no variables or even % operations...
All of this can be done quite easily.
The I_TurnNumber command can be used to specify a certain number of turns (4 turns = 1 year obviously)
The Treasury command can be used to specify a certain amount in the treasury.
If you look at the script file, in Section 4a: Difficult Start Help, you can see how to use these commands.
As an example, try this:
Code:
;Rome
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_TurnNumber < 41
console_command add_money seleucid, 1200
end_monitor
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_NumberOfSettlements seleucid < 4
and I_TurnNumber > 40
console_command add_money seleucid, 1200
end_monitor
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_NumberOfSettlements seleucid < 9
and I_NumberOfSettlements seleucid > 3
and I_TurnNumber > 40
console_command add_money seleucid, 1000
end_monitor
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_NumberOfSettlements seleucid < 16
and I_NumberOfSettlements seleucid > 8
and I_TurnNumber > 40
console_command add_money seleucid, 800
end_monitor
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_NumberOfSettlements seleucid < 25
and I_NumberOfSettlements seleucid > 15
and I_TurnNumber > 40
console_command add_money seleucid, 600
end_monitor
monitor_event SettlementTurnStart FactionType seleucid
and not FactionIsLocal
and I_NumberOfSettlements seleucid > 25
and I_TurnNumber > 40
console_command add_money seleucid, 300
end_monitor
This code will give them the original 1200mnai bonus for the first 10 years of the game, then change to the stepped bonus after that. You can change the number of turns just by changing the value after I_TurnNumber. You will need to copy and paste this code for each faction. Don't forget to change the faction name in each and every instance it appears.
If you wanted to change it so that the bonuses are dependent on the amount in the treasury, simply change every instance of "I_TurnNumber" to "Treasury" and then change the value to whatever you want (Treasury > 200000 or whatever)
Bookmarks