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

PyroAce2

First Lieutenant
77 Badges
Oct 2, 2007
280
5
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Crusader Kings II
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • Rome Gold
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Magicka 2 - Signup Campaign
  • Magicka 2
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • East India Company Collection
  • 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
  • Commander: Conquest of the Americas
  • Deus Vult
  • Magicka
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • Europa Universalis IV: Art of War
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • Warlock: Master of the Arcane
I'd like to implement a bit more variety in maiming injuries in my characters for roleplaying purposes. I've created 6 new injuries that would exist side-by-side with the maimed trait. Rather than rewrite every event that triggers a maiming, I tried to write a simple event that looks for a character with the maimed trait that does not already have one of my new injuries and then randomly applies one. This is what I came up with:

Code:
#Scarred
character_event = {
	id = 3200001
	desc = "EVTDESCACE3200001"
	picture = GFX_evt_melee
	
	trigger = {
		trait = maimed
		OR = {
			NOT = { trait = scarred }
			NOT = { trait = one_eye }
			NOT = { trait = one_leg }
			NOT = { trait = one_arm }
			NOT = { trait = neckslit }
			NOT = { trait = burned }
		}
	}
	
	mean_time_to_happen = {
		days = 1

	}
	
	option = {
		name = "EVTOPTAACE3200001"
		
		random_list = {
			50 = {add_trait = scarred }
			11 = {add_trait = one_eye }
			13 = {add_trait = one_leg }
			15 = {add_trait = one_arm }
			10 = {add_trait = neckslit }
			1 = {add_trait = burned }
		}
	}
}

Unfortunately, it doesn't seem to be firing. I have two characters in a save game that are maimed and neither one picks up any of the new traits after a month. Any reason why this would not be working?
 
I assume you already have the traits in the Traits text file?

I don't see a reason why the event wouldn't trigger.

You might want to change the trigger to the easier to type version
Code:
		Not = {
			OR = { 
				trait = scarred 
				trait = one_eye 
				trait = one_leg 
				trait = one_arm 
				trait = neckslit 
				trait = burned 
			}
		}
 
I assume you already have the traits in the Traits text file?

I don't see a reason why the event wouldn't trigger.

You might want to change the trigger to the easier to type version
Code:
		Not = {
			OR = { 
				trait = scarred 
				trait = one_eye 
				trait = one_leg 
				trait = one_arm 
				trait = neckslit 
				trait = burned 
			}
		}

I went ahead and adopted this formatting - the other was allowing the events to fire repeatedly until every maimed character had every single trait. Not what I was going for, I assure you! Haha.

At any rate, it seems to be working now. Thanks for the help both of you!