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

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • 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
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
Event 71004 uses has_lover = no as a trigger in the ROOT scope; however, this event has nothing to do with lovers for the ruler the event is fired for. Instead, this trigger should be used in the any_courtier scope to limit the potential courtiers being seduced by the hedge knight.

This event also has the potential to select different women in each of the two options. The random_courtier selection should be moved to an immediate and saved as an event target.

Since the seducing hedge knight is created for both options, that task could also be moved to the immediate and saved as an event target.

My rewrite of the event:
Code:
character_event = {
   id = 71004
   desc = EVTDESC71004   
   
   only_playable = yes
   prisoner = no
   has_character_flag = hedge_knights_visiting
   
   picture = GFX_evt_lovers
   
   trigger = {
     NOT = {   has_character_flag = hedge_knight_recruited }
     NOT = {   has_character_flag = hedge_knight_woman_seduced   }
     any_courtier = {
       has_lover = no
         age = 16
         not = { age = 20 }
         is_female = yes   
         is_married = no
         is_pregnant = no
       has_lover = no
       NOT = { trait = homosexual }
       fertility = 0.1
       culture_group = ROOT
       }       
   }   
   
   immediate = {
     set_character_flag = hedge_knight_woman_seduced
     random_courtier = {
       limit = {
         has_lover = no
         age = 16
         not = { age = 20 }
         is_female = yes   
         is_married = no
         is_pregnant = no
         has_lover = no
         NOT = { trait = homosexual }
         fertility = 0.1
         culture_group = ROOT
       }
       save_event_target_as = seduced_woman
     }
     create_character = {
       random_traits = yes
       dynasty = none
       culture = root
       fertility = 0.6
       female = no
       age = 24
       }
     new_character = {
       save_event_target_as = hedge_knight
     }
   }

   mean_time_to_happen = {
     days = 20
     
     modifier = {
       factor = 5
       has_character_flag = hedge_knight_recruited   
     }     
   }   
   option = {
     name = EVTOPTA71004 #stay
     
     
     event_target:seduced_woman = {
         add_trait = lustful
         event_target:hedge_knight = {
           impregnate = PREV
           add_lover = PREV
         PREV = {
           add_character_modifier = {
             name = "new_love"
             duration = 90
             hidden = yes
           }
         }
         add_character_modifier = {
           name = "new_love"
           duration = 90
           hidden = yes
         }
         add_trait = lustful       
         }
       }
       piety = -10
   }
   option = {
     name = EVTOPTB71004 #dungeon
     ai_chance = {
       factor = 1
       modifier = {
         factor = 100
         OR = {
           trait = cruel
           trait = zealous
          }
       }
     }
     event_target:seduced_woman = {
         add_trait = lustful
       event_target:hedge_knight = {
           impregnate = PREV
           add_lover = PREV
         PREV = {
           add_character_modifier = {
             name = "new_love"
             duration = 90
             hidden = yes
           }
         }
         add_character_modifier = {
           name = "new_love"
           duration = 90
           hidden = yes
         }
         add_trait = lustful
         imprison = ROOT
         }
       }     
   }
}
 
Last edited:
Upvote 0