• 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.
Vassal trigger doesn't work if target is already someone's vassal in POR_260223. Calicut is more often than not a vassal of VIJ.

Code:
#(1598-1600) The Surrender of Kunjali Marakkar
event = {
	id = 364007
	trigger = {
		event = 364006 #POR: Portuguese Factory at Calicut
	}
	random = no
	country = FAT
	name = "EVENTNAME364007" #The Surrender of Kunjali Marakkar
	desc = "EVENTHIST364007"

	date = { day = 1 month = january year = 1598 }
	offset = 700
	deathdate = { day = 29 month = december year = 1600 }

	action_a = {
		name = "ACTIONNAME364007A" #Give Kunjali to Portugal
		command = { type = relation which = POR value = 200 }
		[COLOR=Yellow]command = { type = breakvassal which = VIJ }[/COLOR]
		command = { type = trigger which = 260223 } #POR: Calicut is cowed
		command = { type = sleepleader which = 047304 } #Marakkar (FAT)
	}
	action_b = {
		name = "ACTIONNAME364007B" #Free Kunjali
		command = { type = relation which = POR value = -100 }
		command = { type = merchants value = -3 }
		command = { type = treasury value = -200 }
	}
}

#-#Calicut's fearless naval commander Kunjali Marakkar has fought on against the Portuguese despite his government's decision to normalize relations with the colonial powers. Having apprehended Kunjali, Calicut's King now has the chance to turn him over to the Portuguese.
 
This is always the same problem: we can't break vasselage from any country and we can't know in conditions if a country is a vassal or not.

Be aware breakvassal command can work the other way with overlod breaking the vasselage (it will work only if game is saved and reloaded after vasselage was set)...

About POR_260223, this is another problem but, IIRC, it is impossible to break vasselage and trigger immediately an event that will create another vasselage for the same country. Try to set dates for POR event and check if FAT one fired before (=> sleep POR event in FAT event action_b).


Vassal / breakvassal conditions and commands are incomplete or partially "broken".
 
Last edited:
YodaMaster said:
About POR_260223, this is another problem but, IIRC, it is impossible to break vasselage and trigger immediately an event that will create another vasselage for the same country.

Can I break the vassalage in the current event, trigger another new event for FAT which then triggers vassalage event for POR?
 
Lord Grave said:
Can I break the vassalage in the current event, trigger another new event for FAT which then triggers vassalage event for POR?
Try it too but I'm not sure it will work. First FAT event is still not finished for the engine.
 
Just trying it. Have to enter the strings in the stupid text.csv. If that doesn't work I'll just make another event in the same period and have it check for event = 364007. That should work. Even better, instead of adding an event for FAT I'll just make the Portuguese one a non-triggered.
 
You don't really need to modify text.csv when testing events. You can use double quotes for name, desc and actions. Of course, entries for text.csv will be required but only with final solution (the one that works...).
 
Yeah, I know now. Did you know that it is reloaded only if you actually restart the game? The event was titled EVENTNAMEid even though I entered it into the text.csv.

Anyway, it works. Like this:

Code:
#(1598-1600) The Surrender of Kunjali Marakkar
event = {
	id = 364007
	trigger = {
		event = 364006 #POR: Portuguese Factory at Calicut
		[COLOR=Yellow]exists = POR[/COLOR]
	}
	random = no
	country = FAT
	name = "EVENTNAME364007" #The Surrender of Kunjali Marakkar
	desc = "EVENTHIST364007"

	date = { day = 1 month = january year = 1598 }
	offset = 700
	deathdate = { day = 29 month = december year = 1600 }

	action_a = {
		name = "ACTIONNAME364007A" #Give Kunjali to Portugal
		command = { type = relation which = POR value = 200 }
		[COLOR=Yellow]command = { type = breakvassal which = VIJ }[/COLOR]
		[COLOR=Red]command = { type = trigger which = 260223 } #POR: Calicut is cowed[/COLOR]
		[COLOR=Yellow]command = { type = trigger which = 364004 } #FAT: Submission to Portugal[/COLOR]
		command = { type = sleepleader which = 047304 } #Marakkar (FAT)
	}
	action_b = {
		name = "ACTIONNAME364007B" #Free Kunjali
		command = { type = relation which = POR value = -100 }
		command = { type = merchants value = -3 }
		command = { type = treasury value = -200 }
	}
}
#-#Calicut's fearless naval commander Kunjali Marakkar has fought on against the Portuguese despite his government's decision to normalize relations with the colonial powers. Having apprehended Kunjali, Calicut's King now has the chance to turn him over to the Portuguese.


