I'm working on an extended settlement upkeep script, and it is supposed to charge different amounts depending on settlement level, whether or not a governor is present, and whether or not the settlement is the capital. Now, the first part works just fine, the different levels of settlement part. Tested it in vanilla. The second part and third part I am testing now, and I am most certainly being overcharged!
The thing is, do 'and FactionCapital' or 'and not FactionCapital' work in the campaign_script.txt? Below is the script (ignore the 'inflationon' bit, I copied and pasted this from the mod the script is going to be included in, it doesn't matter at the moment).
HTML Code:;1 - Governor and without inflation, not capital monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_pallisade and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -100 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_wall and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -200 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = stone_wall and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -400 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = large_stone_wall and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -800 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = huge_stone_wall and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -1600 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = motte_and_bailey and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -100 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = wooden_castle and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -200 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = castle and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -400 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = fortress and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -800 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = citadel and not FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -1600 end_monitor ;2 - No governor and without inflation, not capital monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_pallisade and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -150 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_wall and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -300 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = stone_wall and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -600 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = large_stone_wall and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -1200 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = huge_stone_wall and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -2400 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = motte_and_bailey and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -150 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = wooden_castle and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -300 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = castle and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -600 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = fortress and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -1200 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = citadel and not FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -2400 end_monitor ;3 - Governor and capital monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_pallisade and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -125 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_wall and I_EventCounter inflationon = 0 and FactionCapital and GovernorInResidence console_command add_money -250 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = stone_wall and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -500 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = large_stone_wall and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -1000 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = huge_stone_wall and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -2000 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = motte_and_bailey and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -125 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = wooden_castle and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -250 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = castle and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -500 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = fortress and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -1000 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = citadel and FactionCapital and I_EventCounter inflationon = 0 and GovernorInResidence console_command add_money -2000 end_monitor ;2 - No governor and capital monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_pallisade and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -175 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = wooden_wall and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -350 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = stone_wall and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -700 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = large_stone_wall and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -1400 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType city and SettlementBuildingExists = huge_stone_wall and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -2800 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = motte_and_bailey and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -175 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = wooden_castle and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -350 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = castle and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -700 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = fortress and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -1400 end_monitor monitor_event SettlementTurnEnd FactionIsLocal and SettlementType castle and SettlementBuildingExists = citadel and FactionCapital and I_EventCounter inflationon = 0 and not GovernorInResidence console_command add_money -2800 end_monitor





Reply With Quote












































