• 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.157
3.909
  • 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 have a couple of questions, if nobody minds.

Firstly, what is the correct way to comment in a .csv file? I figured out the reason why my text kept getting jumbled up (as shown in my earlier post) was because I was using # for commenting, but I suppose this isn't the correct way to comment, or at least it doesn't work for my localisation files. Do I also have to add the ";;;;;;;;;;;;;;x" to the end of lines with # as well?

Secondly, concerning localisation of titles, the game has the liege's culture's titles override that of the vassal's culture's title. For instance, let's say I call Greek duchies "Theme" in the localisation file, but my Greek doux is ruled by the Holy Roman Emperor - then he's just a Duke of a Duchy. Is there any way to override this easily? It's not that big of an issue, but I was wondering.


Once more, thanks to everyone for answering my questions - much appreciated.
 

grisamentum

Field Marshal
93 Badges
Feb 29, 2012
6.530
1.202
  • Humble Paradox Bundle
  • Crusader Kings II: Sunset Invasion
Is there a way to flag certain k_ level titles as not acquiring duchies through drift?

For example, to stop the Papacy from acquiring Latium, to stop the Republic of Venice from becoming a de jure grand republic, etc.
 

rlopez1605

Second Lieutenant
16 Badges
May 6, 2007
182
0
rlopez1605.blog.com
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
I have a quick question I hope someone can answer quickly... How do you actually add a trait. I put my new trait in the traits.txt file. What else needs to be done to actually have it working ingame?
 

cybrxkhan

Going to Scarborough Fair
57 Badges
Jul 14, 2012
8.157
3.909
  • 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 have a quick question I hope someone can answer quickly... How do you actually add a trait. I put my new trait in the traits.txt file. What else needs to be done to actually have it working ingame?

That's all you need in theory, although it will be missing artwork and text.

