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

Tilarium

Colonel
116 Badges
Apr 26, 2007
1.112
1.252
  • BATTLETECH: Flashpoint
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Industries
  • Age of Wonders: Planetfall Deluxe edition
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Empire of Sin
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Prison Architect: Psych Ward
  • Age of Wonders: Planetfall - Revelations
  • BATTLETECH: Heavy Metal
  • Stellaris: Lithoids
  • Age of Wonders: Planetfall Sign Up
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Premium edition
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Crusader Kings II: Holy Fury
After a few days working them, I'm ready to add in a few traits. Putting the trait into the game looks pretty easy, what I'm asking is how do I add it in so a character actually gets the trait. Two of the ones that'll be getting added in are proven command and divorced. I want someone to have a chance getting it when they lead a winning battle. Divorced is obviously going to every character that gets a divorce, but is also removed when they re-marry.
 
you have to do that by events, adding them in the on_actions.txt file (and for the divorce look at events number 234 y 235)

Code:
on_battle_won = {
	random_events = {
		1000 = 0
		10 = 260 # Heroism shown
		10 = 261 # Soldier Distinguish himself.
		100 = 8310 # Crusader becomes zealous
	}
}

and
Code:
on_marriage = {
	events = {
 		500 # Royal Marriage Aid Duty
 	}
}
 
Write the event for adding the traits, then put the Commander one in "events\on_action_events.txt" at the appropriate combat pulse locations, and the other in the appropriate Divorce Event (under events\Married_life.txt)