• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Jorlem

Field Marshal
118 Badges
May 9, 2012
4.564
4.056
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • The Showdown Effect
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
WoL.50 is as follows:

Code:
# Target: Scandal check after Tumble
character_event = {
    id = WoL.50
   
    hide_window = yes
   
    is_triggered_only = yes
   
    immediate = {
        random_courtier = {
            limit = {
                prisoner = no
                has_regent = no
                in_command = no
                is_adult = yes
                NOT = { character = FROM }
                NOT = { character = ROOT }
                OR = {
                    is_close_relative = ROOT
                    is_close_relative = FROM
                    is_liege_of = ROOT
                    is_rival = FROM
                    is_rival = ROOT
                    is_lover = FROM
                    is_lover = ROOT
                    any_spouse = {
                        OR = {
                            character = FROM
                            character = ROOT
                        }
                    }
                    any_consort = {
                        OR = {
                            character = FROM
                            character = ROOT
                        }
                    }
                    has_opinion_modifier = {
                        who = FROM
                        modifier = opinion_chasing_friend
                    }
                }
                OR = {
                    AND = {
                        attribute_diff = {
                            attribute = intrigue
                            character = ROOT
                            value = 0
                        }
                        attribute_diff = {
                            attribute = intrigue
                            character = FROM
                            value = 0
                        }
                    }
                    has_opinion_modifier = {
                        who = FROM
                        modifier = opinion_chasing_friend
                    }
                    has_opinion_modifier = {
                        who = FROM
                        modifier = opinion_chasing_child
                    }
                    has_opinion_modifier = {
                        who = FROM
                        modifier = opinion_chasing_spouse
                    }
                }
            }
            if = {
                limit = {
                    OR = {
                        AND = {
                            attribute_diff = {
                                attribute = intrigue
                                character = ROOT
                                value = 3
                            }
                            attribute_diff = {
                                attribute = intrigue
                                character = FROM
                                value = 3
                            }
                        }
                        has_opinion_modifier = {
                            who = FROM
                            modifier = opinion_chasing_friend
                        }
                        has_opinion_modifier = {
                            who = FROM
                            modifier = opinion_chasing_child
                        }
                        has_opinion_modifier = {
                            who = FROM
                            modifier = opinion_chasing_spouse
                        }
                    }
                }
                random = {
                    chance = 50
                    character_event = { id = WoL.55 days = 4 random = 7 }
                }
                break = yes
            }
            random = {
                chance = 25
                character_event = { id = WoL.55 days = 4 random = 7 }
            }
        }
    }
}

The ROOT for the event is the seduction target, but the random_courtier scope works thusly, according to the wiki:
Scopes to a random courtier of the character, including prisoners. Cannot be used as a trigger
If the seduction target isn't landed, they logically wouldn't have any courtiers for the event to select from. This in turn would mean that the event chain cannot continue, and the purpose of the chain, potentially applying the opinion_cuckolded modifier at the time of the tumble, will not happen. Logically, there should be a liege = { scope prior to the random_courtier scope.

As a side note, there doesn't appear to be a similar event chain to allow to defend your daughter's honor.
 
Upvote 0