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

apg

Field Marshal
67 Badges
May 28, 2011
2.679
269
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • 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
  • 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
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV Sign-up
  • Imperator: Rome
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
If you don't want the effects to appear in the tooltip.

For example, let's say you have an event option that gives 100 gold, but has a 25% chance of making a character greedy, but you don't want the player to know exactly what the chance of getting the trait is. You can hide the chance of gaining the trait inside a hidden_tooltip.

oh thats sounds pretty good, thanks.... and one more lol...... what is the point of is_triggered_only ?

EDIT: ALSO.... whilst im here.... is there a way to ensure that a province flag is removed after a certain time, or is the only way to remove it using another event which clears it?
 

Jaol

Kapudan Pasha
56 Badges
Jan 24, 2011
3.755
313
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Pre-order
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • For the Motherland
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: First Colony Edition
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Victoria 2 Beta
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
oh thats sounds pretty good, thanks.... and one more lol...... what is the point of is_triggered_only ?

EDIT: ALSO.... whilst im here.... is there a way to ensure that a province flag is removed after a certain time, or is the only way to remove it using another event which clears it?
is_triggered_only is for events that are triggered by something else, instead of firing randomly. For example, one event can trigger another event as an effect. If you don't want that second event ever firing on its own, you make it is_triggered_only.

No, flags are always permanently set. If you want something to be temporary, use a modifier instead. By putting hidden = yes inside the modifier you can make it invisible so it basically works the same as a flag.
 

apg

Field Marshal
67 Badges
May 28, 2011
2.679
269
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • 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
  • 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
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV Sign-up
  • Imperator: Rome
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
is_triggered_only is for events that are triggered by something else, instead of firing randomly. For example, one event can trigger another event as an effect. If you don't want that second event ever firing on its own, you make it is_triggered_only.

No, flags are always permanently set. If you want something to be temporary, use a modifier instead. By putting hidden = yes inside the modifier you can make it invisible so it basically works the same as a flag.

you sir have been a great help! thankyou
 

chatnoir17

CK2 NMIH Project Lead
98 Badges
Sep 17, 2009
5.043
193
  • Cities: Skylines
  • Divine Wind
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Stellaris - Path to Destruction bundle
  • Diplomacy
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Nemesis
  • Age of Wonders III
  • BATTLETECH
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
No, flags are always permanently set. If you want something to be temporary, use a modifier instead. By putting hidden = yes inside the modifier you can make it invisible so it basically works the same as a flag.

You can also create an event to remove a flag after certain period, since the game checks the duration of flags.
 

The_Blind_One

Colonel
8 Badges
Feb 10, 2006
924
387
  • Crusader Kings II
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis III Complete
  • Semper Fi
  • 500k Club
Created a custom map but can't start the game with a ruler. Not selectable on map but does shows up in tooltip fine and in bookmark. Even shows proper counties, dukes and kingdoms but are unselectable. Can select from bookmark and see stats and what not of character but am unable to start the game. Reason? and how to fix?

