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

kyeaxford

First Lieutenant
87 Badges
Apr 12, 2012
211
119
  • Crusader Kings II
  • Darkest Hour
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Rule Britannia
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Holy Fury
  • BATTLETECH: Flashpoint
  • Surviving Mars: First Colony Edition
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH - Digital Deluxe Edition
  • Prison Architect
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Hearts of Iron IV: Death or Dishonor
  • BATTLETECH
  • Stellaris: Federations
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Battle for Bosporus
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Surviving Mars
  • Hearts of Iron IV: La Resistance
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • BATTLETECH: Season pass
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
So I need help creating a event that can only be fired by console commands and adds several traits to my current character can anyone tell me how to do this and if possible provide a template text file.
 
If you are new to modding, best to follow this first: https://ck2.paradoxwikis.com/Creating_a_mod

namespace = kyeaford
character_event = {
id = kyeaford.1 #Namespace.x
hide_window = yes #Doesn't show the event window
ai = no #Not triggered by AI
is_triggered_only = yes #Only triggered by command or on_action/other event if you want
immediate = { #Will do the following immediately
add_trait = TRAIT #Adds a trait
add_trait = TRAIT
add_trait = TRAIT
add_trait = TRAIT
}
}

Change TRAIT to the traits you want. Open command console in game and type: event kyeaford.1
The event will not show as hide_window is yes. If you want to have a window show up then use the code below. This will simply show a box with OK as a option to press.

namespace = kyeaford
character_event = {
id = kyeaford.1
ai = no
is_triggered_only = yes
immediate = {
add_trait = TRAIT
add_trait = TRAIT
add_trait = TRAIT
add_trait = TRAIT
}
option = {
name = OK
}
}
 
If you are new to modding, best to follow this first: https://ck2.paradoxwikis.com/Creating_a_mod

namespace = kyeaford
character_event = {
id = kyeaford.1 #Namespace.x
hide_window = yes #Doesn't show the event window
ai = no #Not triggered by AI
is_triggered_only = yes #Only triggered by command or on_action/other event if you want
immediate = { #Will do the following immediately
add_trait = TRAIT #Adds a trait
add_trait = TRAIT
add_trait = TRAIT
add_trait = TRAIT
}
}

Change TRAIT to the traits you want. Open command console in game and type: event kyeaford.1
The event will not show as hide_window is yes. If you want to have a window show up then use the code below. This will simply show a box with OK as a option to press.

namespace = kyeaford
character_event = {
id = kyeaford.1
ai = no
is_triggered_only = yes
immediate = {
add_trait = TRAIT
add_trait = TRAIT
add_trait = TRAIT
add_trait = TRAIT
}
option = {
name = OK
}
}
This is exactly what I needed thank you very much :)