It has been driving my batty because I don't understand why this time it's different. I want to create a monitor with multiple options: the monitor should check that two towns have the same owner (a few other counter checks thrown in for good measure) and then execute some deeds. The first try was originally wrapped into [if....end_if] but didn't work. This is what I have tried:
Can someone shed some light on what is happening here? I want to wrap it into [if..end_if] because I want to check a couple of factions and I don't want to write an independent monitor for each faction.Code:;This does not work monitor_event FactionTurnstart FactionIsLocal and I_SettlementOwner Bonn = moors and I_SettlementOwner Koeln = moors and I_EventCounter koeln_cath < 1 set_event_counter koeln_prot 1 set_religion Timurids orthodox add_events event historic koeln_kommt_prot date 0 position 130, 198 movie event/koeln.bik end_add_events terminate_monitor end_monitor ;This works monitor_conditions I_SettlementOwner Bonn = moors and I_SettlementOwner Koeln = moors and I_EventCounter koeln_cath < 1 set_event_counter koeln_prot 1 set_religion Timurids orthodox add_events event historic koeln_kommt_prot date 0 position 130, 198 movie event/koeln.bik end_add_events terminate_monitor end_monitor :This doesn't monitor_conditions I_SettlementOwner Bonn = moors if I_SettlementOwner Koeln = moors and I_EventCounter koeln_cath < 1 set_event_counter koeln_prot 1 set_religion Timurids orthodox add_events event historic koeln_kommt_prot date 0 position 130, 198 movie event/koeln.bik end_add_events end_if terminate_monitor end_monitor







































Reply With Quote





