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

cybrxkhan

Going to Scarborough Fair
57 Badges
Jul 14, 2012
8.148
3.858
  • Crusader Kings II: Charlemagne
  • Age of Wonders III
  • Stellaris
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Victoria 3 Sign Up
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Cities: Skylines Industries
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris Sign-up
  • Warlock: Master of the Arcane
  • 500k Club
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Surviving Mars
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
I am trying to figure out how to create an event to bring a character back to life who is dead. Any suggestions?

That sounds impossible unfortunately. There's no command I know of that can reverse death.
 

Third Angel

Mad Medievalist
48 Badges
Feb 8, 2005
2.372
53
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Deus Vult
I am trying to re-draw somewhat de de jure map of Western Europe, and the game just crashed after I defined duchies belonging to no kingdom and kingdoms belonging to no empire. So, before I start searching a missing bracket or another stupid mistake, I thought I would ask if that is still allowed with the latest patches.
 

JJDXB

Captain
60 Badges
Dec 20, 2011
316
27
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - After Dark
  • Crusader Kings II: Holy Knight (pre-order)
  • Cities: Skylines Deluxe Edition
  • Victoria 2: A House Divided
  • Supreme Ruler: Cold War
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III Complete
  • Crusader Kings II
  • 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: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Sunset Invasion
  • Cities: Skylines Industries
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Distant Stars
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Stellaris: Necroids
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
So basically, I've run into a problem with Horde invasion events. I'm creating a small mod wherein an ASB has Vercingetorix's army teleport from 52 BC to whenever the event fires, specifically into the province of Dijon.

I honestly don't know what the problem could be, but the horde doesn't declare war against the holder of the territory it spawns in. The bit in red is what the relevant part.

I've defined Gaulish culture as a horde and also set the character flag, but no dice. It's a bit weird considering I copied it from the Seljuk event.

# The Gauls Appear!
narrative_event = {
id = gallic.2
title = "EVTNAMEgallic2"
desc = "EVTDESCgallic2"
major = yes
hide_new = yes

picture = "GFX_gauls_arrive"
border = "GFX_event_narrative_frame_war"

only_playable = yes

trigger = {
year = 950
has_landed_title = k_gaultribal
has_global_flag = gaul_rumors
NOT = { has_global_flag = gaul_arrival }
}

mean_time_to_happen = {
months = 1
}

option = {
name = "OK"
trigger = {
has_landed_title = k_gaultribal
}
set_global_flag = gaul_arrival
set_character_flag = horde_invader
136 = { # Dijon
kingdom = {
ROOT = {
war = {
casus_belli = tribal_invasion
target = PREVPREV # The top liege of the owner of Dijon
thirdparty_title = PREV # The de jure kingdom
}
}
}
}

wealth = 2500
spawn_unit = {
owner = ROOT
leader = ROOT
province = 136 # Dijon
troops =
{
pikemen = { 3000 3000 }
light_cavalry = { 4000 4000 }
light_infantry = { 3000 3000 }
heavy_infantry = { 1500 1500 }
knights = { 200 200 }
}
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 40
attributes = {
martial = 12
}
trait = brilliant_strategist
}
new_character = {
spawn_unit = {
province = 136 # Dijon
owner = PREV
troops =
{
pikemen = { 3000 3000 }
light_cavalry = { 4000 4000 }
light_infantry = { 3000 3000 }
heavy_infantry = { 1500 1500 }
knights = { 200 200 }
}
}
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 40
attributes = {
martial = 12
}
trait = brilliant_strategist
}
new_character = {
spawn_unit = {
province = 136 # Dijon
owner = PREV
troops =
{
pikemen = { 3000 3000 }
light_cavalry = { 4000 4000 }
light_infantry = { 3000 3000 }
heavy_infantry = { 1500 1500 }
knights = { 200 200 }
}
}
}

# Some extra courtiers
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 16
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 20
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 25
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 26
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 28
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 16
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 17
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 20
}
}
option = {
name = "EVTOPTAgallic2"
trigger = {
religion_group = christian
NOT = { has_landed_title = k_gaultribal }
NOT = { has_landed_title = d_burgundy }
NOT = { has_landed_title = k_france }
}
}

option = {
name = "EVTOPTCgallic2"
trigger = {
NOT = { religion_group = christian }
NOT = { has_landed_title = k_gaultribal }
}
}

option = {
name = "EVTOPTBgallic2"
trigger = {
OR = { has_landed_title = k_france
has_landed_title = d_burgundy }
}
}
}
 

Nivve

General
14 Badges
May 7, 2011
1.773
1
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
I've acknowledged the help, I did everything asked, notepad++, the validator. But none of the brackets seem to be unclosed to me, even with going through it with Notepad++-everything closes up properly with nothing left outside the markers. There's nothing not matching up as far as I can see. And the Validator isn't telling me where within the Adventures file the problem is-no line number or anything.

The result is the help...isn't exactly helpful. And I'm still stuck with an unplayable game. I can't understand what I'm looking for or looking at despite having done minor modification before.

What else can I do but scream for help?

Acknowledging is not the same as using a suggestion, it is stating here that you used it (or not) and what the results were. If the suggestions were unhelpful, then tell us!
I noted that the bracket of line 15 was only closed around line 636, did you also find this? Did you closed it but the validator still finds errors? If the last thing is true, then it is probably useful to insert the next file instead of only saying 'Well, game's busted'. Did the game get bust due to one of our suggestions, we simply don't know!
There is no mention of you stating that you actually used the help and you stating what it did. Aside from my own suggestion, did Postm00v's suggestion help? I cannot find it in your posts.

