Results 1 to 2 of 2

Thread: How to make FL getting a trait after he becomes vassal

  1. #1
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,485

    Default How to make FL getting a trait after he becomes vassal

    Hi Guys,
    consider such a situation: a faction becomes another faction's vassal. I'd like to create a trigger for the FL of this faction to get points a trait (in this situation: Coward). Do you know how to do it?
    cheers
    JoC

  2. #2
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: How to make FL getting a trait after he becomes vassal

    This is impossible as far as I know.

    It would need some kind of condition for testing who the vassal (protectorate) is. Sadly none exist. descr_campaign_ai_db.xml is the exception but they're a different kind of condition which only that file uses.

    Or it would need some kind of BecomesVassal/Protectorate event (against which FactionType could be used). Those don't exist either.

    It feels like the parameter choices for DiplomaticStanceFactions should contain two more: Protector, Protectorate, Allied, Suspicious, Neutral, Hostile, AtWar.

    There is the protectorate_established 'event'. Not a true event which can be used in monitor_event or WhenToTest, rather a message event (in the event_titles/strings files) which presumably could be used with IncomingMessage. That would only tell you (script) that somebody has become a vassal but not who. The game inserts the faction name into that message scroll; the player knows who the faction is but script can't find that out.

    Given that vassals can only come into being via diplomacy there is one remote possibility...

    Script could use the DiplomacyPanelOpen event to find out who the player is in diplomacy talks with (FactionType). If, upon that scroll closing, a vassal message is incoming (monitor_event IncomingMessage IncomingMessageType protectorate_established) then it must mean that one of those two factions who were in diplomacy talks became a vassal as a result. Which one though? Was the player asking the other faction to become vassal or the other way around? I can't think of a way to find that out.
    Last edited by Withwnar; December 06, 2019 at 10:32 PM.

Posting Permissions

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