am/was trying to get the AI to actually get to a point where they can have/start with lower size settlement than city and not drain all population from it and in effect causing their own doom, doing so by adding some population on the unittrained event
this works perfect;
Code:
monitor_event UnitTrained TrainedUnitCategory infantry
and SettlementName Messana
and not SettlementIsLocal
and I_CompareCounter Settlement_Level < 3
console_command add_population Messana, 200
end_monitor
monitor_event UnitTrained TrainedUnitCategory cavalry
and SettlementName Messana
and not SettlementIsLocal
and I_CompareCounter Settlement_Level < 3
console_command add_population Messana, 120
end_monitor
monitor_event UnitTrained TrainedUnitCategory infantry
and SettlementName Messana
and SettlementIsLocal
and I_CompareCounter Settlement_Level < 3
console_command add_population Messana, 80
end_monitor
nicelly gives me 80 men back and the AI up to 200
but can you spot the diff. between the above and following;
Code:
monitor_event UnitTrained TrainedUnitCategory infantry
and SettlementName Thapsus_S
and not SettlementIsLocal
and I_CompareCounter Settlement_Level < 3
console_command add_population Thapsus_S, 200
end_monitor
monitor_event UnitTrained TrainedUnitCategory cavalry
and SettlementName Thapsus_S
and not SettlementIsLocal
and I_CompareCounter Settlement_Level < 3
console_command add_population Thapsus_S, 120
end_monitor
monitor_event UnitTrained TrainedUnitCategory infantry
and SettlementName Thapsus_S
and SettlementIsLocal
and I_CompareCounter Settlement_Level < 3
console_command add_population Thapsus_S, 80
end_monitor
possibly tell me why it does not work, nor any other recruitment-event from any other faction than the Julii and Senate works
the Senate happily gets a boost in all 5 of its settlements, the Julii in all 6, but no-one else
tried using
Code:
monitor_event UnitTrained TrueCondition
no errors, but again no effect whatsoever when I also connect it to a specific settlement not owned by the Julii/Senate
Does anyone possibly have an idea whats going on here, afaik the script isnt the issue
(note that "Settlement_Level" is a counter set based on whats build in Rome, at the time of testing it was "0")
G
Bookmarks