Decision modding

From Europa Universalis 4 Wiki
Revision as of 00:28, 16 June 2014 by (talk) (Breaking it Down)
Jump to navigation Jump to search

Decisions are a set of choices a nation can make if certain conditions are met. Each decision has consequences, which can be both positive and negative. A nation never has to take a decision it is always at the players discretion whether to accept a decision or not.

Creating the Decision

Making the file

First, create a new .txt file which can be named whatever you want. (MyDecision.txt) This file should be in a new folder in the mod directory. /Sourcemodfolder/decisions/.

Breaking it Down

This is an overview of the file.

country_decisions = { #this line lets the game know that this file is indeed a decision file
	example_decision = { #this line is the name of your decision. it doesn't show up in game, though. localisation is used.
major = yes #this variable says whether or not this decision is major (green box instead of blue) potential = { #this line determines whether or not a certain country can see the decision. NOT = { exists = GBR } #here, we see that no one can get the decision if Great Britain exists. OR = { # OR separates the prerequisites culture_group = british #this means that to see the decision you need to be in the British culture group } OR = { ai = no #not sure what this section does but it tends to make the decision work! AND = { #AND adds different factors together. not really sure why you would need it. ai = yes num_of_cities = 3 } } is_colonial_nation = no #lesser colonial nations can't take part. OR = { is_former_colonial_nation = no #you can't even have BEEN a colonial nation. how sad. AND = { is_former_colonial_nation = yes #UNLESS you're a human player ai = no } } } allow = { #these are the prerequisites to make the decision. I used the form Great Britain decision as example. adm_tech = 10 #you need admin 10 is_subject = no #you aren't a vassal or lesser partner in a PU is_at_war = no #you aren't at war owns = 236 # London #you own these provinces owns = 237 # Oxfordshire owns = 234 # Wessex owns = 248 # Lothian owns = 251 # Aberdeen is_core = 236 # London # these provinces are cores. is_core = 237 # Oxfordshir #also note that owns_core_province can be used as it combines is_core and owns is_core = 234 # Wessex is_core = 248 # Lothian is_core = 251 # Aberdeen } effect = { change_tag = GBR #changes your country to this tag british_isles = { #this area has to do with the British Isles region limit = { #only happens if this is met NOT = { owned_by = ROOT } #you don't own it all } add_claim = GBR #you get it all as a claim! } add_prestige = 25 #new effect of the decision. adds 25 prestige GBR = { #your shiny new country set_capital = 236 #makes your capital in London (province 236) } add_country_modifier = { #adds a national modifier name = "centralization_modifier" #the modifier duration = 7300 #Length of modifier in days } } ai_will_do = { factor = 1 #Determines whether or not the AI will attempt the decision. 1 says they will, 0 says they won't. } ai_importance = 400 #Determines how important completing the decision is to the AI if they're allowed to do so. Higher number = higher priority } }


Make a localisation file! Add this! Make sure you remember that example_decision is the title you used in the decision.txt file. Make sure you add the _title and _desc at the end!


example_decision_title: "Whatever you want the tile to be in game"
example_decision_desc: "the lengthier description"