You can argue I am nitpicking about the way you write the posts (I know the frustrationg, believe me), but it is in your benefit to state these things. We then have the information to solve your problem. If you use suggestions (and fix other things yourself), how can we know what broke it without you posting the the changed file? You can of course release frustration, but remain constructive, it will help you.


Whoops! I put this in a new thread instead of a new post. Anyway, my question is this:

Hey there - sorry if this is obvious, but I've tweaked all I can and it still isn't appearing (although I got the retinue appearing [and labeled!] just fine...). Is there some trigger I'm missing? Any observations would be valuable.

Is this a decision or an event? If the retinue is appearing as a consequence of this code, that would mean that the trigger works, but one of the effects is propably broken. Check whether all commands are correct (I have no experience in new units and such, so I cannot help much with that)

I'm looking to modify feudal opinion modifiers based on certain flags. Is this even possible, and if so, what's the proper syntax for the if/then statements?
It is possible. I have not used opinions, but you can simply make an event for the flags which give opinion boosts. More useful would be a character_modifier, then you don't make an event, but simply add the opinion effect in the event_modifiers.txt file.

I am trying to re-draw somewhat de de jure map of Western Europe, and the game just crashed after I defined duchies belonging to no kingdom and kingdoms belonging to no empire. So, before I start searching a missing bracket or another stupid mistake, I thought I would ask if that is still allowed with the latest patches.
Before you try to search for mistakes; It is IMPOSSIBLE to have duchies without a kingdom in the game. It is unfortunate, but you have to make a kingdom where it is de jure part of. You can simply make the kingdom not creatable. Most shattered world mods (such as mine) make a world-wide kingdom to circumvent this problem.
Having no de jure empire is no problem though.

I'm trying to add some custom titular kingdoms/empires/duchies to the my game. I'm running a whole bunch of mods at the same time so i can't really fit in a proper additional titles mod, so im trying to modify one of the mods by manually adding some titular titles. I'm running: PB+SWMH+NBRT+ARKO+AO2+Cultural Cities+CPR+Family Relations+VIET Assets, Events,Traits.

I assume i need to add the titular titles to SWMH folder. I added k_spain to titular_titles.txt in SWMH common/landed_titles folder and it worked perfectly and shows up in game when you search for title. However, i've tried adding 2-3 other kingdoms but none of them shows up in game no matter what i do. Anyone knows what the problem is? Is something conflicting? I'm so confused and tired already.

Here's the k_spain that works (Borrowed it from Yet More Titles mod and added few modifications):

Code:
k_spain = {
	color={ 233 200 20 }
	color2={ 255 255 255 }
		
	capital = 197 # Toledo
	
	dignity = 30
		
	culture = castillan
	
	andalusian_arabic = "Isbaniyya"
	maghreb_arabic = "Isbaniyya"
	levantine_arabic = "Isbaniyya"
	egyptian_arabic = "Isbaniyya"
	sicilian_arabic = "Isbaniyya"
	basque = "Espainia"
	catalan = "Espanya"
	leonese = "Espańa"
	galician = "Espańa"
	portuguese = "Espanha"
	aragonese = "Espanya"
	frankish = "Espagne"

	allow = {
		religion_group = christian
		AND = { 
			has_landed_title = k_castille
			has_landed_title = k_leon
		}
		OR = {
			has_landed_title = k_aragon
			has_landed_title = k_portugal
		}
		e_spain = {
			has_holder = no
		}
	}
}

[/spoiler]

And here's k_occitania that doesn't work:

Code:
k_occitania = {
	color={ 244 227 160 }
	color2={ 255 255 20 }

	capital = 214 #Toulouse
	
	dignity = 10

	culture = occitan
	
	allow ={
		culture = occitan
		religion_group = christian
		has_landed_title = d_toulouse
	}
}
[/spoiler]

Both of them have a flag file and appropriate localisations.
Since you use so many mods, it would be easiest to make your own minimod on top of them. That way you can be sure that the new titles will be loaded last and are not replaced by other mods which are loaded afterwards. Next I would suggest to remove all allows and such (so the bare minimum) so you can determine whether it's a faulty command or something else.
Event better would be to copy spain and then remove/add conditions one by one. So you can see when it is removed from view in-game.

Are both titles in the same document?

I'm trying to create a trait that can't be randomly generated to characters, and must be passed down from a current ruler. Is there a way to do this?
I think you simply have to state 'random = no' in the modifier properties. I am not sure, but read it somewhere here.

I am trying to figure out how to create an event to bring a character back to life who is dead. Any suggestions?
What kind of characters would be the target? You can perhaps create a work-around if it are very specific characters to target and the (potential) target is known beforehand.
 
Last edited:

Third Angel

Mad Medievalist
48 Badges
Feb 8, 2005
2.372
53
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Deus Vult
Before you try to search for mistakes; It is IMPOSSIBLE to have duchies without a kingdom in the game. It is unfortunate, but you have to make a kingdom where it is de jure part of. You can simply make the kingdom not creatable. Most shattered world mods (such as mine) make a world-wide kingdom to circumvent this problem.
Having no de jure empire is no problem though.
Thank you, do you think telling me how make a title un-creatable would also qualify as a quick answer?
 

