• 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.
Going by this information...

testja5.jpg


...I had these flags made.

Which do you prefer?
 
Spanish flagchange events

These will need amending:

Code:
#(1700) The will of Carlos II -I-
#by Fodoron [COLOR=Lime]- modified by mandead[/COLOR]
event = {
	id = 285210
	trigger = {
		neighbour = FRA
		exists = HAB
		NOT = {
			vassal = { country = FRA country = HAB }
			vassal = { country = SPA country = HAB }
		}
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285210"

	date = { day = 2 month = november year = 1700 }

	action_a = {
		name = "ACTIONNAME285210A" #Let it be!
		[COLOR=Lime]command = { type = flagname which = "Bourbon" }[/COLOR]
		command = { type = breakvassal which = HAB }
		command = { type = breakvassal which = ENG }
		command = { type = breakvassal which = HOL }
		command = { type = dynastic which = FRA }
		command = { type = relation which = FRA value = 200 }
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 387 } #Franche-Comté
		command = { type = removecore which = 426 } #Roussillon
		command = { type = secedeprovince which = FRA value = 376 } #Champagne
		command = { type = secedeprovince which = FRA value = 379 } #Artois
		command = { type = secedeprovince which = FRA value = 382 } #Calais
		command = { type = secedeprovince which = FRA value = 383 } #Picardie
		command = { type = secedeprovince which = FRA value = 384 } #Caux
		command = { type = secedeprovince which = FRA value = 385 } #Ile-de-France
		command = { type = secedeprovince which = FRA value = 386 } #Nivernais
		command = { type = secedeprovince which = FRA value = 387 } #Franche-Comté
		command = { type = secedeprovince which = FRA value = 406 } #Provence
		command = { type = secedeprovince which = FRA value = 407 } #Dauphiné
		command = { type = secedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = secedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = secedeprovince which = FRA value = 410 } #Berri
		command = { type = secedeprovince which = FRA value = 411 } #Orléanais
		command = { type = secedeprovince which = FRA value = 412 } #Maine
		command = { type = secedeprovince which = FRA value = 413 } #Normandie
		command = { type = secedeprovince which = FRA value = 414 } #Armor
		command = { type = secedeprovince which = FRA value = 415 } #Bretagne
		command = { type = secedeprovince which = FRA value = 416 } #Morbihan
		command = { type = secedeprovince which = FRA value = 417 } #Vendée
		command = { type = secedeprovince which = FRA value = 418 } #Poitou
		command = { type = secedeprovince which = FRA value = 419 } #Auvergne
		command = { type = secedeprovince which = FRA value = 420 } #Limousin
		command = { type = secedeprovince which = FRA value = 421 } #Cévennes
		command = { type = secedeprovince which = FRA value = 422 } #Languedoc
		command = { type = secedeprovince which = FRA value = 423 } #Guyenne
		command = { type = secedeprovince which = FRA value = 424 } #Gascogne
		command = { type = secedeprovince which = FRA value = 425 } #Béarn
		command = { type = secedeprovince which = FRA value = 426 } #Roussillon
		command = { type = trigger which = 179080 } #HAB: The will of Carlos II
		command = { type = trigger which = 170052 } #FRA: The will of Carlos II
		command = { type = trigger which = 170188 } #FRA: The will of Carlos II (FRA vassal to SPA)
		command = { type = sleepevent which = 285284 } #SPA: The will of Carlos II -II-
		command = { type = sleepevent which = 285285 } #SPA: The will of Carlos II -III-
	}
}
Code:
#(1700) The will of Carlos II -II- France not neighbour of Spain
event = {
	id = 285284
	trigger = {
		NOT = { neighbour = FRA }
		exists = FRA
		exists = HAB
		NOT = {
			vassal = { country = FRA country = HAB }
			vassal = { country = SPA country = HAB }
		}
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285210"

	date = { day = 2 month = november year = 1700 }

	action_a = {
		name = "ACTIONNAME285210A" #Let it be!
		[COLOR=Lime]command = { type = flagname which = "Bourbon" }[/COLOR]
		command = { type = breakvassal which = HAB }
		command = { type = breakvassal which = ENG }
		command = { type = breakvassal which = HOL }
		command = { type = dynastic which = FRA }
		command = { type = relation which = FRA value = 200 }
		command = { type = secedeprovince which = FRA value = 376 } #Champagne
		command = { type = secedeprovince which = FRA value = 382 } #Calais
		command = { type = secedeprovince which = FRA value = 383 } #Picardie
		command = { type = secedeprovince which = FRA value = 384 } #Caux
		command = { type = secedeprovince which = FRA value = 385 } #Ile-de-France
		command = { type = secedeprovince which = FRA value = 386 } #Nivernais
		command = { type = secedeprovince which = FRA value = 406 } #Provence
		command = { type = secedeprovince which = FRA value = 407 } #Dauphiné
		command = { type = secedeprovince which = FRA value = 408 } #Lyonnais
		command = { type = secedeprovince which = FRA value = 409 } #Bourgogne
		command = { type = secedeprovince which = FRA value = 410 } #Berri
		command = { type = secedeprovince which = FRA value = 411 } #Orléanais
		command = { type = secedeprovince which = FRA value = 412 } #Maine
		command = { type = secedeprovince which = FRA value = 413 } #Normandie
		command = { type = secedeprovince which = FRA value = 414 } #Armor
		command = { type = secedeprovince which = FRA value = 415 } #Bretagne
		command = { type = secedeprovince which = FRA value = 416 } #Morbihan
		command = { type = secedeprovince which = FRA value = 417 } #Vendée
		command = { type = secedeprovince which = FRA value = 418 } #Poitou
		command = { type = secedeprovince which = FRA value = 419 } #Auvergne
		command = { type = secedeprovince which = FRA value = 420 } #Limousin
		command = { type = secedeprovince which = FRA value = 421 } #Cévennes
		command = { type = secedeprovince which = FRA value = 422 } #Languedoc
		command = { type = secedeprovince which = FRA value = 423 } #Guyenne
		command = { type = secedeprovince which = FRA value = 424 } #Gascogne
		command = { type = secedeprovince which = FRA value = 425 } #Béarn
		command = { type = trigger which = 179080 } #HAB: The will of Carlos II
		command = { type = trigger which = 170052 } #FRA: The will of Carlos II
		command = { type = trigger which = 170188 } #FRA: The will of Carlos II (FRA vassal to SPA)
		command = { type = sleepevent which = 285210 } #SPA: The will of Carlos II -I-
		command = { type = sleepevent which = 285285 } #SPA: The will of Carlos II -III-
	}
}
Code:
#(1700) The will of Carlos II -III- no France
event = {
	id = 285285
	trigger = {
		NOT = { exists = FRA }
		exists = HAB
		event = 285205 #SPA: The Burgundian court
	}
	random = no
	country = SPA
	name = "EVENTNAME285210" #The will of Carlos II
	desc = "EVENTHIST285285"

	date = { day = 2 month = november year = 1700 }

	action_a = {
		name = "ACTIONNAME285210A" #Let it be!
		[COLOR=Lime]command = { type = flagname which = "Bourbon" }[/COLOR]
		command = { type = breakvassal which = HAB }
		command = { type = breakvassal which = ENG }
		command = { type = breakvassal which = HOL }
		command = { type = dynastic which = HAB }
		command = { type = relation which = HAB value = 200 }
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 387 } #Franche-Comté
		command = { type = secedeprovince which = HAB value = 379 } #Artois
		command = { type = secedeprovince which = HAB value = 387 } #Franche-Comté
		command = { type = stability value = 2 }
		command = { type = capital which = 436 } #Castilla
		command = { type = secedeprovince which = HAB value = 337 } #Friesen
		command = { type = secedeprovince which = HAB value = 338 } #Geldre
		command = { type = secedeprovince which = HAB value = 339 } #Holland
		command = { type = secedeprovince which = HAB value = 340 } #Zeeland
		command = { type = secedeprovince which = HAB value = 377 } #Luxembourg
		command = { type = secedeprovince which = HAB value = 378 } #Brabant
		command = { type = secedeprovince which = HAB value = 380 } #Flandern
		command = { type = secedeprovince which = HAB value = 389 } #Lombardia
		command = { type = secedeprovince which = HAB value = 390 } #Mantua #same effect as in SPA_285264
		command = { type = trigger which = 179145 } #HAB: The will of Carlos II
		command = { type = sleepevent which = 285210 } #SPA: The will of Carlos II -I-
		command = { type = sleepevent which = 285284 } #SPA: The will of Carlos II -II-
		command = { type = independence which = FRA }
	}
}
Code:
#(1706-1711) Bourbonist defeat
#by Fodoron [COLOR=Lime]- modified by mandead[/COLOR]
event = {
	id = 285213 #triggered by HSA_187001
	random = no
	country = SPA
	name = "EVENTNAME285213" #Bourbonist defeat in war of Spanish succession
	desc = "EVENTHIST285213"

	action_a = {
		name = "ACTIONNAME285213A" #The Habsburg dynasty will continue ruling our country
		[COLOR=Lime]command = { type = flagname which = "Saltire" }[/COLOR]
		command = { type = setflag which = [Austracists_won] } #needed for specific events
		command = { type = inherit which = HSA }
		command = { type = badboy value = -2 }
		command = { type = remove_countryculture which = italian }
		command = { type = removecore which = 338 } #Geldre
		command = { type = removecore which = 339 } #Holland
		command = { type = removecore which = 340 } #Zeeland
		command = { type = removecore which = 377 } #Luxembourg
		command = { type = removecore which = 378 } #Brabant
		command = { type = removecore which = 379 } #Artois
		command = { type = removecore which = 380 } #Flandern
		command = { type = removecore which = 387 } #Franche-Comté
		command = { type = removecore which = 389 } #Lombardia
		command = { type = relation which = HAB value = 400 }
		command = { type = relation which = FRA value = -100 }
		command = { type = breakvassal which = FRA }
		command = { type = dynastic which = HAB }
		command = { type = stability value = 2 }
		command = { type = wakemonarch which = 0127506 } #Carlos III °
		command = { type = wakemonarch which = 0127507 } #[COLOR=Yellow]María Teresa[/COLOR] °
		command = { type = wakemonarch which = 0127508 } #[COLOR=Yellow]José[/COLOR] [COLOR=Red]II[/COLOR] °
		command = { type = wakemonarch which = 0127509 } #[COLOR=Yellow]Leopoldo[/COLOR] [COLOR=Red]II[/COLOR] °
		command = { type = wakemonarch which = 0127510 } #Fernando VI °
		command = { type = sleepmonarch which = 0127511 } #Felipe V
		command = { type = sleepmonarch which = 0127512 } #Luis [COLOR=Red]I[/COLOR]
		command = { type = sleepmonarch which = 0127513 } #Felipe V [COLOR=Red](2nd Reign)[/COLOR]
		command = { type = sleepmonarch which = 0127514 } #Fernando VI
		command = { type = sleepmonarch which = 0127515 } #Carlos III
		command = { type = sleepmonarch which = 0127516 } #Carlos IV
		command = { type = sleepmonarch which = 0127517 } #[COLOR=Yellow]Fernando[/COLOR] VII
		command = { type = sleepevent which = 179082 } #HAB: Charles VI elected Holy Roman Emperor
		command = { type = sleepevent which = 179083 } #HAB: The peace of Utrecht
		command = { type = sleepevent which = 285215 } #SPA: The peace of Utrecht
		command = { type = sleepevent which = 170055 } #FRA: The peace of Utrecht
		command = { type = sleepevent which = 164017 } #ENG: The peace of Utrecht
	}
}

Just to clarify, spaBourbon is current spaModern CoA and the white flag with Bourbon arms... spaModern remains the same.

I also suggest changing HSA's flag to the Saltire - the current flag is habImperial which is of course the same as Austria's (most of the time, anyway) and I think it's fair to assume that the supporters of the House of Habsburg would have continued using the Saltire.

SPA (with Saltire) and HSA can't co-exist anyway, so I don't think there'll be a problem...
 
Last edited:
Yes for the second one but the Eagle shield is not centered. One pixel shifted to the left as final result and it could be perfect. Emperor_krk will owe me this because of flags.atn. ;)
 
YodaMaster said:
Yes for the second one but the Eagle shield is not centered. One pixel shifted to the left as final result and it could be perfect. Emperor_krk will owe me this because of flags.atn. ;)
Agreed. Should look pretty cool. :D
 
Update

Posts #2961 and #2983 updated - spaBonaparte set is now complete and I've removed previous edited versions of monarchs.SPA (excluding new/amended monarchs relating specifically to Napoléonic Spain), a reworked version of which I shall post here later.

Can someone please explain to me the difference between porIberia and a normal Spain formed by Portugal? I've never played these sequences so I have no idea; it's just that at present monarchs.SPA has about half a dozen Portuguese monarchs, and I thought it best to finish the sequence to end-game, not simply 'till Philip II (Habsburg) becomes King.

Seems odd to have only half a fantasy line...

 
mandead said:

Can someone please explain to me the difference between porIberia and a normal Spain formed by Portugal? I've never played these sequences so I have no idea; it's just that at present monarchs.SPA has about half a dozen Portuguese monarchs, and I thought it best to finish the sequence to end-game, not simply 'till Philip II (Habsburg) becomes King.

Seems odd to have only half a fantasy line...


I don't remember what sturmvogel's plan was, but my guess is that it is intentional.
 
Since Felipe I/II was of Portuguese descent through multiple lines I decided to keep things simple and have the Aviz dynasty die-off as they did historically. I suppose I could have just imported the Braganças, but I was probably feeling lazy and didn't want to bother since Felipe had the right ancestry.
 
About post #2961 and Napoleonic Spain, missing descriptions:
EVENTHIST170323
EVENTHIST170324
EVENTHIST285307 until 285311

For the Counter Revolution events, maybe a different name for each event could help for comprehension when they will appear, and not only for a Spanish player (-I-, -II- and -III- not being part of the name by convention). Something like:
I => The Counter-Revolution
II => More counter-revolutionary movement
III => Even more counter-revolutionary movement

As a sidenote, EXCELLENT and DAMN are short action names that can be used. No need to create a specific entry for the events.

Still a problem with the use of the trigger command... :D

