• 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.
Jul 10, 2011
5
0
I added:
Code:
cheater = {
	opinion_of = 5
	opinion = { cheater = 5 }
	attributes = { martial = 10 stewardship = 10 diplomacy = 10 intrigue = 10 fertility = 10 health = 10 }
}
to db/traits.txt,
Code:
character_event = { #Are you a cheater?
	id = 8922
	picture = "event_intrigue"
	trigger = {
		condition = { type = age value = 16 }
	}
	mean_time_to_happen = { months = 12000 }
	action_a = { #I'm a cheater
		ai_chance = 0
		effect = { type = add_trait value = cheater }
	}
	action_b = { #I would never!
		ai_chance = 100
	}
}
to db/events/trait_events.txt,
Code:
TRAIT_NAME_CHEATER;Cheater;Cheater;Cheater;Cheater;Cheater;;;;;;X
TRAIT_DESC_CHEATER;This character channels power directly from the player.;This character channels power directly from the player.;This character channels power directly from the player.;This character channels power directly from the player.;This character channels power directly from the player.;;;;;;X
to config/trait_names.csv, and
Code:
EVT_8922_NAME;Are you a cheater?;Are you a cheater?;Are you a cheater?;Are you a cheater?;Are you a cheater?;;;;;;;;;X
ACTIONNAME8922A;I'm a cheater.;I'm a cheater.;I'm a cheater.;I'm a cheater.;I'm a cheater.;;;;;;;;;X
ACTIONNAME8922B;I would never!;I would never!;I would never!;I would never!;I would never!;;;;;;;;;X
to extra_text.csv.

But... it doesn't work. I have no clue why. When I try to get into the game now, it tells me about an lhs error in province effects...
 
Exact Error

Code:
--- Error: (unknown lhs in provinceimprovement file) 'cheater = {' Line = 2942 file = db/traits.txt ---

I don't believe I'm missing a closing bracket...

I uninstalled/reinstalled and remodded exactly as stated previously.
 
Coupling your reply with this, I found a way to get it to work.

I set config/trait_names back to normal and edited config/deus_vault.csv to include cheater instead of user_defined_a. I also made the icon for the new trait a black box.

Here's hoping it works with the retitled trait. If not, I'll do what you suggested about localizing the name.