Nivve

General
14 Badges
May 7, 2011
1.773
1
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
Thank you, do you think telling me how make a title un-creatable would also qualify as a quick answer?

Well yes that qualifies:)

Simply state:
allow = {
always = no
}

You can even add other allows ('ai = no' ), so you're sure it doesn't pop-up by the AI somewhere. Even if the title is creatable, it would only be creatable by a player.
 

Bloodly

Captain
41 Badges
Jul 24, 2008
480
11
  • Stellaris: Distant Stars
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Warlock: Master of the Arcane
  • Impire
  • 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
  • Imperator: Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Majesty 2
  • Stellaris: Synthetic Dawn
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • Crusader Kings II: Reapers Due
  • Cities in Motion
Acknowledging is not the same as using a suggestion, it is stating here that you used it (or not) and what the results were. If the suggestions were unhelpful, then tell us!
I noted that the bracket of line 15 was only closed around line 636, did you also find this? Did you closed it but the validator still finds errors? If the last thing is true, then it is probably useful to insert the next file instead of only saying 'Well, game's busted'. Did the game get bust due to one of our suggestions, we simply don't know!
There is no mention of you stating that you actually used the help and you stating what it did. Aside from my own suggestion, did Postm00v's suggestion help? I cannot find it in your posts.


It's still spitting out errors. It still gives me or anyone else no indication of WHERE. I THINK I closed the area mentioned, but I can't know for sure in any case. Because of course, if it's an unnecessary bracket or in the wrong place, the error would still be there, adding to the confusion. Everything seems to close up OK in that C# mode I was asked to look at, so I'm still stumped. Of course, even if I saw a problem, would I know where to put/take away a bracket, given position seems to matter?

#########################################################
#
# Landless Character Adventures for The Old Gods DLC
# ( TOG.1200 to TOG.1499)
#
#
#########################################################

# Written by Henrik Fåhraeus

namespace = TOG

# An ambitious landless claimant begins to plan an adventure for the title
character_event = {
id = TOG.1200
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

hide_window = yes # Only fires for unplayable landless characters

min_age = 16
max_age = 50
capable_only = yes
prisoner = no

trigger = {
has_dlc = "The Old Gods"

is_ruler = no

any_claim = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}


NOT = { # Somewhat clunky way of checking that the character does not stand to inherit any titles
any_heir_title = {
always = yes
}
}

diplomacy = 7

health = 4
NOT = { trait = content }
NOT = { trait = craven }

NOT = { has_character_modifier = planning_claimant_adventure }
}
}
mean_time_to_happen = {
years = 34
modifier = {
factor = 0.5
trait = ambitious
}
modifier = {
factor = 0.5
trait = envious
}
modifier = {
factor = 0.5
has_character_flag = flag_denied_title
}
modifier = {
factor = 0.75
diplomacy = 12
}
modifier = {
factor = 0.75
trait = brave
}
modifier = {
factor = 0.75
trait = born_in_the_purple
}
modifier = {
factor = 0.85
trait = proud
}
modifier = {
factor = 0.85
trait = sayyid
}
modifier = {
factor = 1.5
trait = slothful
}
modifier = {
factor = 1.5
trait = humble
}
modifier = {
factor = 2.0
trait = kind
}
}
}
immediate = {
random_claim = {
limit = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
}
}

holder_scope = {
reverse_opinion = {
who = ROOT
years = 3
modifier = opinion_claimant_adventure_target
}
character_event = {
id = TOG.1201 # Warn the target
}
}
ROOT = {
add_character_modifier = {
name = planning_claimant_adventure
hidden = yes
days = 730
}
character_event = {
id = TOG.1202 # Fire the attack
days = 730
}
}
}
}

option = {
name = OK
}


character_event = {
id = TOG.1201
desc =*EVTDESC_TOG_1201
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1201"
}
}

# An ambitious landless claimant starts an adventure for the title
character_event = {
id = TOG.1202
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war
hide_window = yes # Only fires for unplayable landless characters

is_triggered_only = yes

trigger = {
is_ruler = no
prisoner = no
NOT = { trait = incapable }

any_claim = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}
}

NOT = { # Somewhat clunky way of checking that the character does not stand to inherit any titles
any_heir_title = {
always = yes
}
}
}

immediate = {

wealth = 500

liege = {
character_event = {
id = TOG.1203
days = 1
}
}

liege = {
capital_scope = {
ROOT = {
set_defacto_liege = ROOT
create_title = {
tier = DUKE
landless = yes
temporary = yes
culture = ROOT
name = "CLAIMANT_ADVENTURE"
holder = ROOT
}

random_claim = {
limit = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_claimant_adventure_target
}
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}
}
holder_scope = {
ROOT = {
set_character_flag = claimant_adventurer
random_list = {
34 = {
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
leader = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
}
33 = {
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
leader = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
}
33 = {
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
leader = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
}
}
}
}
}
}
}
}

# Create some decent commander characters
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 30
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 25
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 33
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 29
}

# Create a fleet, just to be sure
spawn_fleet = {
province = closest # closest sea zone
owner = ROOT
disband_on_peace = yes
troops =
{
galleys = { 150 150 }
}
earmark = claimant_adventure
}

random_claim = {
limit = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_claimant_adventure_target
}
}
}

holder_scope = {
reverse_war = {
target = ROOT
casus_belli = claim
thirdparty_title = PREV
}
reverse_remove_opinion = {
who = ROOT
modifier = opinion_claimant_adventure_target
}
}
}
}

option = {
name = OK
}
}

character_event = {
id = TOG.1203
desc =*EVTDESC_TOG_1203
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

trigger = {
FROM = { is_ruler = yes } # The DoW worked and the adventurer has a temporary title
}

immediate = {
any_liege = {
character_event = {
id = TOG.1204
}
}
}

option = {
name = "EVTOPTA_TOG_1203"
}
}

character_event = {
id = TOG.1204
desc =*EVTDESC_TOG_1204
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

show_from_from = yes

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1203"
}
}

# An ambitious character with no inheritance begins to plan an adventure for a foreign title
character_event = {
id = TOG.1210
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

hide_window = yes # Only fires for unplayable landless characters

min_age = 16
max_age = 50
capable_only = yes
prisoner = no

trigger = {
has_dlc = "The Old Gods"

is_ruler = no

diplomacy = 7
martial = 7
health = 4

NOT = { trait = content }
NOT = { trait = craven }

}
}

NOT = { # Somewhat clunky way of checking that the character does not stand to inherit any titles
any_heir_title = {
always = yes
}
}

NOT = { # Handled by event 1200
any_claim = {
has_holder = yes
holder_scope = {
independent = yes
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}
}
}

OR = {
father_even_if_dead = {
OR = {
primary_title = { higher_tier_than = BARON }
father_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
mother_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
}
}
mother_even_if_dead = {
OR = {
primary_title = { higher_tier_than = BARON }
father_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
mother_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
}
}
}

NOT = { has_character_modifier = planning_duchy_adventure }
}

mean_time_to_happen = {
years = 70
modifier = {
factor = 0.5
trait = ambitious
}
modifier = {
factor = 0.5
OR = {
AND = {
culture = norman
NOT = { year = 1250 }
}
AND = {
culture_group = north_germanic
NOT = { year = 1066 }
}
}
}
modifier = {
factor = 0.5
has_character_flag = flag_denied_title
}
modifier = {
factor = 0.75
diplomacy = 12
}
modifier = {
factor = 0.75
martial = 12
}
modifier = {
factor = 0.75
trait = brave
}
modifier = {
factor = 0.85
trait = proud
}
modifier = {
factor = 3.0
trait = slothful
}
modifier = {
factor = 3.0
trait = humble
}
modifier = {
factor = 3.0
trait = kind
}
}

immediate = {
random_independent_ruler = {
limit = {
NOT = { culture = ROOT }
is_landed = yes
independent = yes
NOT = { is_vassal_or_below = ROOT }
any_realm_province = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}
}

random_realm_province = {
limit = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}

ROOT = {
opinion = {
who = PREVPREV
years = 3
modifier = opinion_duchy_adventure_target
}
add_character_modifier = {
name = planning_duchy_adventure
hidden = yes
days = 730
}
character_event = {
id = TOG.1212 # Fire the attack
days = 730
}
}
PREV = {
character_event = {
id = TOG.1211 # Warn the target
}
}
}
}
}

option = {
name = OK
}

character_event = {
id = TOG.1211
desc =*EVTDESC_TOG_1211
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1211"
}
}

# An ambitious character with no inheritance starts an adventure for a foreign title
# (Temporary title created and a war declared)
character_event = {
id = TOG.1212
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

hide_window = yes # Only fires for unplayable landless characters

is_triggered_only = yes

trigger = {
has_dlc = "The Old Gods"

is_ruler = no
prisoner = no
NOT = { trait = incapable }

NOT = {
any_heir_title = {
always = yes
}
}

any_independent_ruler = {
NOT = { culture = ROOT }
is_landed = yes
independent = yes
NOT = { is_vassal_or_below = ROOT }
any_realm_province = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_duchy_adventure_target
}
}
}

immediate = {
wealth = 500

liege = {
character_event = {
id = TOG.1213
days = 1
}
}

liege = {
capital_scope = {
random_independent_ruler = {
limit = {
NOT = { culture = ROOT }
is_landed = yes
independent = yes
NOT = { is_vassal_or_below = ROOT }
any_realm_province = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_duchy_adventure_target
}
}
random_realm_province = {
limit = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}

ROOT = {
set_defacto_liege = ROOT
create_title = {
tier = DUKE
landless = yes
temporary = yes
culture = ROOT
name = "CLAIMANT_ADVENTURE"
holder = ROOT
}

set_character_flag = duchy_adventurer

spawn_unit = {
province = PREVPREVPREV
home = PREVPREVPREV
owner = THIS
leader = THIS
match_character = PREVPREV
match_mult = 0.2
match_min = 500
match_max = 10000
attrition = 0.25
}
spawn_unit = {
province = PREVPREVPREV
home = PREVPREVPREV
owner = THIS
match_character = PREVPREV
match_mult = 0.2
match_min = 500
match_max = 10000
attrition = 0.25
}
spawn_unit = {
province = PREVPREVPREV
home = PREVPREVPREV
owner = THIS
match_character = PREVPREV
match_mult = 0.2
match_min = 500
match_max = 10000
attrition = 0.25
}
war = {
target = PREVPREV
casus_belli = duchy_adventure
thirdparty_title = PREV
tier = DUKE
}
remove_opinion = {
who = PREVPREV
modifier = opinion_duchy_adventure_target
}
}
}
}
}
}

# Create some decent commander characters
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 30
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 25
}

if = {
limit = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}

# Create a fleet, just to be sure
spawn_fleet = {
province = closest # closest sea zone
owner = ROOT
disband_on_peace = yes
troops =
{
galleys = { 200 200 }
}
}
}
}

option = {
name = OK
}
}

character_event = {
id = TOG.1213
desc =*EVTDESC_TOG_1213
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

trigger = {
FROM = { is_ruler = yes } # The DoW worked and the adventurer has a temporary title
}

immediate = {
any_liege = {
character_event = {
id = TOG.1214
}
}
}

option = {
name = "EVTOPTA_TOG_1203"
}
}

character_event = {
id = TOG.1214
desc =*EVTDESC_TOG_1214
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

show_from_from = yes

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1203"
}
}
 

Nivve

General
14 Badges
May 7, 2011
1.773
1
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
Acknowledging is not the same as using a suggestion, it is stating here that you used it (or not) and what the results were. If the suggestions were unhelpful, then tell us!
I noted that the bracket of line 15 was only closed around line 636, did you also find this? Did you closed it but the validator still finds errors? If the last thing is true, then it is probably useful to insert the next file instead of only saying 'Well, game's busted'. Did the game get bust due to one of our suggestions, we simply don't know!
There is no mention of you stating that you actually used the help and you stating what it did. Aside from my own suggestion, did Postm00v's suggestion help? I cannot find it in your posts.


It's still spitting out errors. It still gives me or anyone else no indication of WHERE. I THINK I closed the area mentioned, but I can't know for sure in any case. Because of course, if it's an unnecessary bracket or in the wrong place, the error would still be there, adding to the confusion. Everything seems to close up OK in that C# mode I was asked to look at, so I'm still stumped. Of course, even if I saw a problem, would I know where to put/take away a bracket, given position seems to matter?

#########################################################
#
# Landless Character Adventures for The Old Gods DLC
# ( TOG.1200 to TOG.1499)
#
#
#########################################################

# Written by Henrik Fåhraeus

namespace = TOG

# An ambitious landless claimant begins to plan an adventure for the title
character_event = {
id = TOG.1200
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

hide_window = yes # Only fires for unplayable landless characters

min_age = 16
max_age = 50
capable_only = yes
prisoner = no

trigger = {
has_dlc = "The Old Gods"

is_ruler = no

any_claim = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}


NOT = { # Somewhat clunky way of checking that the character does not stand to inherit any titles
any_heir_title = {
always = yes
}
}

diplomacy = 7

health = 4
NOT = { trait = content }
NOT = { trait = craven }

NOT = { has_character_modifier = planning_claimant_adventure }
}
}
mean_time_to_happen = {
years = 34
modifier = {
factor = 0.5
trait = ambitious
}
modifier = {
factor = 0.5
trait = envious
}
modifier = {
factor = 0.5
has_character_flag = flag_denied_title
}
modifier = {
factor = 0.75
diplomacy = 12
}
modifier = {
factor = 0.75
trait = brave
}
modifier = {
factor = 0.75
trait = born_in_the_purple
}
modifier = {
factor = 0.85
trait = proud
}
modifier = {
factor = 0.85
trait = sayyid
}
modifier = {
factor = 1.5
trait = slothful
}
modifier = {
factor = 1.5
trait = humble
}
modifier = {
factor = 2.0
trait = kind
}
}
}
immediate = {
random_claim = {
limit = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
}
}

holder_scope = {
reverse_opinion = {
who = ROOT
years = 3
modifier = opinion_claimant_adventure_target
}
character_event = {
id = TOG.1201 # Warn the target
}
}
ROOT = {
add_character_modifier = {
name = planning_claimant_adventure
hidden = yes
days = 730
}
character_event = {
id = TOG.1202 # Fire the attack
days = 730
}
}
}
}

option = {
name = OK
}


character_event = {
id = TOG.1201
desc =*EVTDESC_TOG_1201
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1201"
}
}

# An ambitious landless claimant starts an adventure for the title
character_event = {
id = TOG.1202
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war
hide_window = yes # Only fires for unplayable landless characters

is_triggered_only = yes

trigger = {
is_ruler = no
prisoner = no
NOT = { trait = incapable }

any_claim = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}
}

NOT = { # Somewhat clunky way of checking that the character does not stand to inherit any titles
any_heir_title = {
always = yes
}
}
}

immediate = {

wealth = 500

liege = {
character_event = {
id = TOG.1203
days = 1
}
}

liege = {
capital_scope = {
ROOT = {
set_defacto_liege = ROOT
create_title = {
tier = DUKE
landless = yes
temporary = yes
culture = ROOT
name = "CLAIMANT_ADVENTURE"
holder = ROOT
}

random_claim = {
limit = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_claimant_adventure_target
}
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}
}
holder_scope = {
ROOT = {
set_character_flag = claimant_adventurer
random_list = {
34 = {
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
leader = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.2
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
}
33 = {
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
leader = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.15
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
}
33 = {
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
leader = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
spawn_unit = {
province = PREVPREVPREVPREV
home = PREVPREVPREVPREV
owner = THIS
match_character = PREV
match_mult = 0.125
match_min = 300
match_max = 5000
attrition = 0.25
earmark = claimant_adventure
}
}
}
}
}
}
}
}
}

# Create some decent commander characters
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 30
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 25
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 33
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 29
}

# Create a fleet, just to be sure
spawn_fleet = {
province = closest # closest sea zone
owner = ROOT
disband_on_peace = yes
troops =
{
galleys = { 150 150 }
}
earmark = claimant_adventure
}

random_claim = {
limit = {
has_holder = yes
holder_scope = {
independent = yes # Only do this vs independent rulers
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_claimant_adventure_target
}
}
}

holder_scope = {
reverse_war = {
target = ROOT
casus_belli = claim
thirdparty_title = PREV
}
reverse_remove_opinion = {
who = ROOT
modifier = opinion_claimant_adventure_target
}
}
}
}

option = {
name = OK
}
}

character_event = {
id = TOG.1203
desc =*EVTDESC_TOG_1203
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

trigger = {
FROM = { is_ruler = yes } # The DoW worked and the adventurer has a temporary title
}

immediate = {
any_liege = {
character_event = {
id = TOG.1204
}
}
}

option = {
name = "EVTOPTA_TOG_1203"
}
}

character_event = {
id = TOG.1204
desc =*EVTDESC_TOG_1204
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

show_from_from = yes

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1203"
}
}

# An ambitious character with no inheritance begins to plan an adventure for a foreign title
character_event = {
id = TOG.1210
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

hide_window = yes # Only fires for unplayable landless characters

min_age = 16
max_age = 50
capable_only = yes
prisoner = no

trigger = {
has_dlc = "The Old Gods"

is_ruler = no

diplomacy = 7
martial = 7
health = 4

NOT = { trait = content }
NOT = { trait = craven }

}
}

NOT = { # Somewhat clunky way of checking that the character does not stand to inherit any titles
any_heir_title = {
always = yes
}
}

NOT = { # Handled by event 1200
any_claim = {
has_holder = yes
holder_scope = {
independent = yes
}
OR = {
tier = KING
holder_scope = { tier = PREV }
}
}
}

OR = {
father_even_if_dead = {
OR = {
primary_title = { higher_tier_than = BARON }
father_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
mother_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
}
}
mother_even_if_dead = {
OR = {
primary_title = { higher_tier_than = BARON }
father_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
mother_even_if_dead = {
primary_title = { higher_tier_than = BARON }
}
}
}
}

NOT = { has_character_modifier = planning_duchy_adventure }
}

mean_time_to_happen = {
years = 70
modifier = {
factor = 0.5
trait = ambitious
}
modifier = {
factor = 0.5
OR = {
AND = {
culture = norman
NOT = { year = 1250 }
}
AND = {
culture_group = north_germanic
NOT = { year = 1066 }
}
}
}
modifier = {
factor = 0.5
has_character_flag = flag_denied_title
}
modifier = {
factor = 0.75
diplomacy = 12
}
modifier = {
factor = 0.75
martial = 12
}
modifier = {
factor = 0.75
trait = brave
}
modifier = {
factor = 0.85
trait = proud
}
modifier = {
factor = 3.0
trait = slothful
}
modifier = {
factor = 3.0
trait = humble
}
modifier = {
factor = 3.0
trait = kind
}
}

immediate = {
random_independent_ruler = {
limit = {
NOT = { culture = ROOT }
is_landed = yes
independent = yes
NOT = { is_vassal_or_below = ROOT }
any_realm_province = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}
}

random_realm_province = {
limit = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}

ROOT = {
opinion = {
who = PREVPREV
years = 3
modifier = opinion_duchy_adventure_target
}
add_character_modifier = {
name = planning_duchy_adventure
hidden = yes
days = 730
}
character_event = {
id = TOG.1212 # Fire the attack
days = 730
}
}
PREV = {
character_event = {
id = TOG.1211 # Warn the target
}
}
}
}
}

option = {
name = OK
}

character_event = {
id = TOG.1211
desc =*EVTDESC_TOG_1211
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1211"
}
}

# An ambitious character with no inheritance starts an adventure for a foreign title
# (Temporary title created and a war declared)
character_event = {
id = TOG.1212
desc =*OK
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

hide_window = yes # Only fires for unplayable landless characters

is_triggered_only = yes

trigger = {
has_dlc = "The Old Gods"

is_ruler = no
prisoner = no
NOT = { trait = incapable }

NOT = {
any_heir_title = {
always = yes
}
}

any_independent_ruler = {
NOT = { culture = ROOT }
is_landed = yes
independent = yes
NOT = { is_vassal_or_below = ROOT }
any_realm_province = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_duchy_adventure_target
}
}
}

immediate = {
wealth = 500

liege = {
character_event = {
id = TOG.1213
days = 1
}
}

liege = {
capital_scope = {
random_independent_ruler = {
limit = {
NOT = { culture = ROOT }
is_landed = yes
independent = yes
NOT = { is_vassal_or_below = ROOT }
any_realm_province = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}
reverse_has_opinion_modifier = {
who = ROOT
modifier = opinion_duchy_adventure_target
}
}
random_realm_province = {
limit = {
OR = {
AND = {
port = yes
ROOT = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}
}
any_neighbor_province = {
owner = {
same_realm = ROOT
}
}
}
NOT = {
empire = {
title = e_scandinavia
}
}
NOT = {
duchy = {
title = d_bjarmia
}
}
}

ROOT = {
set_defacto_liege = ROOT
create_title = {
tier = DUKE
landless = yes
temporary = yes
culture = ROOT
name = "CLAIMANT_ADVENTURE"
holder = ROOT
}

set_character_flag = duchy_adventurer

spawn_unit = {
province = PREVPREVPREV
home = PREVPREVPREV
owner = THIS
leader = THIS
match_character = PREVPREV
match_mult = 0.2
match_min = 500
match_max = 10000
attrition = 0.25
}
spawn_unit = {
province = PREVPREVPREV
home = PREVPREVPREV
owner = THIS
match_character = PREVPREV
match_mult = 0.2
match_min = 500
match_max = 10000
attrition = 0.25
}
spawn_unit = {
province = PREVPREVPREV
home = PREVPREVPREV
owner = THIS
match_character = PREVPREV
match_mult = 0.2
match_min = 500
match_max = 10000
attrition = 0.25
}
war = {
target = PREVPREV
casus_belli = duchy_adventure
thirdparty_title = PREV
tier = DUKE
}
remove_opinion = {
who = PREVPREV
modifier = opinion_duchy_adventure_target
}
}
}
}
}
}

# Create some decent commander characters
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 30
}
create_random_soldier = {
random_traits = yes
dynasty = none
religion = ROOT
culture = ROOT
age = 25
}

if = {
limit = {
NOT = { culture_group = altaic }
NOT = { culture = hungarian }
}

# Create a fleet, just to be sure
spawn_fleet = {
province = closest # closest sea zone
owner = ROOT
disband_on_peace = yes
troops =
{
galleys = { 200 200 }
}
}
}
}

option = {
name = OK
}
}

character_event = {
id = TOG.1213
desc =*EVTDESC_TOG_1213
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

is_triggered_only = yes

trigger = {
FROM = { is_ruler = yes } # The DoW worked and the adventurer has a temporary title
}

immediate = {
any_liege = {
character_event = {
id = TOG.1214
}
}
}

option = {
name = "EVTOPTA_TOG_1203"
}
}

character_event = {
id = TOG.1214
desc =*EVTDESC_TOG_1214
picture = GFX_evt_crusaders
border = GFX_event_normal_frame_war

show_from_from = yes

is_triggered_only = yes

option = {
name = "EVTOPTA_TOG_1203"
}
}

If you use the c# language properly, you can easily see that there is a bracket extra which closes the first event prematurely. If you click on the first bracket the corresponding bracket turns red (if there is one), using c# I can see in one second that the bracket is in line 106, in the middle of the event.
When you remove it you can see that the now corresponding bracket is somewhere in another event. This is due to a missing bracket after the option in the first event (so the first event is never closed).
I even attached screenshots so you can see how you can easily spot the errors.

Before changes:
middle.png
After deleting the extra bracket past the mean time command
other event.png

In short:
- Delete one of the three brackets after the first 'mean_time_to_happen'
- Add a bracket after the option of the first event


See what people can do if you inform them properly :)
 

Jolt

General
17 Badges
May 29, 2005
1.838
343
  • Europa Universalis IV
  • Imperator: Rome Sign Up
  • Age of Wonders III
  • Stellaris Sign-up
  • Stellaris
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Heir to the Throne
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
Is it possible to somehow switch order of names so that the Family/Dynasty name comes first and the personal name last? For example Basileus Makedon Basileos I of the Byzantine Empire
 

Assalander

Major
56 Badges
Apr 6, 2012
554
139
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Monks and Mystics
  • Imperator: Rome
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Federations
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
I've been trying to set the "dynasty_title_names" to "no" for Persian in the culture00.txt file in the common/culture folder (currently playing a zoroastrian game and don't like my kingdom to be named "Karen", and it's also confusing to have the Satrapies named after the ruling dynasties rather than the location), but that had no effect. What did I miss?
 

Maria Theresa

Lt. General
130 Badges
Jul 11, 2011
1.586
1.438
  • Europa Universalis IV
  • Crusader Kings II: Holy Knight (pre-order)
  • Imperator: Rome - Magna Graecia
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Rome Gold
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Hearts of Iron: The Card Game
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Conclave
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings Complete
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Europa Universalis IV: Mare Nostrum
  • Knights of Honor
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Jade Dragon
  • Europa Universalis III Complete
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Divine Wind
  • Victoria 2: A House Divided
Since you use so many mods, it would be easiest to make your own minimod on top of them. That way you can be sure that the new titles will be loaded last and are not replaced by other mods which are loaded afterwards. Next I would suggest to remove all allows and such (so the bare minimum) so you can determine whether it's a faulty command or something else.
Event better would be to copy spain and then remove/add conditions one by one. So you can see when it is removed from view in-game.

Are both titles in the same document?

I made a separate mod just for the new kingdoms as you suggested (and added other mods that deal with titles as dependancies) and it seems to have fixed the problem. Hopefully i didn't cause a whole cascade of ne w problems by doing so.:rofl:

Thanks for the help!
 

JJDXB

Captain
60 Badges
Dec 20, 2011
316
27
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - After Dark
  • Crusader Kings II: Holy Knight (pre-order)
  • Cities: Skylines Deluxe Edition
  • Victoria 2: A House Divided
  • Supreme Ruler: Cold War
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis III Complete
  • Crusader Kings II
  • 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: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Sunset Invasion
  • Cities: Skylines Industries
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Distant Stars
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Stellaris: Necroids
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
So basically, I've run into a problem with Horde invasion events. I'm creating a small mod wherein an ASB has Vercingetorix's army teleport from 52 BC to whenever the event fires, specifically into the province of Dijon.