A triggered event shouldn't have a date. But sequence starts on May 2nd (day = 1) with FRA_170322 and should end on May 6th (day = 5).

Be aware FRA_170322 will be displayed on May 2nd but choice can be made within 2 months (IIRC for MP, because game won't be paused in this case) or action_a will be the default choice in the end. But following events in the sequence must wait for this decision and can't check for FRA_170322 firing (means displayed only). And FRA_170322 can't trigger them because of the dates (May 4th and May 6th for the final events).

We have to make à choice here:
1. simplify and have FRA_170322 firing on May 6th (all other events in the sequence can thus really be triggered without problem on the same day). Only importance in the end is May 6th (or later) with Napoléon as King and spaBonaparte gfx set on the same day. Even if French player waits before answering, Spain will keep current gfx and monarch.

2. expand dates of SPA_285306 for two months (offset + deathdate) and have it checking a [flag] set by a new SPA event triggered by FRA_170322 action_a.
And this is the same reverse problem between SPA_285306 (May 4th) and the French Napoléon and the Crown of Spain events (May 6th).
Anyway SPA_285307 doesn't require a date (triggered on the same day as FRA_170323).


About SPA_285311, I'm not sure I understand the AND NOT condition in the trigger. Could you explain?
In my mind, Restoration of the Spanish monarchy should happen if Joseph is king and :
OR French monarchy was restored at some point
OR if Spain doesn't control the key provinces but not if France is Master of Europe (FRA_3790) and FRA_3791 (Les 100 jours) never fired.

If this is what you tried to implement, your trigger is wrong... Only problem is FRA_3790 can't fire without Restoration of the French monarchy (Louis XVIII). :confused:
 
I'll finish the descriptions once the events are working. I've read your suggestions and updated them accordingly (though I haven't added a flag yet, but can do if still not working...)

And I agree with your trigger suggestions for SPA_285311 - could you fix the trigger, please? :eek:o

Any better? :eek:o

Basically, only Mutiny of Aranjuez & The Kingdom of Spain have dates - the other events are triggered by previous events so fire immediately, thus the sequence should be over pretty quickly.

Of course, the Counter-Revolution & Return of the Monarchy events have offsets and don't hapen 'till later...
 
Last edited:
YodaMaster said:
Only problem is FRA_3790 can't fire without Restoration of the French monarchy (Louis XVIII). :confused:
Surely that is a bug? Why should Napoléon have had to abdicate in order to secure Europe? Is there not a generic victory event for him before 1814? :confused:
 
There is no bug in FRA_3790. It is only forbidden for Napoléon Ier as second occurrence (i.e. Les 100 jours after the Restoration of the monarchy and Louis XVIII).

Problem is only with mandead's trigger in the proposal. In other words, FRA_3790 will never fire if French monarchy was restored at some point. Sorry, I wasn't clear in my sentence.


If you agree with my own understanding, here is the trigger:

Code:
	trigger = {
		monarch = 0127528 #José
		OR = {
			AND = {
				OR = {
					event = 3785 #FRA: The Restoration of the French Monarchy
					event = 3786 #FRA: The Restoration of the French Monarchy
					event = 3787 #FRA: The Restoration of the French Monarchy
					event = 3788 #FRA: The Restoration of the French Monarchy
					event = 3789 #FRA: The Restoration of the French Monarchy
				}
				NOT = {
					AND = {
						event = 3791 #FRA: The Return of Napoléon
						NOT = {
							event = 170274 #FRA: Waterloo
						}
					}
				}
			}
			AND = {
				NOT = {
					AND = {
						control = { province = 430 data = -1 } #Aragon
						control = { province = 435 data = -1 } #Leon
						control = { province = 436 data = -1 } #Castilla
						control = { province = 439 data = -1 } #Toledo
					}
				}
				AND = {
					OR = {
						NOT = {
							event = 3790 #FRA: The French Gamble for Supremacy
						}
						AND = {
							event = 3791 #FRA: The Return of Napoléon
							event = 170274 #FRA: Waterloo
						}
					}
				}
			}
		}
	}

Event will fire if José is on the throne and:
- France disappeared (no more Napoléon)
- or French monarchy was restored at some point but not if Napoléon is back on the throne (*)
- or if Spain control none of the mentioned provinces while France exists but not if Napoléon "controls" Europe or Napoléon is still on the throne before Waterloo after the Restoration of the French monarchy (*)

(*) we never know, because of offset, SPA_285311 could not be able to fire if first reign of Louis XVIII was very short.

It could be better if we were able to check if Napoléon Ier is monarch of France (any occurrence) but this is impossible...

EDIT: removed France disappeared condition
fixed first event = 170274 as NOT
 
Last edited:
Brazilian cores for POR

De-VILLARS added a number of events to give Portugal cores in Brazil and elsewhere at http://forum.paradoxplaza.com/forum/showpost.php?p=9021075&postcount=148, but I think that we can profitably consolidate many of these into other events. Forex I see no issue with adding cores for all of eastern Brazil in the Martim Afonso de Souza event of 1531 even though the non-coastal provinces wouldn't be settled until the next century. The cores for northern Brazil should probably be consolidated as well although Portugal was quite slow to settle the area and had to fight off interlopers as well. I'd have to read up on when exactly this happened so as to suggest a more historical effective date, so I'll leave those alone for now. Does anyone have any reasons why we shouldn't grant these eastern Brazilian cores all in one fell swoop?

Code:
#(1531-1560) Governor Martim Afonso de Sousa in Brazil
event = {
	id = 3271
	trigger = {
		OR = {
			owned = { province = 203 data = -1 } #Recife
			owned = { province = 205 data = -1 } #Pernambuc
			owned = { province = 207 data = -1 } #Diamentina
			owned = { province = 209 data = -1 } #Salvador
			owned = { province = 210 data = -1 } #Itaimas
			owned = { province = 211 data = -1 } #Niteroi
			owned = { province = 213 data = -1 } #Curitiba
		}
	}
	random = no
	country = POR
	name = "EVENTNAME3271" #Governor Martim Afonso de Sousa in Brazil
	desc = "EVENTHIST3271"
	#-#

	date = { day = 1 month = january year = 1531 }
	offset = 60
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME3271A" #Appoint de Sousa
		command = { type = wakeleader which = 0110817 } #Martim de Sousa (POR)
		command = { type = warships which = -1 value = 5 }
		command = { type = treasury value = 100 }
		command = { type = colonists value = 2 }
		[COLOR=YellowGreen]command = { type = addcore which = 205 } #Pernambuc
		command = { type = addcore which = 203 } #Recife
		command = { type = addcore which = 207 } #Diamentina
		command = { type = addcore which = 206 } #Alagoas
		command = { type = addcore which = 208 } #Minas Gerais
		command = { type = addcore which = 209 } #Salvador
		command = { type = addcore which = 210 } #Itaimas
		command = { type = addcore which = 211 } #Niteroi
		command = { type = addcore which = 212 } #Araxa
		command = { type = addcore which = 213 } #Curitiba
		command = { type = addcore which = 214 } #Cangucu[/COLOR]
	}
}
This would allow us to get rid of 260176, 260177, 260178, 2660179, 260169, 260170 and 260171.

It would be nice to consolidate the fort events for the Indonesian islands with the addcore events, but since the former are now AI-only that's not really possible.
 
The trigger conditions are pretty liberal so I'm not much concerned about them not firing in a timely manner. It would be more historical to wait until 1600 or so to give cores on the interior provinces, to match the pace of Portuguese settlements, but that would add little to the game since they're behind the coastal provinces and much less accessible to interlopers anyway.
 
And to go with the addcore, the removecore commands for Brazil proposed by De-Villars:
Code:
#(1790-1820) Return to Lisbon
event = {
	id = 18024
	trigger = {
		event = 18023 #POR: Move Court to Brazil
		owned = { province = 441 data = -1 } #Tago
		control = { province = 441 data = -1 }
	}
	random = no
	country = POR
	name = "EVENTNAME18024" #Return to Lisbon
	desc = "EVENTHIST18024"
	#-#

	date = { day = 2 month = january year = 1790 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME18024A" #Return to Lisbon
		command = { type = capital which = 441 } #Tago
		command = { type = stability value = 2 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
[COLOR=Red]		command = { type = removecore which = 207 } #Diamentina
		command = { type = removecore which = 209 } #Salvador
		command = { type = removecore which = 210 } #Itaimas[/COLOR]
		command = { type = trigger which = 18025 } #POR: Brazilian Independence
	}
	action_b = {
		name = "ACTIONNAME18024B" #Stay in Brazil
		command = { type = stability value = -2 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = revolt which = 441 } #Tago
	}
}
#-#Lisbon has been freed from foreign domination and belongs to the throne of Portugal once again. Shall we move back home, or is Brazil to be our permanent home?

Code:
#(1790-1820) Brazilian Independence - Ahistorical
event = {
	id = 18025 #triggered by POR_18024 A
	random = no
	country = POR
	name = "EVENTNAME18025" #Brazilian Independence
	desc = "EVENTHIST18025"
	#-#

	action_a = {
		name = "ACTIONNAME18025A" #Fight for our Overseas Colonies
		command = { type = relation which = BRZ value = -400 }
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = trigger which = 135000 } #BRZ: Brazilian Independence
	}
	action_b = {
		name = "ACTIONNAME18025B" #Grant Brazilian Independence
		command = { type = independence which = BRZ }
		command = { type = stability value = 1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = trigger which = 260135 } #POR: Consequences of the Brazilian Independence
	}
}
#-#Brazilian independence movement declares itself following the return of the monarchy to Portugal.

Code:
#(1790-1820) Consequences of the Brazilian Independence - Ahistorical
event = {
	id = 260135 #triggered by POR_18025 B
	random = no
	country = POR
	name = "EVENTNAME260135" #Consequences of the Brazilian Independence
	desc = "EVENTHIST260135"
	#-#

	action_a = {
		name = "OK"
[COLOR=Yellow]		command = { type = removecore which = 203 } #Recife
		command = { type = removecore which = 205 } #Pernambuc
		command = { type = removecore which = 206 } #Alagoas
		command = { type = removecore which = 207 } #Diamentina
		command = { type = removecore which = 208 } #Minas Gerais
		command = { type = removecore which = 209 } #Salvador
		command = { type = removecore which = 210 } #Itaimas
		command = { type = removecore which = 211 } #Niteroi
		command = { type = removecore which = 212 } #Araxa
		command = { type = removecore which = 213 } #Curitiba
		command = { type = removecore which = 214 } #Cangucu
		command = { type = removecore which = 183 } #Amapa
		command = { type = removecore which = 195 } #Mato Grosso
		command = { type = removecore which = 196 } #Goias
		command = { type = removecore which = 197 } #Caracas
		command = { type = removecore which = 198 } #Marajo
		command = { type = removecore which = 199 } #Para
		command = { type = removecore which = 200 } #Tiracambu
		command = { type = removecore which = 201 } #Maranhao
		command = { type = removecore which = 202 } #Parnaiba
		command = { type = removecore which = 204 } #Iguatu[/COLOR]
		command = { type = secedeprovince which = BRZ value = 203 } #Recife
		command = { type = secedeprovince which = BRZ value = 205 } #Pernambuc
		command = { type = secedeprovince which = BRZ value = 206 } #Alagoas
		command = { type = secedeprovince which = BRZ value = 207 } #Diamentina
		command = { type = secedeprovince which = BRZ value = 208 } #Minas Gerais
		command = { type = secedeprovince which = BRZ value = 209 } #Salvador
		command = { type = secedeprovince which = BRZ value = 210 } #Itaimas
		command = { type = secedeprovince which = BRZ value = 211 } #Niteroi
		command = { type = secedeprovince which = BRZ value = 212 } #Araxa
		command = { type = secedeprovince which = BRZ value = 213 } #Curitiba
		command = { type = secedeprovince which = BRZ value = 214 } #Cangucu
		#BRZ extras
		command = { type = secedeprovince which = BRZ value = 183 } #Amapa
		command = { type = secedeprovince which = BRZ value = 195 } #Mato Grosso
		command = { type = secedeprovince which = BRZ value = 196 } #Goias
		command = { type = secedeprovince which = BRZ value = 197 } #Caracas
		command = { type = secedeprovince which = BRZ value = 198 } #Marajo
		command = { type = secedeprovince which = BRZ value = 199 } #Para
		command = { type = secedeprovince which = BRZ value = 200 } #Tiracambu
		command = { type = secedeprovince which = BRZ value = 201 } #Maranhao
		command = { type = secedeprovince which = BRZ value = 202 } #Parnaiba
		command = { type = secedeprovince which = BRZ value = 204 } #Iguatu
		command = { type = relation which = BRZ value = 100 }
		command = { type = trigger which = 135000 } #BRZ: Brazilian Independence
	}
}
#-#Portuguese influence in Brazil vanishes...
 
The trigger conditions are pretty liberal so I'm not much concerned about them not firing in a timely manner. It would be more historical to wait until 1600 or so to give cores on the interior provinces, to match the pace of Portuguese settlements, but that would add little to the game since they're behind the coastal provinces and much less accessible to interlopers anyway.
This is the case in de-Villars' proposal, date is even 1650 for all interior provinces.

But if first "important" cores come with POR_3271, why not postponing all remaining events for the coastal provinces to 1531 instead of 1500 and checking if POR_3271 happened instead of POR_18006 "Colonial Pact" then?

Otherwise, If POR_3271 doesn't happen, we will have a big hole in the middle of the Brazilian cores... if there is no other event that will grant them for safety.

Doesn't it make more sense?
 
The arrival of de Sousa in 3271 is far more important than the Colonial Pact of 18006 since the Portuguese made no sustained effort to colonize Brazil before his arrival, so all events should use 3271 as a trigger instead as well as a start date of 1531.
I'm just not sure I see a need for a multitude of individual core-granting events instead of a few big events even as safety events since 3271 is so easy to fire that I have a hard time of conceiving of cases where it wouldn't under the current AI.
 
Ok, then. I included your proposal in post #2994, removed 260176, 260177, 260178, 2660179, 260169, 260170 and 260171 and modified remaining events according to post #2999.

We can still reduce the number of the remaining events. Just propose.