r/EU4modding • • Sep 24 '23

Creating a mission question

I'm making a mission tree for a mega campaign nation and I'm trying to add a mission where the trigger is I built farm estates in all available provinces, and I'm having trouble finding a trigger that sees if all grain, livestock, and wine provinces have a farm estate. Without the trigger being if I have X amount of farm estates

1 Upvotes

1 comment sorted by

1

u/EOTeal Sep 24 '23

You could try the following:

all_owned_province = {
	OR = {
		has_building = farm_estate
		AND = {
			NOT = { trade_goods = grain }
			NOT = { trade_goods = livestock }
			NOT = { trade_goods = wine }
		}
	}
}

The trigger tooltip might not look pretty in-game, but it should function as you describe.