Varning

First Lieutenant
50 Badges
Apr 17, 2008
242
0
  • 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 - Path to Destruction bundle
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Common Sense
  • 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
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV
  • 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
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
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?
 

Varning

First Lieutenant
50 Badges
Apr 17, 2008
242
0
  • 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 - Path to Destruction bundle
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Common Sense
  • 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
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV
  • 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
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
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.