I'd realised a while ago about needing the export from SettlementTurnEnd (had temporarily forgotten - been round in so many circles)
but same thing applies to that so if its
Code:
monitor_event SettlementTurnEnd SettlementName Rajah
and I_CompareCounter Rajah = 1
and GarrisonSettlementRatio < 0.8
and not SettlementBuildingExists > militia_barracks
if I_SettlementOwner Rajah = vandals
and I_FactionBesieged vandals
set_counter Rajah 2
console_command add_money vandals, 1000
console_command create_unit Rajah "semin" 1
terminate_monitor
end_if
end_monitor
it works
Code:
monitor_event SettlementTurnEnd SettlementName Rajah
and I_CompareCounter Rajah = 1
and GarrisonSettlementRatio < 0.8
if I_SettlementOwner Rajah = vandals
and not SettlementBuildingExists > militia_barracks
and I_FactionBesieged vandals
set_counter Rajah 2
console_command add_money vandals, 1000
console_command create_unit Rajah "semin" 1
terminate_monitor
end_if
end_monitor
with building check moved inside 'if' doesn't work - so 'if' statement breaks link to the returned information from the event????
if that is general principle it might help explain other problems, as I've probably got ifs checking a lot more that they are meant to be, I was trying to reduce monitors by having more things as ifs inside, might not be the way to go!
Bookmarks