• 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(84392)

Corporal
5 Badges
Sep 22, 2007
30
0
  • Europa Universalis III
  • Hearts of Iron III
  • Europa Universalis: Rome
  • Teleglitch: Die More Edition
  • Warlock: Master of the Arcane
I would like to create a decision and modifier. But game ctd when i mouse-over the decision in game. Also, where I have to define my new modifier? Is event_modifiers enough? And "ai will do = 1" mean that ai will make this decision immedietly it meet the requirements?

Well, here is what I have. Thanks in advance.

Code:
	accept_the_decline = {
		potential = {
			tag = SEL
			not = { has_country_modifier = accept_the_decline }
		}
		allow = {
			ruler not = { finesse = 6 }
		}
		effect = {
			add_country_modifier = {
				name = "accept_the_decline"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}

Code:
accept_the_decline = {
	civilization_spread = -0.04
	stability_cost_modifier = 0.06
	global_revolt_risk = 12
	icon = 3
}
 
Hi.
There's an error in the code, "ruler not = { finesse = 6 }" doesn't work, it should be

Code:
ruler = { not = { finesse = 6 } }

Try with this.
Yes, factor = 1 means it is always chosen, IIRC.

EDIT: yes, event_modifiers.
 
I tested it and it worked. You surely forgot the country_decisions thing:

Code:
country_decisions = {

	accept_the_decline = {
		potential = {
			tag = SEL
			not = { has_country_modifier = accept_the_decline }
		}
		allow = {
			ruler = { not = { finesse = 6 } }
		}
		effect = {
			add_country_modifier = {
				name = "accept_the_decline"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}

}

There's also the localisation lines lacking to make the decision "beatiful", but that is not the problem.
 
Well, I didn wrote this decision in new file. That how entire seleuvidempire.txt looks. Is there some mistype, perhaps?

Code:
country_decisions = {

	promote_greek_culture = {
		potential = {
			tag = SEL
			not = { has_country_modifier = encourage_spread_of_greek_culture }
		}
		allow = {
			ruler = { finesse = 6 }
		}
		effect = {
			add_country_modifier = {
				name = "encourage_spread_of_greek_culture"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}

}

country_decisions = {

	accept_the_decline = {
		potential = {
			tag = SEL
			not = { has_country_modifier = accept_the_decline }
		}
		allow = {
			ruler = { not = { finesse = 6 } }
		}
		effect = {
			add_country_modifier = {
				name = "accept_the_decline"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}

}
 
Last edited:
Please put

Code:
accept_the_decline = {
	civilization_spread = -0.04
	stability_cost_modifier = 0.06
	global_revolt_risk = 12
	icon = 3
}

in event_modifiers.txt.

By taking it out, I got your error. I thought you had it already :p
 
Here is my event_modifiers.txt file in the attachment.

Are you changing the vanilla files or working with a mod? Because if you use a mod and the .mod file doesn't have the "extend = "common"" you'll get this error too.
 

Attachments

  • event_modifiers.txt
    7,1 KB · Views: 21
I have it working, so it must be simple:

1) event_modifiers.txt in the common folder must have

Code:
accept_the_decline = {
	civilization_spread = -0.04
	stability_cost_modifier = 0.06
	global_revolt_risk = 12
	icon = 3
}

Let a blank line in the end of the file

2) seleucidempire.txt is this way:

Code:
country_decisions = {

	promote_greek_culture = {
		potential = {
			tag = SEL
			not = { has_country_modifier = encourage_spread_of_greek_culture }
		}
		allow = {
			ruler = { finesse = 6 }
		}
		effect = {
			add_country_modifier = {
				name = "encourage_spread_of_greek_culture"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}

}

country_decisions = {

	accept_the_decline = {
		potential = {
			tag = SEL
			not = { has_country_modifier = accept_the_decline }
		}
		allow = {
			ruler = { not = { finesse = 6 } }
		}
		effect = {
			add_country_modifier = {
				name = "accept_the_decline"
				duration = -1
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}

}

Again, leave a blank line in the end of the file

It must work this way, it works for me.

To have the names and descriptions, go to the localisation folder, pick any csv file or create a new one and add the lines (follow the format the other ones have):

accept_the_decline (and put the title of the modifier)
desc_accept_the_decline (and put the description of the modifier)

and also the equivalent for the decision:

accept_the_decline
accept_the_decline_desc

I noticed now that the modifier and the decision have the same name. Change this (although it works for me).