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

SwiftUnity

Recruit
42 Badges
Mar 24, 2020
6
2
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II
  • Hearts of Iron IV: Together for Victory
  • Steel Division: Normandy 44
  • Europa Universalis IV: Mandate of Heaven
  • Steel Division: Normandy 44 Deluxe Edition
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normand 44 - Second Wave
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rights of Man
  • Steel Division: Normandy 44 -  Back to Hell
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Imperator: Rome - Magna Graecia
  • Europa Universalis 4: Emperor
  • Victoria 2
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Semper Fi
  • Hearts of Iron IV: Cadet
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
Hi, I was trying to make an event chain that would only fire if the player is ruling over a specific province. I was wondering how I could do this as I did not find any triggers that could check if someone owned a province. I want to make it so that if the character has control over a province, they would be able to get a reward or something like that.

Thanks!
 
allow = {
complete_controls = c_xxx or d_xxx or k_xxx

Whatever title you need. You’ll need to place further conditions in

potential = {

e.g ai = no

to prevent it from triggering for anyone and everyone who get control of said province.
 
allow = {
complete_controls = c_xxx or d_xxx or k_xxx

Whatever title you need. You’ll need to place further conditions in

potential = {

e.g ai = no

to prevent it from triggering for anyone and everyone who get control of said province.
Thanks for replying! I tried to make a sample event but it did not seem to fire when I was testing:
Code:
namespace = Winterfell

character_event = {
    id = Winterfell.1
    picture = GFX_travelers
    desc = Winterfell1
    
    trigger = {
    
    allow = {
    complete_controls = c_winterfell
    }
    
    potential = {
    ai = no
    }
    
    }

    mean_time_to_happen = {
    months = 1
    }
    
    
    option = {
        name = Winterfell_opt_1
        wealth = 15
    }
    
    }

I was wondering if I did anything wrong here? Could you give a sample of what would be the correct way to trigger an event tied to province ownership?
btw this is a submod for the AGOT mod so the provinces are different. The province that I want to affect is c_winterfell
 
Events don't have 'potential' and 'allow' clauses, but 'trigger' and various pre-triggers. See the wiki page on event modding for more information.