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

CaBhaal

Bane Inc.
108 Badges
Feb 9, 2003
172
0
Visit site
  • Rome: Vae Victis
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Majesty 2
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Warlock 2: Wrath of the Nagas
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Stellaris: Necroids
  • Divine Wind
  • Cities in Motion
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • King Arthur II
  • The Kings Crusade
Our nobles would accept the naturalization of the bastard;Broken Effect

Was looking at making an event to "legitimize" a bastard if he met certain conditions. Looking through the event files (claims_events.txt) I found one already existed! Though I had never seen it fire for me (I hardly ever grant titles to my bastards) it seemed that there were many bastards around from guys who never had a wife and none of them were legitimate.

Playing with the event in the console showed me that the event had only 1 effect, which was to grant 50 prestige for naturalizing. But that was not right...so I looked at the event file again.

Code:
character_event = {
	id = 1200
	picture = "event_claim"
	
	trigger = { 
		condition = { type = age value = 20 }
		condition = { type = gender value = male }
		condition = { type = trait value = bastard }
		condition = { type = is_vassal }
	}

	mean_time_to_happen = {
		months = 300

	}

	action_a = {#Naturalize the him!
		ai_chance = 50
		effect = { type = remove_trait value = bastard }
		effect = { type = prestige value = -100 }
	}
	action_a = {#No never!
		ai_chance = 50
		effect = { type = prestige value = 50 }
	}
}
Notice the two effects, both are "action_a". I changed the second to "action_b" and confirmed the event will work correctly using the console.

~CaBhaal
 
Last edited:
Upvote 0
Fixed in 1.03