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

Varning

First Lieutenant
52 Badges
Apr 17, 2008
245
6
  • Crusader Kings II
  • Heir to the Throne
  • Europa Universalis III
  • Europa Universalis III Complete
  • Deus Vult
  • Victoria: Revolutions
  • Darkest Hour
  • Europa Universalis III Complete
  • Europa Universalis IV: Third Rome
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Crusader Kings II: Holy Fury
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • 500k Club
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: El Dorado
  • Pillars of Eternity
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
Basically, I'm tired of seeing the Seljuks conquer the Byzantine Empire and become an anachronistic Ottoman analogue. What I tried to do was write an event so that if BYZA and SELJ were at war, and BYZA's capital came under siege, they would peace out. There is probably a better way to do this, but here's how I've been trying it:

Code:
character_event = {
    id = 200115

    picture = "event_intrigue"

    trigger = {
        condition = { type = ai }
        condition = { type = ruler }
        condition = { type = atwar }
        condition = { type = title value = BYZA }
        condition = { type = title value = C496 }
        condition = { type = religion value = orthodox }
        condition = { type = any_enemy
            condition = { type = title value = SELJ }
        }
        condition = { type = capital
            condition = { type = is_besieged }
        }
        condition = { type = not value = { type = year value = 1275 } }
    }

    mean_time_to_happen = {
        days = 15

        modifier = {
            condition = { type = year value = 1200 }
            factor = 2
        }
    }

    action_a = {
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = peace value = not_same_religion }
        effect = { type = prestige value = -50 }
        effect = { type = gold value = -500 }
        effect = { type = add_trait value = realm_duress }
    }
}

However, it doesn't seem to be firing, and I'm not sure where I've made a mistake. I don't get the typical error message that comes up when a [ is missing. Any help?
 
Huh, when manually fired from the console it works and read:

~~~

charevent 200115
dayly chance = 0.04516 mtth = 15.00 days

~~~

However, I if I dont fire it and just siege the castle then it doesn't seem to go off. I've given it like 3 months, saw the ai do a siege for like a year without it firing in another game.