Altered ''history'''s provinces and titles + ''common'' landed titles, ''map'' positions, adjacencies, definition... to get this to work by following the guide on how to create your own counties but cant get it to work :/
 

tonkatoy5

LLC
83 Badges
Sep 25, 2011
367
18
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Magicka 2
  • Pillars of Eternity
  • Warlock 2: The Exiled
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Horse Lords
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Europa Universalis III Complete
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • Warlock: Master of the Arcane
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Stellaris: Nemesis
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
Don't know if this has already been talked about but how do you create new traits, please post detailed answer or show me were one is located, I have mod experience and am afraid to just go into the trait folder and make one
 

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 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
  • Crusader Kings II: Charlemagne
Don't know if this has already been talked about but how do you create new traits, please post detailed answer or show me were one is located, I have mod experience and am afraid to just go into the trait folder and make one

(1) Add a new trait to the end of /common/traits/00_traits.txt; (2) create a new icon for your trait; and (3) add a new trait entry to /interface/traits.gfx. If you don't do the last bit, your trait will have its effects but no icon. In 00_traits.txt you can add certain conditions like birth = yes if you want a child born with it.
 

tonkatoy5

LLC
83 Badges
Sep 25, 2011
367
18
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Magicka 2
  • Pillars of Eternity
  • Warlock 2: The Exiled
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Divine Wind
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Horse Lords
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris
  • Europa Universalis III Complete
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Europa Universalis III Complete
  • Europa Universalis IV: Common Sense
  • Victoria 2
  • Warlock: Master of the Arcane
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Stellaris: Nemesis
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
(1) Add a new trait to the end of /common/traits/00_traits.txt; (2) create a new icon for your trait; and (3) add a new trait entry to /interface/traits.gfx. If you don't do the last bit, your trait will have its effects but no icon. In 00_traits.txt you can add certain conditions like birth = yes if you want a child born with it.

Thanks but how do you suggest I creat the new trait icon, is it same way that you do portraits and coas or is it separate. Btw what program do u suggest I use to create the trait icon, would gimp work or is there a better one
 

James009

First Lieutenant
85 Badges
Jan 21, 2012
244
57
  • Pillars of Eternity
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Stellaris: Nemesis
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Jade Dragon
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Federations
  • Crusader Kings III
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Campus
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Sign Up
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Apocalypse
  • Cities: Skylines - After Dark
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • 500k Club
  • Prison Architect: Psych Ward
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
Quick question, where is the portrait aging settings located at?

For example, Young = like 20, middle = 30, old = 60... that sort of thing. Basically, I want the visible aging to be a little slower, as a matter of preference.
 

RedRooster81

Modding Paladin
34 Badges
Feb 16, 2010
5.673
29
  • Crusader Kings II
  • Rome Gold
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities in Motion
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Golden Century
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 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
  • Crusader Kings II: Charlemagne
Thanks but how do you suggest I creat the new trait icon, is it same way that you do portraits and coas or is it separate. Btw what program do u suggest I use to create the trait icon, would gimp work or is there a better one

I prefer Paint.NET. It starts up faster than GIMP and I haven't had any problems.

First, look in the /gfx/traits folder. Open a few of the trait files and look at them. Like other things modding is about copying what the devs have given us with a personal twist.

Second, find a picture that would look good for a trait. Remember that it will appear rather tiny on screen. You can create your own, drawing freehand, or use any image on Wikipedia, even a photograph.

Next, open Paint.NET, and drag your chosen image from your web browser on top of the new image that appears at startup. No need to save the image but you can beforehand. When prompted, paste as a new layer. You will have to resize the image to 24 by 24.

Now, save the file as a .dds file to <your mod>/gfx/traits. It should appear at the top-right of the screen in Paint.NET as a tiny file. Open a vanilla trait image and compare the two for size and eye appeal.

If you altered the required text files, you are almost ready to go. If you have character history files in your mod already great. Just assign your new trait to a preexisting character. If not, create a /history/characters/ folder and copy and paste a character file from vanilla CK.

Now load your mod and if you did everything right that character should have your new trait.

Ah, yes, and don't forget to add a localization file for the trait's name and its description. Let's say that your new trait is 'horseman.' You have a new file called /gfx/traits/horseman.dds and have added the trait to the appropriate txt files. Now create a new localization file or add to a preexisting one a description
Code:
horseman;Horseman;. . . . . 
horseman_desc;This character is recognized by his fellows as an accomplished horseman. This valuable characteristic brings fame to his dynasty./. . .

That should do it.
 

Rotten

Second Lieutenant
25 Badges
Jul 30, 2005
118
0
  • Europa Universalis IV
  • Crusader Kings III
  • Crusader Kings Complete
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • 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
Anyone who can help me with adding an Empire? I've added the Empire of Spain, and all the de jure provinces are working just fine (I've added several kingdoms already, so that part wasn't hard). I am however unaware on how to actually create the Empire in-game. What do I do to create the Empire? This is the opening part of the empire of spain in landed_titles, I copied the "holder scope" thing from som other mod, and assumed it is needed to somehow create the Empire.

Code:
e_spain = { #Spain
	color={ 243 209 23 }
	color2={ 200 80 10 }
	
	capital = 199 # Burgos
	religion = catholic
	culture = castillan
	allow = {
		e_spain = {
			holder_scope = {
				age = 0
			} 
		}
		OR = {
			religion_group = christian
			culture_group = iberian
			}
		}
 

apg

Field Marshal
67 Badges
May 28, 2011
2.679
269
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • 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
  • 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
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV Sign-up
  • Imperator: Rome
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
can someone explain to me the frequency of events happening due to on_actions, i.e. in the 'on_yearly_pulse' section what does 5000 = 0 mean and then in 'on_bi_yearly_pulse' it'll have 2000 = 0. Im finding it hard to understand, thanks
 

avee

Major
42 Badges
Aug 13, 2009
544
1
  • Hearts of Iron III: Their Finest Hour
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Cities in Motion
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Hearts of Iron III Collection
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Hearts of Iron: The Card Game
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Stellaris: Synthetic Dawn
  • Cities: Skylines
can someone explain to me the frequency of events happening due to on_actions, i.e. in the 'on_yearly_pulse' section what does 5000 = 0 mean and then in 'on_bi_yearly_pulse' it'll have 2000 = 0. Im finding it hard to understand, thanks
I believe, on_yearly_pulse fires one event approximately once a year for each character. It chooses 1 event from list in on_actions.txt. Each event has a certain "weight" is assigned. Syntax is the following:
weight = event_id
0 event_id means no event at all.
When system decides which event will fire, it chooses one event based on it`s weight. Probability of each event is weight/sum_of_all_weights.
For example, if your code looks like this
Code:
on_yearly_pulse = {
	100 = 1
	200 = 2
	5000 = 0
}
probability of event 1 is 100/5300 = 1/53
probability of event 2 is 200/5300 = 2/53
probability of nothing happening is 5000/5300 = 50/53

By the way, triggered_only events can have trigger conditions and will not fire if these conditions are not met. Though I dont know if conditions are checked before or after the event is chosen from list.
 

apg

Field Marshal
67 Badges
May 28, 2011
2.679
269
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • 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
  • 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
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV Sign-up
  • Imperator: Rome
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
I believe, on_yearly_pulse fires one event approximately once a year for each character. It chooses 1 event from list in on_actions.txt. Each event has a certain "weight" is assigned. Syntax is the following:
weight = event_id
0 event_id means no event at all.
When system decides which event will fire, it chooses one event based on it`s weight. Probability of each event is weight/sum_of_all_weights.
For example, if your code looks like this
Code:
on_yearly_pulse = {
	100 = 1
	200 = 2
	5000 = 0
}
probability of event 1 is 100/5300 = 1/53
probability of event 2 is 200/5300 = 2/53
probability of nothing happening is 5000/5300 = 50/53

By the way, triggered_only events can have trigger conditions and will not fire if these conditions are not met. Though I dont know if conditions are checked before or after the event is chosen from list.

thanks for that, so the higher the number upto 5000 then the more likely the event is to occur? due to the greater weight.
 
Last edited:

avee

Major
42 Badges
Aug 13, 2009
544
1
  • Hearts of Iron III: Their Finest Hour
  • Stellaris
  • Stellaris - Path to Destruction bundle
  • Cities in Motion
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Hearts of Iron III Collection
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Hearts of Iron: The Card Game
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Stellaris: Synthetic Dawn
  • Cities: Skylines
thanks for that, so the higher the number upto 5000 then the more likely the event is to occur?
Yes, the higher the weight, the more likely event is to fire. Again, main rule is probability = weight/sum_of_all_weights.
You can change 5000 to whatever you want. You can even remove xxx = 0 part completely - and every pulse will fire some event.
 

Kailvin

Captain
102 Badges
Oct 18, 2010
454
1
  • Sword of the Stars
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2
  • March of the Eagles
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Hearts of Iron II: Armageddon
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Cities: Skylines - Snowfall
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Cities in Motion 2
  • 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
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • For the Motherland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Deus Vult
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron IV: No Step Back
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis III Complete
  • War of the Roses
  • Europa Universalis IV
Anyone who can help me with adding an Empire? I've added the Empire of Spain, and all the de jure provinces are working just fine (I've added several kingdoms already, so that part wasn't hard). I am however unaware on how to actually create the Empire in-game. What do I do to create the Empire? This is the opening part of the empire of spain in landed_titles, I copied the "holder scope" thing from som other mod, and assumed it is needed to somehow create the Empire.

Code:
e_spain = { #Spain
	color={ 243 209 23 }
	color2={ 200 80 10 }
	
	capital = 199 # Burgos
        
	allow = {
		OR = {
			religion_group = christian
			culture_group = iberian
			}
	}
There you go. All fixxed up. What you copied i believe was from the rise of empires mod. The holder scope there is related to the fact that when the empire is created via decision. Its not actually given to the ruler. It creates a new character and gives it to that so it can apply certain things (Like crown laws) It is not needed.
 

Rotten

Second Lieutenant
25 Badges
Jul 30, 2005
118
0
  • Europa Universalis IV
  • Crusader Kings III
  • Crusader Kings Complete
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • 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
Code:
e_spain = { #Spain
	color={ 243 209 23 }
	color2={ 200 80 10 }
	
	capital = 199 # Burgos
        
	allow = {
		OR = {
			religion_group = christian
			culture_group = iberian
			}
	}
There you go. All fixxed up. What you copied i believe was from the rise of empires mod. The holder scope there is related to the fact that when the empire is created via decision. Its not actually given to the ruler. It creates a new character and gives it to that so it can apply certain things (Like crown laws) It is not needed.

Many thanks. But how will I be able to create it in-game then? Does a thingy pop down at the top (like when you're able to create duchies/kingdoms)? And are the conditions (50% provinces) the same?