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

RickRoll

Recruit
44 Badges
Nov 17, 2013
3
0
  • Crusader Kings II
  • Tyranny: Archon Edition
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Pillars of Eternity
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Age of Wonders III
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Teleglitch: Die More Edition
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • BATTLETECH: Flashpoint
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • 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: Call to arms event
  • Hearts of Iron III
  • Magicka
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Res Publica
  • The Showdown Effect
Trying to learn modding by creating a small event chain where you get a pet rat (much like the pet dog, cat etc...)

I can simply add a "Pet_rat" modifier into the 00_event_modiers.txt and then call the modifier when the correct option is chosen during an event but I can't help but feel like this is the unintended method.

Is there a better way to create/add your own modifiers when making a mod without messing around with the files within /common?

Thanks in advance, sorry if I posted this in the wrong forum, and I couldn't find the answer to my question anywhere else.
 

RickRoll

Recruit
44 Badges
Nov 17, 2013
3
0
  • Crusader Kings II
  • Tyranny: Archon Edition
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Pillars of Eternity
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Age of Wonders III
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Teleglitch: Die More Edition
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • BATTLETECH: Flashpoint
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • 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: Call to arms event
  • Hearts of Iron III
  • Magicka
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Res Publica
  • The Showdown Effect
Add a new file to the folder in your mod with a unique name, though there is already a pet rat modifier in the base game, people can get it while in prison.

Thanks for your reply. Also I had no idea, guess i'll try a pet mouse instead.

However, i'm still struggling to get a custom modifier, I currently have three files in my mod folder (for the current mod im making), event_modifiers, events, and localisation.

When you say "add a new file to the folder in your mod with a unique name" what exactly do you mean? Add the file to one of the three folders I currently have?

Also, how do I then call this modifier to be added when an event occurs?

Sorry for all the questions, I have tried looking at a few tutorials already. In the stream the devs used a pre-made character modifier which doesn't really show me how to add my own modifiers without editing the /common files.

I guess I can have a look at how some other mods do it in the mean time.
 

HandicapdHippo

General
63 Badges
Jul 26, 2012
1.935
1.283
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings III
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Megacorp
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Distant Stars
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Ancient Relics
  • Prison Architect
  • Stellaris: Nemesis
  • Europa Universalis IV
  • Imperator: Rome Sign Up
  • Crusader Kings II: Holy Fury
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Europa Universalis III Complete
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Crusader Kings III: Royal Edition
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
However, i'm still struggling to get a custom modifier, I currently have three files in my mod folder (for the current mod im making),
,event_modifiers events, and localisation.
Event modifiers isn't a folder in the root directory, your mod file structure needs to match the base game.

When you say "add a new file to the folder in your mod with a unique name" what exactly do you mean? Add the file to one of the three folders I currently have?

Create a folder called common, create a folder in that called event_modifiers, add a blank txt file in there and give it a unique name that isn't used in vanilla or likely to be used by any mods you run e.g. rickroll_mod.txt then add your event modifier to that file. Again for good practise give thr modfier a fairly unique name.

Also, how do I then call this modifier to be added when an event occurs?
Example from the wiki just change the name to yours, if you want it to last forever use a duration of -1
add_character_modifier = { name = mod_bloodlust duration = 180 }
 

RickRoll

Recruit
44 Badges
Nov 17, 2013
3
0
  • Crusader Kings II
  • Tyranny: Archon Edition
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Pillars of Eternity
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Age of Wonders III
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Shadowrun Returns
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Teleglitch: Die More Edition
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • BATTLETECH: Flashpoint
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • 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: Call to arms event
  • Hearts of Iron III
  • Magicka
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Res Publica
  • The Showdown Effect
Event modifiers isn't a folder in the root directory, your mod file structure needs to match the base game.



Create a folder called common, create a folder in that called event_modifiers, add a blank txt file in there and give it a unique name that isn't used in vanilla or likely to be used by any mods you run e.g. rickroll_mod.txt then add your event modifier to that file. Again for good practise give thr modfier a fairly unique name.


Example from the wiki just change the name to yours, if you want it to last forever use a duration of -1
add_character_modifier = { name = mod_bloodlust duration = 180 }


Thank you so much, works perfectly, and I learnt a great deal in the process.