Results 1 to 4 of 4

Thread: Question about FactionStanding

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Question about FactionStanding

    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:

    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
    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.

    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.

  2. #2
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Question about FactionStanding

    monitor_event UpdateAttitude FactionType sicily
    and TargetFactionType milan
    and FactionStanding > -0.0001

    set_event_counter test 1

    end_monitor

    monitor_event UpdateAttitude FactionType sicily
    and TargetFactionType milan
    and FactionStanding < 0.0001

    set_event_counter test 2

    end_monitor


  3. #3

    Default Re: Question about FactionStanding

    Quote Originally Posted by Taiji View Post
    monitor_event UpdateAttitude FactionType sicily
    and TargetFactionType milan
    and FactionStanding > -0.0001

    set_event_counter test 1

    end_monitor

    monitor_event UpdateAttitude FactionType sicily
    and TargetFactionType milan
    and FactionStanding < 0.0001

    set_event_counter test 2

    end_monitor

    Nope, adding .000 wont make a difference. Its like the UpdateAttitude triggers each turn but its always the same.


  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Question about FactionStanding

    You missed the minus sign?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •