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

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Thank you!


An other question:
Is there an easy way to check a variable which I set or changed (change_variable)? Can I see ingame if my event has change a character variable?
Do you mean check as in use it as a condition or check as in display it as text?
For the former use the check_variable = { which = "x" value = x } command and its variations.
For the latter use a localisation string like [Root.variable_name.GetName] and [Root.variable_name.GetValue] to get the name of the variable and its value, the name must be localised as well to be:
variable_name;My Variable Name;;;;;;;;;;;;;x
 

Caldar

Sergeant
41 Badges
Aug 14, 2009
86
31
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Age of Wonders III
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Synthetic Dawn
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Age of Wonders: Planetfall
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
  • Europa Universalis IV
  • Cities: Skylines
Do you mean check as in use it as a condition or check as in display it as text?
For the former use the check_variable = { which = "x" value = x } command and its variations.
For the latter use a localisation string like [Root.variable_name.GetName] and [Root.variable_name.GetValue] to get the name of the variable and its value, the name must be localised as well to be:
variable_name;My Variable Name;;;;;;;;;;;;;x

Thank, i have a following question:

What if i want to display the variable of a specific character? I made event_target:duelist_1 and event_target:duelist_2, what should i use if i want to show the variable_name of duelist_1, something like: [event_target:duelist_1.variable_name.GetValue] ??
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Thank, i have a following question:

What if i want to display the variable of a specific character? I made event_target:duelist_1 and event_target:duelist_2, what should i use if i want to show the variable_name of duelist_1, something like: [event_target:duelist_1.variable_name.GetValue] ??
Just [duelist_1.variable_name.GetValue] is needed
 
  • 1
Reactions:

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
A short question: does any_spouse scope to concubines?

I'd guess not, because there is the scope any_consort for that.

Is it possible to add a modifier (or event), that the AI joins a crusade after 1300 is more unlikely?

Maybe via an event (trigger any_war = { using_cb = crusade}), using join_attacker_wars effect to force some AI rulers to join the war.
 

Romulien

Lt. General
19 Badges
Jul 2, 2013
1.404
308
  • Crusader Kings II
  • Major Wiki Contributor
My MOD for some reason stops "Take Concubine" from working. What might cause this as I have only altered history, dynasty & province files?

Diplomatic actions that stop working are a strange side effect of errors somewhere else in the mod, likely related to titles.
I'd recommend fixing the most serious mod errors with the help of the validator, for instance invalid baronies in some province history, errors in landed_titles etc.
We had a similar issue in WtWSMS and I believe SWMH did too at some point.
 

tsf4

General
56 Badges
May 31, 2012
2.322
724
30
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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 III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Age of Wonders: Planetfall
  • PDXCon 2017 Awards Winner
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • 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
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
What would be causing my mod to not have threat/infamy? A clue is that whenever I start as anyone the "you are threatening" icon is up. Also, validator keeps saying a title is invalid, yet I have checked it over and over. In this case its for a few baronies that function as the faith's holdings.
 

Damarrocarion

Field Marshal
1 Badges
Mar 29, 2013
3.040
634
  • Crusader Kings II
Diplomatic actions that stop working are a strange side effect of errors somewhere else in the mod, likely related to titles.
I'd recommend fixing the most serious mod errors with the help of the validator, for instance invalid baronies in some province history, errors in landed_titles etc.
We had a similar issue in WtWSMS and I believe SWMH did too at some point.

Thanks. I will finish the current realm I am working on and then look for this problem.
 

ethiopianvampire

Second Lieutenant
40 Badges
Jan 12, 2016
102
10
  • Crusader Kings II: Charlemagne
  • Knights of Pen and Paper 2
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • 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
  • Stellaris: Necroids
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Stellaris - Path to Destruction bundle
  • Knights of Pen and Paper +1 Edition
I'm doing some .gui modding. I'd like to understand their structure better, as they seem to be less intuitive than other parts of modding this game.
Specifically, what I'm trying to do is to re-draw the College of Cardinals screen. (Already edited to make it work with my religion).
What I'd like some incite on is:
A) If I want to put my character's portrait, at a given x/y position, on a redrawn College of Cardinals screen, how would I go about doing this? How would I create a localisation to place near it?
I) What are valid "name =" s?, how do they work, and where can I find a list of names that the game recognizes?
B) I'm going to change the flavor of the whole interface if I can figure it out, so any general information would be helpful as the interface wiki doesn't adequately cover it. Opening Paint and redrawing/ recoloring the windows is easy enough, but getting them to display and click properly is going to be a challenge if I don't understand how the process works.

