Hi again!
I am trying to make a script that evaluates the standing of a faction towards the player, the problem is that I don't know if I'm doing it right because it doesn't work.
This is the code I created:
When I test it (me being sicily), I always get the historic event TEST2. Somehow the game is setting test = 2 even though my relation with milan is outstanding.Code:monitor_event UpdateAttitude FactionType sicily and TargetFactionType milan and FactionStanding > 0 set_event_counter test 1 end_monitor monitor_event UpdateAttitude FactionType sicily and TargetFactionType milan and FactionStanding < 0 set_event_counter test 2 end_monitor monitor_event UpdateAttitude FactionType sicily and TargetFactionType milan and FactionStanding = 0 set_event_counter test 3 end_monitor monitor_event FactionTurnStart FactionIsLocal if I_EventCounter test = 1 historic_event TEST1 end_if if I_EventCounter test = 2 historic_event TEST2 end_if if I_EventCounter test = 3 historic_event TEST2 end_if end_monitor
Also if I cancel my trade agreements and lower my relations to poor the next turn I still get historic event TEST2.
Any idea of what am I doing wrong?
Thanks in advance.




Reply With Quote