To add traits' text, you will need to make a new .csv file in mod's localisation folder (if you didn't make one yet, make a file named "localisation" in your mod folder). Afterwards, you can add the needed text. I've used an example from one of my mods below (this is an example that only uses English localisation):

Code:
tall;Tall;;;;;;;;;;;;;x
tall_desc;This character is of considerable stature, taller than most.;;;;;;;;;;;;;x


Next, you'l need to add art. Assuming you have a .dds file for the trait icon (or made one already), you'll need to change the traits.gfx in the interface folder by adding your own entry for your trait.
 

rlopez1605

Second Lieutenant
16 Badges
May 6, 2007
182
0
rlopez1605.blog.com
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
That's where my problem is at. Here's my code so far:
On trait.txt file: Plagerized and screwed around with a little.

megagenius = {
personality = yes

opposites = {
imbecile
slow
quick
shallow
plain
genius
}

immortal = yes
health = 125
diplomacy = 75
intrigue = 75
stewardship = 75
martial = 75
learning = 75
disease_defence = 5
assassinate_chance_modifier = 200
monthly_character_prestige = 0.1

general_opinion = 10
ai_will_do = { factor = 0 }
ai_remove = { factor = 0 }
}

My traits.gfx file:

spriteType = {
name = "GFX_trait_megagenius"
texturefile = "gfx/traits/megagenius.tga"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}

What else? It comes up blank and doesn't do anything even when I call the trait from an event using the console. BTW. The event works fine just that the trait in question is not awarded.
Event code:

character_event = {
id = 987654321
desc = "Quick Character Fix"
picture = "GFX_evt_child_play"

is_triggered_only = yes

trigger = {
min_age = 20
max_age = 25
is_female = yes
mother = {
only_player = yes
}
NOT = { trait = megagenius }
}
option = {
name = "Grey Eminence - For Diplomacy"
ai_chance = { factor = 99 }
chance = 99
add_trait = grey_eminence
add_trait = megagenius
add_trait = strong
add_trait = hedonist
add_trait = scholar
add_trait = gardener
add_trait = mystic
add_trait = duelist
add_trait = hunter
add_trait = falconer
add_trait = good_cook
add_trait = fashion
add_trait = lustful
add_trait = temperate
add_trait = charitable
add_trait = diligent
add_trait = patient
add_trait = honest
add_trait = brave
add_trait = gregarious
add_trait = ambitious
add_trait = just
add_trait = sociable
add_trait = observant
remove_trait = naive_appeaser
remove_trait = underhanded_rogue
remove_trait = charismatic_negotiator
remove_trait = amateurish_plotter
remove_trait = flamboyant_schemer
remove_trait = intricate_webweaver
remove_trait = indulgent_wastrel
remove_trait = thrifty_clerk
remove_trait = fortune_builder
remove_trait = misguided_warrior
remove_trait = tough_soldier
remove_trait = skilled_tactician
remove_trait = detached_priest
remove_trait = martial_cleric
remove_trait = scholarly_theologian
}
option = {
name = "Elusive Shadow - For Intrigue"
ai_chance = { factor = 99 }
chance = 99
add_trait = elusive_shadow
add_trait = megagenius
add_trait = strong
add_trait = hedonist
add_trait = scholar
add_trait = gardener
add_trait = mystic
add_trait = duelist
add_trait = hunter
add_trait = falconer
add_trait = good_cook
add_trait = fashion
add_trait = lustful
add_trait = temperate
add_trait = charitable
add_trait = diligent
add_trait = patient
add_trait = honest
add_trait = brave
add_trait = gregarious
add_trait = ambitious
add_trait = just
add_trait = sociable
add_trait = observant
remove_trait = naive_appeaser
remove_trait = underhanded_rogue
remove_trait = charismatic_negotiator
remove_trait = amateurish_plotter
remove_trait = flamboyant_schemer
remove_trait = intricate_webweaver
remove_trait = indulgent_wastrel
remove_trait = thrifty_clerk
remove_trait = fortune_builder
remove_trait = misguided_warrior
remove_trait = tough_soldier
remove_trait = skilled_tactician
remove_trait = detached_priest
remove_trait = martial_cleric
remove_trait = scholarly_theologian
}
option = {
name = "Midas Touched - For Stewardship"
ai_chance = { factor = 99 }
chance = 99
add_trait = midas_touched
add_trait = megagenius
add_trait = strong
add_trait = hedonist
add_trait = scholar
add_trait = gardener
add_trait = mystic
add_trait = duelist
add_trait = hunter
add_trait = falconer
add_trait = good_cook
add_trait = fashion
add_trait = lustful
add_trait = temperate
add_trait = charitable
add_trait = diligent
add_trait = patient
add_trait = honest
add_trait = brave
add_trait = gregarious
add_trait = ambitious
add_trait = just
add_trait = sociable
add_trait = observant
remove_trait = naive_appeaser
remove_trait = underhanded_rogue
remove_trait = charismatic_negotiator
remove_trait = amateurish_plotter
remove_trait = flamboyant_schemer
remove_trait = intricate_webweaver
remove_trait = indulgent_wastrel
remove_trait = thrifty_clerk
remove_trait = fortune_builder
remove_trait = misguided_warrior
remove_trait = tough_soldier
remove_trait = skilled_tactician
remove_trait = detached_priest
remove_trait = martial_cleric
remove_trait = scholarly_theologian
}
option = {
name = "Brilliant Strategist - For Martial"
ai_chance = { factor = 99 }
chance = 99
add_trait = brilliant_strategist
add_trait = megagenius
add_trait = strong
add_trait = hedonist
add_trait = scholar
add_trait = gardener
add_trait = mystic
add_trait = duelist
add_trait = hunter
add_trait = falconer
add_trait = good_cook
add_trait = fashion
add_trait = lustful
add_trait = temperate
add_trait = charitable
add_trait = diligent
add_trait = patient
add_trait = honest
add_trait = brave
add_trait = gregarious
add_trait = ambitious
add_trait = just
add_trait = sociable
add_trait = observant
remove_trait = naive_appeaser
remove_trait = underhanded_rogue
remove_trait = charismatic_negotiator
remove_trait = amateurish_plotter
remove_trait = flamboyant_schemer
remove_trait = intricate_webweaver
remove_trait = indulgent_wastrel
remove_trait = thrifty_clerk
remove_trait = fortune_builder
remove_trait = misguided_warrior
remove_trait = tough_soldier
remove_trait = skilled_tactician
remove_trait = detached_priest
remove_trait = martial_cleric
remove_trait = scholarly_theologian
}
option = {
name = "Mastermind Theologian - For Learning"
ai_chance = { factor = 99 }
chance = 99
add_trait = mastermind_theologian
add_trait = megagenius
add_trait = strong
add_trait = hedonist
add_trait = scholar
add_trait = gardener
add_trait = mystic
add_trait = duelist
add_trait = hunter
add_trait = falconer
add_trait = good_cook
add_trait = fashion
add_trait = lustful
add_trait = temperate
add_trait = charitable
add_trait = diligent
add_trait = patient
add_trait = honest
add_trait = brave
add_trait = gregarious
add_trait = ambitious
add_trait = just
add_trait = sociable
add_trait = observant
remove_trait = naive_appeaser
remove_trait = underhanded_rogue
remove_trait = charismatic_negotiator
remove_trait = amateurish_plotter
remove_trait = flamboyant_schemer
remove_trait = intricate_webweaver
remove_trait = indulgent_wastrel
remove_trait = thrifty_clerk
remove_trait = fortune_builder
remove_trait = misguided_warrior
remove_trait = tough_soldier
remove_trait = skilled_tactician
remove_trait = detached_priest
remove_trait = martial_cleric
remove_trait = scholarly_theologian
}
option = {
name = "Do Nothing"
}
}
 

cybrxkhan

Going to Scarborough Fair
57 Badges
Jul 14, 2012
8.157
3.909
  • 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 can't comment on the event as I don't have much experience with events, but:

disease_defence = 5
assassinate_chance_modifier = 200
monthly_character_prestige = 0.1

general_opinion = 10
ai_will_do = { factor = 0 }
ai_remove = { factor = 0 }

Where did you get all of the above from? They don't seem to be related to traits at all - what I mean is that why are you putting these in the traits.txt file? Did you get this from another mod? I have never seen these for any trait before.
 

rlopez1605

Second Lieutenant
16 Badges
May 6, 2007
182
0
rlopez1605.blog.com
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
Yeah, Like I said... I was messing with it. I want this trait not to be used by any ai character (unless the event is called) and cannot be removed by the ai. I am going to test something else right now which will be to take out the disease defence, assisinate, monthly char pres, and the gen opinion. I'll see what happens then. and yes, the actual trait is plagerized from someone in here and then messed with. I wish I knew where I got it from in here.
 

rlopez1605

Second Lieutenant
16 Badges
May 6, 2007
182
0
rlopez1605.blog.com
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
HAHAHAHAH... All it needed for it to work is a "}" at the end of a code! Funny how c++ works that way. I didn't tell the code where my parameters stopped for the trait. Now I have to see if it actually works with an ai child of the player mother. Everything else did work fine and thank you for helping me with the text and art part of it.
 

Arko

Red zone
45 Badges
Jul 1, 2009
7.087
1.124
  • Europa Universalis IV
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings III
  • Deus Vult
  • Cities: Skylines
  • Magicka
I have a couple of questions, if nobody minds.

Firstly, what is the correct way to comment in a .csv file? I figured out the reason why my text kept getting jumbled up (as shown in my earlier post) was because I was using # for commenting, but I suppose this isn't the correct way to comment, or at least it doesn't work for my localisation files. Do I also have to add the ";;;;;;;;;;;;;;x" to the end of lines with # as well?

Secondly, concerning localisation of titles, the game has the liege's culture's titles override that of the vassal's culture's title. For instance, let's say I call Greek duchies "Theme" in the localisation file, but my Greek doux is ruled by the Holy Roman Emperor - then he's just a Duke of a Duchy. Is there any way to override this easily? It's not that big of an issue, but I was wondering.


Once more, thanks to everyone for answering my questions - much appreciated.

1- you need a complete line for commenting.
#;;;;;;;;;;;;;;x
you can then put your comment anywhere inside the line.

2 - I don't think you can, it is how the game is desugned to work. you can do it in a non dynamical by forcing a special title to be used for a specific title using the "FOA" thingy (look at papacy entry or mercenaries entries in landed titles.)
 

ShadowGamer42

Captain
94 Badges
May 9, 2012
347
0
  • Cities: Skylines
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - Mass Transit
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Europa Universalis III Complete
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Stellaris: Humanoids Species Pack
  • Shadowrun Returns
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
The basic requirement of 2 is defined in /common/defines.lua, but that is a global setting. If you only want it to affect a specific kingdom, you could try to build some creation triggers in landed_titles.txt:

Code:
		allow = {
			OR = {
				AND = {
					has_landed_title = d_amazonia
					has_landed_title = d_hippy_france
					has_landed_title = d_hippy_brittany
				}
				AND = {
					has_landed_title = d_amazonia
					has_landed_title = d_hippy_france
					has_landed_title = d_aztecia
				}
				AND = {
					...
				}
			}	
		}

I fear you will have to include every possible combination of duchies here though. On the other hand, there also is the condition of num_of_duke_titles, but I don't know if it checks for titles relevant to the kingdom or not. Probably not, but if you don't care for that, num_of_duke_titles will be easier to use.

Thanks! That's pretty much all the info I needed! :) The titles'll be titular so as that they can affect the same land but not replace the dejure map.
 

liamgamer55

Colonel
14 Badges
Oct 16, 2011
1.051
2
  • Crusader Kings II
  • Deus Vult
  • Europa Universalis III: Chronicles
  • Europa Universalis IV
  • Hearts of Iron III Collection
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Rome Gold
  • Sword of the Stars
  • Victoria 2: A House Divided
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: Pre-order
Hello guys how would I make it so that muslim's cannot declare holy war on the 3 orthadox tags.

I know this is gonna require editing cb types but the exact syntax I'm not aware of.

So I want it to be: if muslim, cannot declare war on nub, xxx, xxx etc.

It'd be also good if a specific clause disallowing a holy war between the 3 tags and the fatamids was added as well.
 

Lord Finnish

A man of science and culture.
73 Badges
Sep 4, 2006
12.332
1.960
  • Europa Universalis IV: Third Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Europa Universalis III: Chronicles
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Holy Fury Pre-order
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Wealth of Nations
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
With what program to open .gfx files used for portraits?
How to edit the headwear an Emperor/King wears for specific cultures?
 

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • 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
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
.gfx files are text files, open with a text editor. The actual graphics files are .dds or .tga, in the gfx/ hierarchy rather than the interface/ directory.

interface/portraits.txt determines what clothing/headgear/hair/beard a character has.
 

cybrxkhan

Going to Scarborough Fair
57 Badges
Jul 14, 2012
8.157
3.909
  • 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
1- you need a complete line for commenting.
#;;;;;;;;;;;;;;x
you can then put your comment anywhere inside the line.

2 - I don't think you can, it is how the game is desugned to work. you can do it in a non dynamical by forcing a special title to be used for a specific title using the "FOA" thingy (look at papacy entry or mercenaries entries in landed titles.)

Thanks. I figured my text jumbling was because I didn't have all those semicolons and x after the #.

With what program to open .gfx files used for portraits?
How to edit the headwear an Emperor/King wears for specific cultures?

StonetheCrow explains how to create a new portrait set here, pretty well: http://forum.paradoxplaza.com/forum...9-SoH-1.07&p=14533926&viewfull=1#post14533926
 

ShadowGamer42

Captain
94 Badges
May 9, 2012
347
0
  • Cities: Skylines
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III: Chronicles
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Hearts of Iron III
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Death or Dishonor
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - Mass Transit
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Synthetic Dawn
  • Europa Universalis III Complete
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III Complete
  • Stellaris: Humanoids Species Pack
  • Shadowrun Returns
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
Code:
# Arrival of the Hippie Empire
narrative_event = {
	id = 1000114999
	title = "EVTNAME1000114999"
	desc = "EVTDESC1000114999"
	major = yes
	hide_new = yes
	
	picture = "GFX_evt_battle"
	border = "GFX_event_narrative_frame_war"
	
	only_rulers = yes
	
	trigger = {
		year = 1304
		has_landed_title = e_hippie_empire
		NOT = { year = 1318 }
		NOT = { has_global_flag = hippie_here }
	}
	
	mean_time_to_happen = {
		months = 24
	}
	
	option = {
		name = "OK"
		trigger = {
			has_landed_title = e_hippie_empire
		}
		set_global_flag = hippie_here
		142 = { # Thouars
			kingdom = {
				ROOT = {
					war = {
						casus_belli = tribal_invasion
						target = PREVPREV # The top liege of the owner of Balkh
						thirdparty_title = PREV # The de jure kingdom
					}
				}
			}
		}
		wealth = 5000
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 30
			attributes = {
				martial = 12
			}
			trait = brilliant_strategist
		}
		new_character = {
			spawn_unit = {
				province = 142 # Thouars
				troops =
				{
					light_infantry = { 20000 20000 }
					heavy_infantry = { 5000 5000 }
				}
			}
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 40
			attributes = {
				martial = 12
			}
			trait = brilliant_strategist
		}
		new_character = {
			spawn_unit = {
				province = 143 # Saintonge
				troops =
				{
					light_infantry = { 20000 20000 }
					heavy_infantry = { 5000 5000 }
				}
			}
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 40
			attributes = {
				martial = 12
			}
			trait = brilliant_strategist
		}
		new_character = {
			spawn_unit = {
				province = 143 # Saintonge
				troops =
				{
					light_cavalry = { 9999 9999 }
					light_infantry = { 4444 4444 }
				}
			}
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 31
			attributes = {
				martial = 12
			}
			trait = brilliant_strategist
		}
		new_character = {
			spawn_unit = {
				province = 142 # Thouars
				troops =
				{
					light_cavalry = { 9999 9999 }
					light_infantry = { 4444 4444 }
				}
			}
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 36
			attributes = {
				martial = 11
			}
			trait = brilliant_strategist
		}
		new_character = {
			spawn_unit = {
				province = 149 # Bordeaux
				troops =
				{
					light_cavalry = { 9999 9999 }
					light_infantry = { 4444 4444 }
				}
			}
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 36
			attributes = {
				martial = 11
			}
			trait = brilliant_strategist
		}
		new_character = {
			spawn_unit = {
				province = 149 # Bordeaux
				troops =
				{
					light_cavalry = { 9999 9999 }
					light_infantry = { 4444 4444 }
				}
			}
		}
		random = {
			chance = 50
			create_character = {
				random_traits = yes
				dynasty = random
				religion = catholic
				culture = hippie
				female = no
				age = 34
				attributes = {
					martial = 12
				}
				trait = brilliant_strategist
			}
			new_character = {
				spawn_unit = {
					province = 907 # Sabzevar
					troops =
					{
						light_cavalry = { 9999 9999 }
						light_infantry = { 4444 4444 }
					}
				}
			}
		}
		random = {
			chance = 50
			create_character = {
				random_traits = yes
				dynasty = random
				religion = catholic
				culture = hippie
				female = no
				age = 26
				attributes = {
					martial = 12
				}
				trait = brilliant_strategist
			}
			new_character = {
				spawn_unit = {
					province = 100 # Avranches
					troops =
					{
						heavy_infantry = { 7575 7575 }
					}
				}
			}
		}
		
		# Some extra courtiers
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 16
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 18
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 18
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 20
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 25
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 26
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = no
			age = 28
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = yes
			age = 16
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = yes
			age = 17
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = yes
			age = 18
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = yes
			age = 18
		}
		create_character = {
			random_traits = yes
			dynasty = random
			religion = catholic
			culture = hippie
			female = yes
			age = 20
		}
	}
	option = {
		name = "EVTOPTB1000114999"
		trigger = {
			religion_group = muslim
			NOT = { has_landed_title = e_hippie_empire }
		}
	}
	option = {
		name = "EVTOPTC1000114999"
		trigger = {
			religion_group = christian
			NOT = { has_landed_title = e_hippie_empire }
		}
	}
	option = {
		name = "EVTOPTD1000114999"
		trigger = {
			religion_group = pagan_group
			NOT = { has_landed_title = e_hippie_empire }
		}
	}
}
Why is it that when that event fires, the war is declared on the vassal (Count of Thouars) and not the King of France?

Edit: I noticed the '907 # Sabhezar' (Or whatever it's called) oart.
 

Lord Finnish

A man of science and culture.
73 Badges
Sep 4, 2006
12.332
1.960
  • Europa Universalis IV: Third Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Europa Universalis III: Chronicles
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Holy Fury Pre-order
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Wealth of Nations
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
Did you manage to get your horde armies working? I got the CB working by creating a new one for my horde to use but I can't seem to get the armies to spawn even if my event is virtually identical to yours.
 

Lord Finnish

A man of science and culture.
73 Badges
Sep 4, 2006
12.332
1.960
  • Europa Universalis IV: Third Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Europa Universalis IV: Golden Century
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Europa Universalis III: Chronicles
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Mass Transit
  • Cities: Skylines - Natural Disasters
  • Europa Universalis IV: Cossacks
  • Victoria 2
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Holy Fury Pre-order
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Wealth of Nations
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
I got the armies working too - for some reason I had to reduce their size greatly for them to spawn.
As for CB I quickly drafted one that triggers but for now I gain no holdings even if I win :p I took the Holy War CB, changed its name and removed the religious prerequisites for declaring one (and making it available only to my Amazon culture).