Ahmed's idea here for events related to the pearl industry in the Gulf of Arabia, with coding etc by yours truly.
Comments please.
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 }
}
}