• 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.

MattyG

Attention is love.
15 Badges
Mar 23, 2003
3.690
1
  • Crusader Kings II: The Old Gods
  • Deus Vult
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings III
  • Europa Universalis 4: Emperor
Ahmed's idea here for events related to the pearl industry in the Gulf of Arabia, with coding etc by yours truly.

Comments please.


Code:
event = {
	id = 1
	random = no
	province = 507
	trigger = {
		owned = { province = 507 data = -1 }
		owned = { province = 506 data = -1 }
		owned = { province = 509 data = -1 }
		domestic = { type = mercantilism value = 4 }
		stability = 0
		infra = 2
	}
	name = "Pearls of the Gulf"
	desc = "Pearl diving - dangerous but lucrative - has been a feature of the coastal peoples in the gulf for over a 

thousand years. Although all rulers have taxed it to some extent, all of the pearl-rich waters are now within our demesne 

and we can establish a monopoly over the sale of pearls.Naturally, both the divers and merchants will resent such a move."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "Impose greater levies"
		command = { type = provincetax which = 506 value = 1 }
		command = { type = provincetax which = 507 value = 1 }
		command = { type = provincetax which = 509 value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = provincemanpower which = 506 value = -1 }
		command = { type = provincemanpower which = 507 value = -1 }
		command = { type = provincemanpower which = 509 value = -1 }
		command = { type = trade value = -300 }
		command = { type = cash value = -30 }
		command = { type = setflag which = pearls }
	}
	action_b = {
		name = "Leave the pearl divers be"
		command = { type = setflag which = pearls }
		command = { type = sleepevent which = 2 }
		command = { type = sleepevent which = 3 }
		command = { type = sleepevent which = 4 }
		command = { type = trigger which = 5 }
	}
}

event = {
	event = 2
	random = no
	province = 506
	trigger = {
		event = 1
		NOT = { flag = pearls }
	}
	name = "The End of the Pearl Levy"
	desc = "With the capture of (province 506) the onerous levy of pearls cannot be maintained."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 506 value = -1 }
		command = { type = provincemanpower which = 506 value = 1 }
	}
}

event = {
	event = 3
	random = no
	province = 507
	trigger = {
		event = 1
		NOT = { flag = pearls }
	}
	name = "The End of the Pearl Levy"
	desc = "With the capture of (province 506) the onerous levy of pearls cannot be maintained."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 507 value = -1 }
		command = { type = provincemanpower which = 507 value = 1 }
	}
}

event = {
	event = 4
	random = no
	province = 509
	trigger = {
		event = 1
		NOT = { flag = pearls }
	}
	name = "The End of the Pearl Levy"
	desc = "With the capture of (province 509) the onerous levy of pearls cannot be maintained."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 509 value = -1 }
		command = { type = provincemanpower which = 509 value = 1 }
	}
}

event = {
	id = 5
	random = no
	name = "Tracking Event"
	desc = "Look, I know this is dull, but I need this event to track that you didn't bring in the pearl levy as a 

trigger for another event. Here's a little bonus for your trouble."

	action_a = {
		name = "I understand"
		command = { type = trade value = 10 }
	}
}

event = {
	id = 6
	random = no
	province = 507
	trigger = {
		NOT = { flag  = pearls }
		owned = { province = 507 data = -1 }
		owned = { province = 506 data = -1 }
		owned = { province = 509 data = -1 }
		domestic = { type = mercantilism value = 4 }
		stability = 0
		infra = 2
		OR = {
			AND = {
				event = 2
				event = 3
				event = 4
			}
			event = 5
		}
	}
	name = "Pearls of the Gulf"
	desc = "Pearl diving - dangerous but lucrative - has been a feature of the coastal peoples in the gulf for over a 

thousand years. Although all rulers have taxed it to some extent, all of the pearl-rich waters are now within our demesne 

and we can establish a monopoly over the sale of pearls.Naturally, both the divers and merchants will resent such a move."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "Impose greater levies"
		command = { type = provincetax which = 506 value = 1 }
		command = { type = provincetax which = 507 value = 1 }
		command = { type = provincetax which = 509 value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = provincemanpower which = 506 value = -1 }
		command = { type = provincemanpower which = 507 value = -1 }
		command = { type = provincemanpower which = 509 value = -1 }
		command = { type = trade value = -300 }
		command = { type = cash value = -30 }
		command = { type = setflag which = pearls }
	}
	action_b = {
		name = "Leave the pearl divers be"
		command = { type = setflag which = pearls }
		command = { type = sleepevent which = 7 }
		command = { type = sleepevent which = 8 }
		command = { type = sleepevent which = 9 }
		command = { type = trigger which = 10 }
	}
}

event = {
	event = 7
	random = no
	province = 506
	trigger = {
		event = 6
		NOT = { flag = pearls }
	}
	name = "The End of the Pearl Levy"
	desc = "With the capture of (province 506) the onerous levy of pearls cannot be maintained."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 506 value = -1 }
		command = { type = provincemanpower which = 506 value = 1 }
	}
}

event = {
	event = 8
	random = no
	province = 507
	trigger = {
		event = 6
		NOT = { flag = pearls }
	}
	name = "The End of the Pearl Levy"
	desc = "With the capture of (province 506) the onerous levy of pearls cannot be maintained."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 507 value = -1 }
		command = { type = provincemanpower which = 507 value = 1 }
	}
}

event = {
	event = 9
	random = no
	province = 509
	trigger = {
		event = 6
		NOT = { flag = pearls }
	}
	name = "The End of the Pearl Levy"
	desc = "With the capture of (province 509) the onerous levy of pearls cannot be maintained."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = provincetax which = 509 value = -1 }
		command = { type = provincemanpower which = 509 value = 1 }
	}
}

event = {
	id = 10
	random = no
	name = "Tracking Event"
	desc = "Look, I know this is dull, but I need this event to track that you didn't bring in the pearl levy as a 

trigger for another event. Here's a little bonus for your trouble."

	action_a = {
		name = "I understand"
		command = { type = trade value = 10 }
	}
}

event = {
	id = 11
	random = no
	province = 507
	trigger = {
		owned = { province = 507 data = -1 }
		owned = { province = 506 data = -1 }
		owned = { province = 509 data = -1 }
		domestic = { type = mercantilism value = 4 }
		stability = 0
		infra = 2
		OR = {
			AND = {
				event = 7
				event = 8
				event = 9
			}
			event = 10
		}
	}
	name = "Pearls of the Gulf"
	desc = "Pearl diving - dangerous but lucrative - has been a feature of the coastal peoples in the gulf for over a 

thousand years. Although all rulers have taxed it to some extent, all of the pearl-rich waters are now within our demesne 

and we can establish a monopoly over the sale of pearls.Naturally, both the divers and merchants will resent such a move."
	date = { year = 1419 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "Impose greater levies"
		command = { type = provincetax which = 506 value = 1 }
		command = { type = provincetax which = 507 value = 1 }
		command = { type = provincetax which = 509 value = 1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = provincemanpower which = 506 value = -1 }
		command = { type = provincemanpower which = 507 value = -1 }
		command = { type = provincemanpower which = 509 value = -1 }
		command = { type = trade value = -300 }
		command = { type = cash value = -30 }
		command = { type = setflag which = pearls }
	}
	action_b = {
		name = "Leave the pearl divers be"
		command = { type = trade value = 10 }
	}
}
 
For the first set of negative events I don't think the trigger should be "NOT = { flag = pearls }" because then the events would never fire. They are slept if you decline the pearl flag, but they are triggered only if you do not have the pearl flag.
 
Dairpo said:
For the first set of negative events I don't think the trigger should be "NOT = { flag = pearls }" because then the events would never fire. They are slept if you decline the pearl flag, but they are triggered only if you do not have the pearl flag.

Precisely.

They are to reduce the tax value of that province, because it has be conquered by another country, hence the NOT = { flag = pearls } to ensure the event doesn't fire for the country which established the monopoly.
 
hang on is the reason for the replications of the event just so multiple nations can do it, why not have it simply that it trigger once and then conquering nations are iven the option to continue or discontinue the levy?
 
In this case the levy is predicated on having a monopoly on production by controlling all the pearl producing regions.
 
hmmm well if it works it works! But maybe greater penalties or benifits should result from it in the long run, a cot or something, +1 base tax value isn't that great...
 
But +3 overall.

A COT?!!!! :rofl:

Sorry, that's a bit much.

If you think it isn't worth it, then when you conquer those regions, chose action_b :cool:
 
well a cot is abit much... maybe if you go for the monopoly it should go bust later, I was thinking of editing my comment to take out the cot bit...

Edit: or maybe not going for it should loosen the economy giving bonus explorers or something later on... although maybe less is more