r/EU4mods•
Zachdogg

Change Cubject Type via Diplo Action

Mod Help

Hey yall, hopefully easy question, I have a few new subject types in a Mod I am working on, and most work great when done via Diplomatic Action, expect for ones that change colonies. Specifically, the below action does nothing, I know the rest of the code works, because if I change the 'on accept' to give me 25 prestige, that runs. I am doing all of my testing with domination off, as I do not want that DLC to be a requirement for the mod, could that be the cause? Is it not possible to effect the subject type of colonies with that DLC not active? I am really at a loss, as the 'create subject' code is very similar to the code used to reign in eyelets, and other similar actions.

create_protected_colony = {

`category = influence`

`require_acceptance = no`

`is_visible = {`

	`overlord_of = FROM`

	`FROM = {`

		`OR = {`

		`is_subject_of_type = colony`

		`is_subject_of_type = self_governing_colony`

		`is_subject_of_type = private_enterprise`

		`is_subject_of_type = crown_colony`

		`}`

	`}`

`}`

`is_allowed = {`

`always = yes`

`}`

`on_accept = {`

`create_subject = {`

		`subject_type = reservation`

		`subject = FROM`

		`keep_liberty_desire = yes`

	`}`

`}`

`on_decline = {`

`}`

`ai_will_do = {`

	`if = {`

	`OR = {`

	`FROM = {`

capital_scope = {

continent = africa

}

}

	`FROM = {`

capital_scope = {

continent = asia

}

}

	`}`

	`}`

`}`

}

Posted Sep 11, 2025, 5:01 PM UTC

10
Loading comments…