EX:
Code:
guiButtonType =    {
            name ="button_portrait" # Does anyone have a good, working list of these and what they do? 
            quadTextureSprite= "GFX_char_50"
            position = { x= 11 y = 7 } # Pretty self- explanatory, but suggestions for taking the guess work out of it would certainly be appreciated
            Orientation = "UPPER_LEFT" # No idea what this is
            pdx_tooltip = "CHARACTER_TOOLTIP" # Information about the character when you hover your mouse over their portrait?
            pdx_tooltip_delayed = "CHARACTER_TOOLTIP_DELAYED"
EX2:
Code:
guiButtonType =    {
                name ="character_portrait" # Looks promising for character's portrait, but since I don't know the names, I don't know which "character" will be displayed or how to define that
                quadTextureSprite # What's a "quad" TextureSprite? = "GFX_char_150" # referencing one of the single character frames in the gfx folder. I'd wondered what they were for. 
                position = { x= 76 y = 7 }
                Orientation = "UPPER_LEFT"
                pdx_tooltip = "CHARACTER_TOOLTIP"
                pdx_tooltip_delayed = "CHARACTER_TOOLTIP_DELAYED"
            }
So, what I'm really asking for here is any/ all information on interface commands/general information that anyone is willing to give. There is a list of commands for scripting events/decisions/traits/governments/religions/etc. that's pretty easy to come by, but finding out what's going on with these .gui files seems to be a little bit more difficult.
Thanks for any information.
 

kviiri

Field Marshal
37 Badges
Jun 22, 2015
3.345
8.260
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normandy 44
  • Stellaris: Synthetic Dawn
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Crusader Kings III
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Wealth of Nations
  • 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 II: Charlemagne
I'm working on some minor modifications as a submod to CK2+. If I want to change some particular events and decisions (not just add new ones), how should I go about doing this? Is just defining the event again in a submod fine?
 

ethiopianvampire

Second Lieutenant
40 Badges
Jan 12, 2016
102
10
  • Crusader Kings II: Charlemagne
  • Knights of Pen and Paper 2
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • 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
  • Stellaris: Necroids
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Stellaris - Path to Destruction bundle
  • Knights of Pen and Paper +1 Edition
How do I edit .dds files without losing their transparency? I downloaded the NVIDIA dds plugin and installed it on photoshop...
http://forums.tripwireinteractive.com/showthread.php?t=33153 seems to address your problem. Looks like you need to "flatten" the image. When I have a multi- layer image in Paint.Net, it tells me something like... "this image format doesn't support multiple layers. Would you like to flatten?" If photoshop isn't doing that for you then maybe you need to "flatten" the image manually.
flatten = Seems to be just merging the layers together. I can't see any difference.

I'm far from an expert, but hope this helps.
 

ethiopianvampire

Second Lieutenant
40 Badges
Jan 12, 2016
102
10
  • Crusader Kings II: Charlemagne
  • Knights of Pen and Paper 2
  • Crusader Kings II
  • Europa Universalis IV: Art of War
  • 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
  • Stellaris: Necroids
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Synthetic Dawn
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Stellaris - Path to Destruction bundle
  • Knights of Pen and Paper +1 Edition
to be a little more clear about what I'd like to know....
Picture 1.jpg
Picture 2.jpg
Picture 3.jpg
picture 4.jpg
 

Zarathustra_the

Lt. General
85 Badges
Nov 3, 2011
1.645
985
  • Victoria 2: A House Divided
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • King Arthur II
  • The Kings Crusade
  • Magicka
  • Cities in Motion
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Naval War: Arctic Circle
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • For the Motherland
  • 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 III
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris
  • Warlock: Master of the Arcane
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
@Divine is there anyway to directly call a combat tactic from an event? For instance, I want a morale boost combat pulse event, that when it triggers forces the army lead by the character to go into a specific courageous advance tactic.
 

Divine

Tech Lead
Paradox Staff
33 Badges
Dec 26, 2005
584
1.046
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
@Divine is there anyway to directly call a combat tactic from an event? For instance, I want a morale boost combat pulse event, that when it triggers forces the army lead by the character to go into a specific courageous advance tactic.
No such effect exists at the moment, made a note on my todo list about it. I did have a quick check on the combat modifiers for character modifiers also. My primary concern is the performance concern by having to check for more things when we update the modifiers so I can't really promise anything.
 
  • 1
Reactions: