• 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
Pirates in EU2 are a little lame. Plave a galley in each coastal area and no more pirates. At best they are a minor nuissance.

Here is a piracy event for the Gulf of Mexico. There would be companion versions for the Atlantic Seabord, Eastern Med, Western Med, Gulf of Arabia and the eastern and Western sides of India, and the Indonesian Islands.

Code:
event = {
	id = 800921
	random = yes
	trigger = {
		year = 1550
		OR = {
			owned = { province = 28 data = -1 }
			owned = { province = 29 data = -1 }
			owned = { province = 32 data = -1 }
			owned = { province = 34 data = -1 }
			owned = { province = 35 data = -1 }
			owned = { province = 36 data = -1 }
			owned = { province = 37 data = -1 }
			owned = { province = 38 data = -1 }
			owned = { province = 39 data = -1 }
			owned = { province = 41 data = -1 }
			owned = { province = 43 data = -1 }
			owned = { province = 45 data = -1 }
			owned = { province = 46 data = -1 }
			owned = { province = 47 data = -1 }
			owned = { province = 48 data = -1 }
			owned = { province = 49 data = -1 }
			owned = { province = 50 data = -1 }
			owned = { province = 137 data = -1 }
			owned = { province = 138 data = -1 }
			owned = { province = 139 data = -1 }
			owned = { province = 140 data = -1 }
			owned = { province = 141 data = -1 }
			owned = { province = 142 data = -1 }
			owned = { province = 143 data = -1 }
			owned = { province = 144 data = -1 }
			owned = { province = 145 data = -1 }
			owned = { province = 146 data = -1 }
			owned = { province = 147 data = -1 }
			owned = { province = 148 data = -1 }
			owned = { province = 149 data = -1 }
			owned = { province = 151 data = -1 }
			owned = { province = 152 data = -1 }
			owned = { province = 154 data = -1 }
			owned = { province = 156 data = -1 }
			owned = { province = 157 data = -1 }
			owned = { province = 158 data = -1 }
			owned = { province = 178 data = -1 }
			owned = { province = 1569 data = -1 }
		}
		OR = {
			NOT = { owned = { province = 28 data = -1 } }
			NOT = { owned = { province = 29 data = -1 } }
			NOT = { owned = { province = 32 data = -1 } }
			NOT = { owned = { province = 34 data = -1 } }
			NOT = { owned = { province = 35 data = -1 } }
			NOT = { owned = { province = 36 data = -1 } }
			NOT = { owned = { province = 37 data = -1 } }
			NOT = { owned = { province = 38 data = -1 } }
			NOT = { owned = { province = 39 data = -1 } }
			NOT = { owned = { province = 41 data = -1 } }
			NOT = { owned = { province = 42 data = -1 } }
			NOT = { owned = { province = 43 data = -1 } }
			NOT = { owned = { province = 45 data = -1 } }
			NOT = { owned = { province = 46 data = -1 } }
			NOT = { owned = { province = 47 data = -1 } }
			NOT = { owned = { province = 48 data = -1 } }
			NOT = { owned = { province = 49 data = -1 } }
			NOT = { owned = { province = 50 data = -1 } }
			NOT = { owned = { province = 137 data = -1 } }
			NOT = { owned = { province = 138 data = -1 } }
			NOT = { owned = { province = 139 data = -1 } }
			NOT = { owned = { province = 140 data = -1 } }
			NOT = { owned = { province = 141 data = -1 } }
			NOT = { owned = { province = 142 data = -1 } }
			NOT = { owned = { province = 143 data = -1 } }
			NOT = { owned = { province = 144 data = -1 } }
			NOT = { owned = { province = 145 data = -1 } }
			NOT = { owned = { province = 146 data = -1 } }
			NOT = { owned = { province = 147 data = -1 } }
			NOT = { owned = { province = 148 data = -1 } }
			NOT = { owned = { province = 148 data = -1 } }
			NOT = { owned = { province = 149 data = -1 } }
			NOT = { owned = { province = 150 data = -1 } }
			NOT = { owned = { province = 151 data = -1 } }
			NOT = { owned = { province = 152 data = -1 } }
			NOT = { owned = { province = 154 data = -1 } }
			NOT = { owned = { province = 156 data = -1 } }
			NOT = { owned = { province = 157 data = -1 } }
			NOT = { owned = { province = 158 data = -1 } }
			NOT = { owned = { province = 178 data = -1 } }
			NOT = { owned = { province = 1469 data = -1 } }
		}
		NOT = { year = 1700 }
		NOT = { naval = 30 }
	}
	name = "Piracy in the Gulf"
	desc = "Trade through the Gulf of Mexico has become a vital part of our trading empire. Pirates operating from coastal towns owned by our neighbours have grown in both number, ferocity and boldness!"

	action_a = {
		name = "We can do little about it"
		command = { type = cash value = -40 }
		command = { type = trade value = -300 }
		command = { type = merchants value = -2 }
	}
	action_b = {
		name = "Confront the pirates"
		command = { type = cash value = -120 }
		command = { type = casusbelli which = -1 value = 6 }
		command = { type = casusbelli which = MAA value = 6 }
	}
}
 
if it is implied that maya are the pirates (and one random nation) shouldn't the maya get some sort of benefit from pirates, or get a different event themselves?
I know there are maya events corresponding to piracy but maybe they should have their own "privateers" event which then triggers this event in nations that occupy the carribean
 
