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

Dairpo

First Lieutenant
29 Badges
Dec 5, 2005
209
0
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Age of Wonders III
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Victoria 2
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
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.
 

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

Don_Quigleone

Field Marshal
87 Badges
Jan 19, 2007
5.021
2.140
  • Stellaris
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
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?
 

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
In this case the levy is predicated on having a monopoly on production by controlling all the pearl producing regions.
 

Don_Quigleone

Field Marshal
87 Badges
Jan 19, 2007
5.021
2.140
  • Stellaris
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
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...
 

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
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:
 

Don_Quigleone

Field Marshal
87 Badges
Jan 19, 2007
5.021
2.140
  • Stellaris
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
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