I honestly don't know what the problem could be, but the horde doesn't declare war against the holder of the territory it spawns in. The bit in red is what the relevant part.

I've defined Gaulish culture as a horde and also set the character flag, but no dice. It's a bit weird considering I copied it from the Seljuk event.

# The Gauls Appear!
narrative_event = {
id = gallic.2
title = "EVTNAMEgallic2"
desc = "EVTDESCgallic2"
major = yes
hide_new = yes

picture = "GFX_gauls_arrive"
border = "GFX_event_narrative_frame_war"

only_playable = yes

trigger = {
year = 950
has_landed_title = k_gaultribal
has_global_flag = gaul_rumors
NOT = { has_global_flag = gaul_arrival }
}

mean_time_to_happen = {
months = 1
}

option = {
name = "OK"
trigger = {
has_landed_title = k_gaultribal
}
set_global_flag = gaul_arrival
set_character_flag = horde_invader
136 = { # Dijon
kingdom = {
ROOT = {
war = {
casus_belli = tribal_invasion
target = PREVPREV # The top liege of the owner of Dijon
thirdparty_title = PREV # The de jure kingdom
}
}
}
}

wealth = 2500
spawn_unit = {
owner = ROOT
leader = ROOT
province = 136 # Dijon
troops =
{
pikemen = { 3000 3000 }
light_cavalry = { 4000 4000 }
light_infantry = { 3000 3000 }
heavy_infantry = { 1500 1500 }
knights = { 200 200 }
}
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 40
attributes = {
martial = 12
}
trait = brilliant_strategist
}
new_character = {
spawn_unit = {
province = 136 # Dijon
owner = PREV
troops =
{
pikemen = { 3000 3000 }
light_cavalry = { 4000 4000 }
light_infantry = { 3000 3000 }
heavy_infantry = { 1500 1500 }
knights = { 200 200 }
}
}
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 40
attributes = {
martial = 12
}
trait = brilliant_strategist
}
new_character = {
spawn_unit = {
province = 136 # Dijon
owner = PREV
troops =
{
pikemen = { 3000 3000 }
light_cavalry = { 4000 4000 }
light_infantry = { 3000 3000 }
heavy_infantry = { 1500 1500 }
knights = { 200 200 }
}
}
}

# Some extra courtiers
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 16
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 20
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 25
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 26
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = no
age = 28
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 16
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 17
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 18
}
create_character = {
random_traits = yes
dynasty = random
religion = gaulishr
culture = gaulish
female = yes
age = 20
}
}
option = {
name = "EVTOPTAgallic2"
trigger = {
religion_group = christian
NOT = { has_landed_title = k_gaultribal }
NOT = { has_landed_title = d_burgundy }
NOT = { has_landed_title = k_france }
}
}

option = {
name = "EVTOPTCgallic2"
trigger = {
NOT = { religion_group = christian }
NOT = { has_landed_title = k_gaultribal }
}
}

option = {
name = "EVTOPTBgallic2"
trigger = {
OR = { has_landed_title = k_france
has_landed_title = d_burgundy }
}
}
}

In addition to this, I have three further questions:

-How do I avoid messing up the flags when I add custom titles? I know I can use a separate file, but I'm trying to mod in a new religion's holy sites and as far as I'm aware of, I need the entire vanilla list for that. I know you can, but I'm at a loss as to how to go about placing the titles in the file

-How do I implement custom event pictures? I've got .dds files and put them in the mod's gfx/event_pictures folder, referenced them in-file as gfx_filename, but nada

-How do I implement the reform decision for a new pagan religion? I've dumped what I had before to start with a clean slate, but I couldn't get the button to show up in the religion window.

EDIT: First issue solved (not attacking), no problem.
 
Last edited:

Bloodly

Captain
41 Badges
Jul 24, 2008
480
11
  • Stellaris: Distant Stars
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Warlock: Master of the Arcane
  • Impire
  • 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
  • Imperator: Rome
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Majesty 2
  • Stellaris: Synthetic Dawn
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • Crusader Kings II: Reapers Due
  • Cities in Motion
*Sigh*.

Validator is not complaining about brackets or parsing in 'Adventures'. So I'm glad of THAT.

However, I find I am still getting a blank pop-up with no way to dismiss whilst in game. The base problem continues. And now I have even less to go on.
 
Last edited:

King_kovu

First Lieutenant
24 Badges
Jul 14, 2012
267
5
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings III
  • Crusader Kings II: Holy Fury
  • Shadowrun Returns
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • 500k Club
  • Cities: Skylines
How would one go about coding a decision that starts a war? I would assume you'd have the decision fire an event like the ones when a faction presents it's demands?

What I'm trying to do is create a 'Challenge the Imperial Title' decision. In my mod I have made it so that the first of Germania(e_hre), Italia(e_italy) and Francia(e_france) to form gets given the Western Roman Empire (e_wre) which is a titular title i've created that basically acts as the HRE as there's an event to rename it the HRE. What I want to do is make it so that if one of the other two empires forms after the WRE title is given out they can decide to Challenge the holder of the WRE for the imperial title.

also, To do this would I need to create a new Casus Belli?

Edit: I don't need to be told the exact coding that would need doing just what I would need to create and where I can look in the files for similar things to steal. I would simply copy the title claimant decision thing but that's faction based and as the Emperor of France cannot make a faction in the Empire of Italy it wouldn't go far....plus a literal claim would be needed.
 
Last edited: