Decision modding

From Victoria 3 Wiki
Jump to navigation Jump to search

Custom mod decisions should be located in: MODNAME_ROOTFOLDER\common\decisions\MODNAME_decisions.txt

#Internal reference name of the decision
example_decision = {

	#The requirements/to which countries the decision is shown
	is_shown = {
		this = c:ABC
		
		#An auxiliary variable is usually used to make sure the decision is not repeated more than once
		NOT = { has_variable = example_decision_taken }
	}

	#The requirements for the decision to be taken
	possible = {
		example_trigger = {}
	}
	
	#The effects that are executed once the decision is taken
	when_taken = {
		trigger_event = {
			id = example_events.1
			popup = yes
		}
		
		#The auxiliary variable referenced in the is_shown trigger/section
		set_variable = {
			name = example_decision_taken
		} 	
	}	
	
	#The chance that the ai will take the decision
	ai_chance = {
		base = 100 	
	}
}