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

ADHansa

Second Lieutenant
35 Badges
Jan 5, 2004
132
0
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Cities: Skylines
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Victoria: Revolutions
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Magicka
  • Cities in Motion 2
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
I have written 3 events that makes the game more fun as i see it. I dont have the code available here (at work), but i will explain how they work.

1. Crusader remover.

Removes the crusader trait from you mean time 2 year, modificated to happen faster the more piety you have.

2. Crusader excommunicater.

If you have crusader and high negative piety, you can gain excom and lose crusader.

3. Gold to piety. (Until how i can work out how to make Gold to piety+crusader (will work a bit like christian mongols) units)

It you have lotsa gold you have to pay and gain piety or refuse and loose piety.

Theese events let get about as much piety during the crusade era as others without having to crusade constantly.
For those that are intrested and can wait, i will bring the code tomorrow.
 
in config/extra_event.txt

EVT_62101_NAME;A group of crusaders ask for monetary support!;;;;;;;;;;X
ACTIONNAME62101A;My gold is better spent elsewhere;;;;;;;;;;X
ACTIONNAME62101B;I will arrange with the transportation;;;;;;;;;;X
ACTIONNAME62101C;I will pay for supplies, equipment and transportation;;;;;;;;;;X
EVT_62102_NAME;The pope gives you permission to put the sword to rest;;;;;;;;;;X
ACTIONNAME62102A;Yes, I have done my part;;;;;;;;;;X
EVT_62103_NAME;The pope has lost patience with you;;;;;;;;;;X
ACTIONNAME62103A;But, I was just about to;;;;;;;;;;X

in the events

#######################################################
# The CHurch is willing to release you from your obligations #
#######################################################

character_event = {
id = 62102

picture = "event_crusades"

trigger = {
condition = { type = is_independent }
condition = { type = trait value = crusader }

}

mean_time_to_happen = {
months = 24

modifier = {

condition = { type = not value = { type = piety value = 0 } }
factor = 2
}


modifier = {
condition = { type = piety value = 500 }
condition = { type = not value = { type = piety value = 1000 } }
factor = 0.5
}

modifier = {
condition = { type = piety value = 1000 }
factor = 0.2
}
}

action_a = {#Finally!
effect = { type = remove_trait value = crusader }
}
}

#######################################################
# Crusader,ha #
#######################################################

character_event = {
id = 62103

picture = "event_crusades"

trigger = {
condition = { type = is_independent }
condition = { type = trait value = crusader }
condition = { type = not value = { type = piety value = -100 } }

}

mean_time_to_happen = {
months = 12

modifier = {


}
}

action_a = {#Finally!
effect = { type = add_trait value = excommunicated }
effect = { type = remove_trait value = crusader }
effect = { type = prestige value = -200 }
}

}


#############################
# Pay for a Crusader regiment #
#############################

#temporary until find out a way to do create real troops for the crusaders

character_event = {
id = 62103

picture = "event_templars"

trigger = {

condition = { type = crusade }
condition = { type = religion value = catholic }
condition = { type = gold value = 2000}
}


mean_time_to_happen = {
months = 60

modifier = {
condition = { type = gold value = 4000 }
factor = 0.8
}
modifier = {
condition = { type = gold value =6000 }
factor = 0.8
}
modifier = {
condition = { type = gold value = 8000 }
factor = 0.8
}
modifier = {
condition = { type = gold value = 10000 }
factor = 0.8
}

}

action_a = {
ai_chance = 10
effect = { type = piety value = -10 }
}
action_b = {
ai_chance = 20
effect = { type = piety value = 10 }
effect = { type = gold value = -500 }
}
action_c = {
ai_chance = 70
effect = { type = piety value = 50 }
effect = { type = gold value = -2000 }
}
}
 
Last edited:
Event IDs under 5000 are reserved for Paradox, and 5000-10000 are reserved for beta use. Check this thread then put in your claim for event ID block and renumber yours.

Oh, and if you put your events in a code block, indenting will be preserved.