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

unmerged(32150)

Recruit
Jul 19, 2004
8
0
I tried creating an event that would show a warning when my vassals loyalty drops below 20%, however it causes the game to crash.

Code:
###########################
# Vassal is very disloyal #
###########################

character_event = {
	id = 80000
	
	picture = "event_default"

	trigger = {
		condition = { 
			  type = is_vassal
		}
		condition = {
			type = not
			value = {
			      type = loyalty
			      value = 0.20
			}
		}
		condition = {
			type = liege
			condition = {
				type = not { type = ai }
			}
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	action_a = {}
}

I also put these lines into the extra_text.csv:
Code:
EVT_80000_NAME;Vassal is very disloyal;;;;;;;;;;;X
ACTIONNAME80000A;Damn!;;;;;;;;;;;X

Apologies for a stupid question, but why doesn't it work?
 
I think there must be SOME action :(. Also, evets with only one choice AFAIK have immediate_action instead of action_a...