Code:
#(1598-1600) Submission to Portugal
event = {
	id = 364004 #triggered by FAT_364007 A
	random = no
	country = FAT
	name = "EVENTNAME364004" #Submission to Portugal
	desc = "EVENTHIST364004"

	action_a = {
		name = "AT_LAST"
		command = { type = trigger which = 260223 } #POR: Calicut is cowed
	}
}
#-#With Kunjali Marakkar out of the way, our ruler is now free to submit to the Portuguese.


I don't know if breakvassal is still necessary. This engine is aaawful! At least it doesn't have mtth :)
 
Last edited:
Lord Grave said:
Yeah, I know now. Did you know that it is reloaded only if you actually restart the game? The event was titled EVENTNAMEid even though I entered it into the text.csv.
Of course I know... Restarting the game is mandatory for modifications in text.csv. Reloading a savefile (or starting a new scenario) is sufficient for modifications in events.

Lord Grave said:
I don't know if breakvassal is still necessary. This engine is aaawful! At least it doesn't have mtth :)
Calicut could be vassal of any other country...

If vassal / breakvassal issues were the only ones to be fixed... :D
 
YodaMaster said:
Calicut could be vassal of any other country...

Not impossible, but VIJ is highly probable. Bahamanids or Gondwana are both muslim if I recall correctly, and they will have hard time crushing VIJ in order to reach Calicut to force-vassalize them. Of course, a player playing a muslim Indian power could disrupt this, but we can theorize that such a muslim power wouldn't have allowed Calicut to break free and submit to Portugal.
 
So I know we talked about this, but we never actually implemented it. Basically with revoltrisk as it is now, +15 isn't really enough to reliably see an nations declare their independence. Thus let's up these values a little.

Code:
#Revolt of the Marathas

#(1647-1706) Revolt of the Marathas
event = {
	id = 338400
	trigger = {
		NOT = {
			religion = hinduism
			exists = MAH
		}
	}
	random = no
	province = 548 #Bombay
	name = "EVENTNAME338400" #Revolt of the Marathas
	desc = "EVENTHIST338400"
	#-#

	date = { day = 1 month = january year = 1647 }
	offset = 10
	deathdate = { day = 0 month = january year = 1706 }

	action_a = {
		name = "ACTIONNAME338400A" #What a headache...
		command = { type = revolt which = 548 } #Bombay
		command = { type = province_revoltrisk which = 548 value = [color=limegreen]20[/color] } #Bombay
		command = { type = setflag which = [maratha] }
	}
}
#(1647-1706) Revolt of the Marathas
event = {
	id = 338401
	trigger = {
		NOT = {
			religion = hinduism
			exists = MAH
		}
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338400" #Revolt of the Marathas
	desc = "EVENTHIST338400"
	#-#In 1647 the seventeen-year-old Shivaji began to form the Maratha state with the captures of the region of Pune and the forts of Kondana and Rajgad. Quickly he undermined local authority and established the first Maratha homeland.

	date = { day = 1 month = january year = 1647 }
	offset = 10
	deathdate = { day = 0 month = january year = 1706 }

	action_a = {
		name = "ACTIONNAME338400A" #What a headache...
		command = { type = revolt which = 550 } #Maharashtra
		command = { type = province_revoltrisk which = 550 value = [color=limegreen]30[/color] } #Maharashtra
		command = { type = setflag which = [maratha] }
	}
}
#(1647-1706) Revolt of the Marathas
event = {
	id = 338402
	trigger = {
		NOT = {
			religion = hinduism
			exists = MAH
		}
	}
	random = no
	province = 549 #Goa
	name = "EVENTNAME338400" #Revolt of the Marathas
	desc = "EVENTHIST338400"
	#-#In 1647 the seventeen-year-old Shivaji began to form the Maratha state with the captures of the region of Pune and the forts of Kondana and Rajgad. Quickly he undermined local authority and established the first Maratha homeland.

	date = { day = 1 month = january year = 1647 }
	offset = 10
	deathdate = { day = 0 month = january year = 1706 }

	action_a = {
		name = "ACTIONNAME338400A" #What a headache...
		command = { type = revolt which = 549 } #Goa
		command = { type = province_revoltrisk which = 549 value = [color=limegreen]10[/color] } #Goa
		command = { type = setflag which = [maratha] }
	}
}
#-----------------------------------------------------------------------------------------------
#(1707-1820) The Marathas in Bombay have been pacified
event = {
	id = 338403
	trigger = {
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 548 #Bombay
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338403"
	#-#The Marathi dreams of taking Bombay have successfully been crushed.

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 548 value = [color=limegreen]-20[/color] } #Bombay
		command = { type = province_revoltrisk which = 549 value = [color=limegreen]-10[/color] } #Goa
		command = { type = province_revoltrisk which = 550 value = [color=limegreen]-30[/color] } #Maharashtra
		command = { type = clrflag which = [maratha] }
	}
}
#(1707-1820) The Marathas in Maharashtra have been pacified
event = {
	id = 338404
	trigger = {
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338404"
	#-#The Marathi dreams of taking Maharashtra have successfully been crushed.

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 548 value = [color=limegreen]-20[/color] } #Bombay
		command = { type = province_revoltrisk which = 549 value = [color=limegreen]-10[/color] } #Goa
		command = { type = province_revoltrisk which = 550 value = [color=limegreen]-30[/color] } #Maharashtra
		command = { type = clrflag which = [maratha] }
	}
}
#(1707-1820) The Marathas in Goa have been pacified
event = {
	id = 338405
	trigger = {
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 549 #Goa
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338405"
	#-#The Marathi dreams of taking Goa have successfully been crushed.

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 548 value = [color=limegreen]-20[/color] } #Bombay
		command = { type = province_revoltrisk which = 549 value = [color=limegreen]-10[/color] } #Goa
		command = { type = province_revoltrisk which = 550 value = [color=limegreen]-30[/color] } #Maharashtra
		command = { type = clrflag which = [maratha] }
	}
}
#End of Revolt of the Marathas
 
I don't have the same version (should be 1.56) for 338403, 338404 and 338405...
Code:
#(1707-1820) The Marathas in Bombay have been pacified
event = {
	id = 338403
	trigger = {
		control = { province = 548 data = -1 }
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 548 #Bombay
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338403"
	#-#The Marathi dreams of taking Bombay have successfully been crushed.

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 548 value = -15 } #Bombay
	}
}
#(1707-1820) The Marathas in Maharashtra have been pacified
event = {
	id = 338404
	trigger = {
		control = { province = 550 data = -1 }
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 550 #Maharashtra
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338404"
	#-#The Marathi dreams of taking Maharashtra have successfully been crushed.

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 550 value = -15 } #Maharashtra
	}
}
#(1707-1820) The Marathas in Goa have been pacified
event = {
	id = 338405
	trigger = {
		control = { province = 549 data = -1 }
		flag = [maratha]
		OR = {
			NOT = { exists = MAH }
			year = 1740
		}
	}
	random = no
	province = 549 #Goa
	name = "EVENTNAME338403" #The Marathas have been pacified
	desc = "EVENTHIST338405"
	#-#The Marathi dreams of taking Goa have successfully been crushed.

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { year = 1820 }

	action_a = {
		name = "EXCELLENT"
		command = { type = province_revoltrisk which = 549 value = -5 } #Goa
	}
}
But no problem for decreasing RR according to proposed change for increase.
 
Here are two leaders for the early Bahmanids.

Code:
historicalleader = {
	id = { type = 6 id =  }
	category = general
	startdate = { year = 1419 }
	deathdate = { year = 1420 }
	name = "Mir Fazlullah"
	rank = 2
	movement = 3
	fire = 2
	shock = 3
 }

historicalleader = {			
	id = { type = 6 id =  }
	category = general
	startdate = { year = 1422 }
	deathdate = { year = 1444 }
	name = "Khalaf Hasan"
	rank = 2
	movement = 2
	fire = 3
	shock = 3 
}