Qarasina!
 
I have ditched the Maya-specific casusbelli as it will crush them

Here is the expanded action list I developed.
Code:
	action_a = {
		name = "We can do little about it"
		command = { type = cash value = -40 }
		command = { type = trade value = -300 }
		command = { type = merchants value = -2 }
	}
	action_b = {
		name = "Increase our naval presence"
		command = { type = cash value = -120 }
                command = { type = naval value = 50 }
	}
	action_c = {
		name = "Confront the pirates"
		command = { type = cash value = -240 }
                command = { type = naval value = 200 }
		command = { type = badboy value = -1 }
		command = { type = casusbelli which = -1 value = 6 }
		command = { type = casusbelli which = -1 value = 6 }
	}

I also included the Aegean, South China Sea, Sea of Japan and Black Sea as areas for the pirates.

As these are random events, there is no follow-up event, such as a benefit to some nation. These represent independent pirates, not state sponsored privateers, for which there is already a game mechanic.

The Tlemscen series of events is much more time-specific and is related to a unique 'state' of pirate cities (I know, it is more complicated than that).
 
Last edited:
Don_Quigleone said:
if it is implied that maya are the pirates (and one random nation) shouldn't the maya get some sort of benefit from pirates, or get a different event themselves?
I know there are maya events corresponding to piracy but maybe they should have their own "privateers" event which then triggers this event in nations that occupy the carribean


I think this is a great idea, that under one of the Maya monarchs, or if they have been partly 'consumed' as a nation, that they instead turn to piracy. It might not be a very viable player option, but it could be a cool death-knell event sequence for the Maya and cause a lot of headaches. It could give a good reason to leave them alone.
 
well I originally commented on your first draft but if it works it works, maybe something like this
event 1:

not : control provinces (and gate) XXXXXX,

atwar=yes

action a) We have no hope, make concessions to privateers:

+200 gold (or something equivalent) (pirate funds)
+warships/galleys
10000 infantry (pirates provide troops and navy)
-manpower and tax value in xprovinces (making concessions to pirates)

action b) we will never surrender, no concessions
no effect, sleep event 3

event 2: (the attacker gets this, don't know how it would be triggered exactly, maybe atwar with maya, control provinces x (an or gate here in case multiple people are attacking them) and event 1, also continent=europe (this all means it could possibly fire in a future war but not probably)

Curses!: desertion of troops in x provinces (say 5000 in carribean) and revolts in other carribean provinces

event 3: (after the event maya at peace) a chance to repeal pirate concessions

triggers: stability 2
atwar =no
country size=8 (again randomly chosen by myself, but as long as you're bigger than in event 1)

action a) withdraw the concessions!
revolts galore, desertion of troops, is desertion of navy possible?, -3 stab, regain lost manpower and tax value in X provinces (maybe with slight losses due to inefficient piratical occupation)

action b) do nothing: -400 cash (keep up the dues to pirates) gain a token number of galleys,

hows that? event 1 is the maya desperately looking to their old enemies the pirates for help, 2 is the havoc it wreaks on european nation in question, event 3 is a chance to repeal the concessions, albeit with bad revolts, how is it? not in conventional triggering but i was too lazy to type out properly

EDIT: maybe further events could be present in later wars causing the powers to lose men and/or have revolts due to pirates siding with maya, obviously event 3 would sleep these if you choose action a
 
I like the ideas you have here. I think they can form one path/option for the Maya player .

Alternatively, we make this sort of event generic for anyone who controls any of the lesser antilles/cuba/haiti etc, wherein they are approached by pirates/privateers for unofficial sanctuary.

What I was thinking of was more of the Maya becoming something of a pirate state, a path it choses when it is obviously on its last legs, rather than just a one-off series of events.


As far as coding the second of your events is concerned it is very very hard. The event system has too few ways to track 'who did something' or who received something'. Events can only be written for provinces or countries, except by using the random event system, which is fine if you don't mind it never happening (cause its, like, random).
 
Yeah I know what you mean about 2, but what if we programmed several (almost a hundred say) of the same events, all happening at 5 year intervals (so it can only happen once every hundred years) with just these triggers: atwar maya yes, and have events for every province in antilles (which now that I think about it sounds like a lot of work...), event 1 (maya turning to piracy event) option b turns off all these events, the only problem with maya becoming pirates is what real gameplay ramifications would it have? heres another event idea

event 4: Pirates take over our colony!
owned province xxx, control province xxx (in carribean) = rebel, event 1 (slept by option b) atwar maya yes (not sure of this), continent europe

action a)ARGHHH: secede province xxx maya
cassus belli : maya (maybe could kill maya off so not sure)

action b) make concessions: tax value -2, manpower -2 (in province xxx) (i'm not sure if action b here is a good idea...)

also we could have a flag activated if maya(or any nation...) goes pirate that sleeps inappropriate random events and activates others (similiar to gaelic law for the irish)

alternatively if we can't do event 2 as stipulated we could just have a group of random events like this : triggers: owned province xxx in carribean, event 1 (maya piracy) slept by action b, exists maya(just in case they do get destroyed),

pirate activity! : revolt which province xxx,

we could write such random events for all carribean provinces, also if the rebels manage to win the event above fires causing it to be seceded to maya
 
Last edited: