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