• 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.
As for the "main" KNI event, how about putting the positive relations and cores on Lebanon, Samaria, Aleppo, and Judea in both versions? The "a" choice becomes "declare ourselves the Kingdom of Jerusalem", and adds flag/capital changes. This choice should also cost money and destabilize them (natural effects of uprooting the order and moving it). "b" choice would be something like "coordinate defense of the holy city from our current location" and would have the relations/cores without the other changes.

Or maybe switch those, making "a" be not moving? There could even be a "c" choice, "the Holy Land is indefensible", that doesn't do anything, and doesn't sleep the historical events for the order.
 
Here's what I meant - something like this. I'm not sure how to code flag changes, and the text will need to be updated in the csv file.

Code:
#Kingdom of Jerusalem#
event = {
	id = 201006
	trigger = {
		owned = { province = 493 data = -1 }
		event = 201005
	}
	random = no
	country = KNI
	name = "EVENTNAME201006" #Kingdom of Jerusalem
	desc = "EVENTHIST201006"
	#-#Following the reconquest of the Holy City of Jerusalem, the Knights have been put under tremendous pressure from Europe to re-instate the Kingdom of Jerusalem.

	date = { day = 1 month = january year = 1480 }
	offset = 1
	deathdate = { day = 1 month = january year = 1599 }

	action_a = {
		name = "ACTIONNAME201006A" #Coordinate the defense of Jerusalem from our current location
		command = { type = addcore which = 492 } #Samaria
		command = { type = addcore which = 491 } #Lebanon
		command = { type = addcore which = 493 } #Judea
		command = { type = relation which = CYP value = 100 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = SPA value = 75 }
		command = { type = relation which = POR value = 75 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = CAS value = 75 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = ARG value = 75 }
		command = { type = relation which = VEN value = 25 }
	}
	action_b = {
		name = "ACTIONNAME201006B" #Proclaim Ourselves the Kingdom of Jerusalem
		# flag changes
		# shield changes
		command = { type = add_countryculture which = syrian }
		command = { type = addcore which = 484 } #Cyprus
		command = { type = addcore which = 485 } #Aleppo
		command = { type = addcore which = 491 } #Lebanon
		command = { type = addcore which = 492 } #Samaria
		command = { type = addcore which = 493 } #Judea
		command = { type = capital which = 493 } #Judea
		command = { type = stability value = -2 }
		command = { type = treasury value = -100 }
		command = { type = relation which = CYP value = -100 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = SPA value = 25 }
		command = { type = relation which = POR value = 25 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = CAS value = 25 }
		command = { type = relation which = HUN value = 50 }
		command = { type = relation which = ARG value = 25 }
		command = { type = relation which = VEN value = 75 }
	}
	action_c = {
		name = "ACTIONNAME201006C" #Sadly, We cannot defend it
		command = { type = stability value = 1 }
		command = { type = relation which = FRA value = -20 }
		command = { type = relation which = ENG value = -20 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = HAB value = -20 }
		command = { type = relation which = HUN value = -20 }
		command = { type = relation which = VEN value = -20 }
	}
}
 
And something like this as the setup event:

Code:
event = {
	id = xxxxx
	trigger = {
		owned = { province = 493 data = -1 }
		exists = KNI
		NOT = { owned = { province = 493 data = KNI }
		OR = {
			religion = catholic
			religion = counterreform
		}
	}
	random = no
	name = "EVENTNAMExxxxx"
	desc = "EVENTHISTxxxxx"
	style = 4

	date = { day = 1 month = january year = 1419 }
	offset = 360
	deathdate = { day = 1 month = january year = 1648 }

	action_a = { 		#Give Jerusalem to the Order of St. John#
		name = "ACTIONNAMExxxxxA"
		command = { type = relation  which = PAP  value = 100 }
		command = { type = badboy value = -3 }
		command = { type = secedeprovince which = KNI value = 493 }
		command = { type = secedeprovince which = KNI value = 492 }
		command = { type = secedeprovince which = KNI value = 491 }
		command = { type = secedeprovince which = KNI value = 485 }
	}
	action_b = { 		#Keep it for ourselves#
		name = "ACTIONNAMExxxxxB"
		command = { type = relation  which = PAP  value = -15 }
	}
}
 
doktarr said:
Do we want a secession event as well? An event for all Catholic nations except KNI before, say, 1648, triggered by ownership of Judea and the Knights existing, which gives the opportunity to secede the province (and Lebanon and Samaria and Aleppo as well) to the Knights in return for a BB reduction and better relations with the Pope.
As it's not historical, I don't see the need for such an event.

The event in post 22 looks good to me.
 
OK, sounds good. I'm not really attached to the secession event. The only reason I put the event in was to allow some nations to "release Jerusalem", like they can now. Even if the event were put in, I would now suggest switching the order of A and B, as this simulates the current setup better.
 
About the "life of Caravaggio", I have coded one event for the Order of St John if the correspondent PAP251051 fires...

Code:
#Genius and dissoluteness  
#by Bordic
event = {
	id = 251051
	trigger = { atwar = no } 
	random = no
	country = PAP
	name = "EVENTNAME251051" #Genius and dissoluteness 
	desc = "EVENTHIST251051"
	#-#
	
	date = { day = 27 month = January year = 1597 }
	offset = 60
	deathdate = { day = 27 month = May year = 1606 } #the day of the assassination

	action_a ={ 
		name = "ACTIONNAME251051A" #Let's hire that Caravaggio
		command = { type = infra value = 100 }
	}
}


#Caravaggio arrives in Malta
#by Bordic
event = {
	id = 201011
	trigger = { 	event = 251051 #PAP: Genius and dissoluteness  
			owned = { province = 819 data = KNI } #Malta
	}
	random = no
	country = KNI
	name = "EVENTNAME201011" #Caravaggio arrives in Malta
	desc = "EVENTHIST251051"
	#-#
	
	date = { day = 10 month = July year = 1607 }
	offset = 360
	deathdate = { day = 10 month = July year = 1608 }

	action_a ={ 
		name = "ACTIONNAME201011A" #Let's award him with the Knighthood
		command = { type = infra value = 75 }
	}
}
EVENTNAME251051;Genius and dissoluteness;;;;;;;;;;
EVENTNAME201011;Caravaggio arrives in Malta;;;;;;;;;;
EVENTHIST251051;Michelangelo Merisi, one of the most extraordinary painters in the history of art, was born in 1571 not far from the village of Caravaggio (near Milan) where his family came from and after which he named himself. In 1592, he moved to the 'Rome of the Popes' with the prospect of large and lucrative commissions. Once there his painting skills attracted the attention of patrons who gave him also food and lodgings. In the beginning, all of Caravaggio's early paintings were relatively small works, still-lifes, genre-scenes and a few occasional religious subjects: it was said he had used a prostitute as the model for some of his depictions of the Virgin Mary. The big chance came in 1597 with the commission of two large paintings for the Contarelli Chapel in San Luigi dei Francesi about St Matthew's life. This commission made him famous as much as his life-style and violent behaviour made him notorious everywhere. His name appeared regularly in the protocols of the Roman police, however he received support and protection by some of the most sophisticated patrons in Rome. But in 1606 his violent temper didn't save him from murdering a person with whom he, unwilling to pay a bet on a real tennis match, got involved in a fierce fight. In hiding himself Caravaggio left Rome and went to Naples where, waiting for the Papal pardon which would allow him to return, he did some paintings. With no answer from Rome, Caravaggio left Naples and in the following year arrived on the island of Malta. In his stay on the island he painted his masterpiece 'the Beheading of St John', for which he was made Knight of the Order of Obedience. Soon his 'tormented nature' led him to quarrel with a noble knight and subsequently to escape from the island. Back to Rome he was imprisoned because of his former killing, however he managed to escape and flee to Sicily and then to Naples where he was badly wounded by two hired killers. In 1610 he decided to leave Naples and set sail to Porto Ercole in the Spanish held State of Presidi, at only 80 km far from Rome waiting for the Papal pardon. But there he was mistakenly captured by the local police and imprisoned for some days. After his release, discovering that his boat had sailed away with all of his poor belongings still on board, he was seen running insanely along the shore until he fell unconscious, caught by a raging fever which brought him to death a few days after. He was only 38 years old...;;;;;;;;;;
ACTIONNAME251051A;Let's hire that Caravaggio;;;;;;;;;;
ACTIONNAME201011A;Let's award him with the Knighthood;;;;;;;;;;

N.B. already posted in Italy thread, this is just its duplicate!
 
Last edited:
Ha, I missed this thread. OK, this events were submitted and included in 1.41. I am pasting them here for future reference.
################################################
################################################
For Spain (AGCEEP_Specific_Spain.eue)

Code:
# The conquest of Bugia and Tripoli (Tunis version)
# by Fodoron
event = { 			
	id = 285120
	trigger = { 
		event = 285117 # SPA The University of Alcalá (Cisneros was in power)
		owned = { province = 734 data = -1 } # Orania
		NOT = {
			event = 285121 # Tripoli version of the event
			war = { country = XHO country = SPA }
			vassal = { country = SPA country = TUN }
			vassal = { country = SPA country = XHO }
			vassal = { country = XHO country = SPA }
			exists =  TRI
		}
	}
	random = no     
	country = SPA
	name = "EVENTNAME285120"
	desc = "EVENTHIST285120"
      
	date = { day = 26 month = november year = 1509 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }
      
	action_a = { # Conquer North Africa
		name = "ACTIONNAME285120A"
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = addcore which = 740 } # Tripolitania
		command = { type = war which = TUN } # Tunis
		command = { type = vassal which = XHO } # Tlemcen
		command = { type = trigger which = 332001 } # XHO The Spaniards are too strong
		command = { type = secedeprovince which = XHO value = 736 } # Aures
		command = { type = secedeprovince which = XHO value = 737 } # Al-Djazaîr
		command = { type = vp value = 50}
	}
	action_b = { # Time to stop
		name = "ACTIONNAME285120B"
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -10 }
		command = { type = vp value = -5}
	}
}
EVENTNAME285120;The conquest of Bugia and Tripoli;;;;;;;;;;
EVENTHIST285120;While Cisneros was received as a hero in Spain, Pedro Navarro was left on command of Oran, and in the next season he attacked Bugia (Béjaïa), in the Eastern side of Tlemcen. Navarro disembarcked 5,000 men and a train of artillery, and after defeating a far more numerous Berber army, conquered the city sacking it. Since it was still early in the season, Navarro decided to attack Tripoli. An army of 14,000 men was prepared. The second Duke of Alba, García de Toledo, son of the conqueror of Navarra, and father of the famous third Duke of Alba, took command of the expedition. The city, the strongest in the campaign, was taken by assault, with over 5,000 casualties between the defenders. Immediately Navarro and Alba went to Djerba with the intention of capturing the island. After landing, they were ambushed in an oasis and 3,000 soldiers and the Duke of Alba were killed. Navarro returned to Tripoli. The Zayyanid sultan of Tlemcen, Abu Abdallah Muhammad VIII, worried by the continuous defeats decided to become a vassal of Spain in 1510.;;;;;;;;;;
ACTIONNAME285120A;Conquer North Africa;;;;;;;;;;
ACTIONNAME285120B;Time to stop;;;;;;;;;;

Code:
# The conquest of Bugia and Tripoli (Tripoli version)
# by Fodoron
event = { 			
	id = 285121
	trigger = { 
		event = 285117 # SPA The University of Alcalá (Cisneros was in power)
		owned = { province = 734 data = -1 } # Orania
		exists =  TRI
		NOT = {
			event = 285120 # Tunis version of the event
			war = { country = XHO country = SPA }
			vassal = { country = SPA country = TRI }
		}
	}
	random = no     
	country = SPA
	name = "EVENTNAME285120"
	desc = "EVENTHIST285120"
      
	date = { day = 26 month = november year = 1509 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }
      
	action_a = { # Conquer North Africa
		name = "ACTIONNAME285120A"
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = addcore which = 740 } # Tripolitania
		command = { type = war which = TRI } # Tripoli
		command = { type = vassal which = XHO } # Tlemcen
		command = { type = trigger which = 332001 } # XHO The Spaniards are too strong
		command = { type = secedeprovince which = XHO value = 736 } # Aures
		command = { type = secedeprovince which = XHO value = 737 } # Al-Djazaîr
		command = { type = vp value = 50}
	}
	action_b = { # Time to stop
		name = "ACTIONNAME285120B"
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -10 }
		command = { type = vp value = -5}
	}
}

Code:
# Carlos generous offer to the Hospitallers (The Knights don't exist)
# by Fodoron
event = { 			
	id = 285123
	trigger = { 
		owned = { province = 819 data = -1 } # Malta
		NOT = { exists =  KNI }
	}
	random = no     
	country = SPA
	name = "EVENTNAME285123"
	desc = "EVENTHIST285123"
      
	date = { year = 1523 }
	offset = 100
	deathdate = { day = 9 month = june year = 1798 }
      
	action_a = { # Give them Malta
		name = "ACTIONNAME285123A"
		command = { type = stability value = 1 }
		command = { type = removecore which = 819 } # Malta
		command = { type = independence which = KNI }
		command = { type = badboy value = -2 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = ALD value = -50 }
	}
	action_b = { # Not our problem
		name = "ACTIONNAME285123B"
		command = { type = fortress which = 819 value = -1 } # Malta is exposed to attacks
	}
}
EVENTNAME285123;Carlos generous offer to the Hospitallers;;;;;;;;;;
EVENTHIST285123;When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, both by Catholic, and Protestant rulers, their income dwindled, their recruits stopped coming. They desperately needed a base, preferibly by reconquering Rhodes, otherwise an island in the Aegean, but nobody helped and Venice opposed them. Europe was at war and there was no place for their neutrality. The emperor Carlos however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lifes defending his shipping lines with Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself, and the defenses were very poor. Then Carlos decided to include Tripoli in the deal as a take it all or leave it all. The Knights opinion on Tripoli was even worse. They did not have the resources to upgrade its defenses. But having no other option, the Chapter General decided in 1527 to accept the offer with the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Spaniards and the Knights of St. John would fight their battles in North Africa together.;;;;;;;;;;
ACTIONNAME285123A;They will defend Malta;;;;;;;;;;
ACTIONNAME285123B;We don't need them;;;;;;;;;;

Code:
# Carlos generous offer to the Hospitallers (donation of Malta)
# by Fodoron
event = { 			
	id = 285124
	trigger = { 
		owned = { province = 819 data = -1 } # Malta
		exists =  KNI
		NOT = {
			war = { country = KNI country = SPA }
			vassal = { country = KNI country = SPA }
			vassal = { country = SPA country = KNI }
		}
	}
	random = no     
	country = SPA
	name = "EVENTNAME285123"
	desc = "EVENTHIST285123"
      
	date = { year = 1523 }
	offset = 100
	deathdate = { day = 9 month = june year = 1798 }
      
	action_a = { # They will defend Malta
		name = "ACTIONNAME285124A"
		command = { type = removecore which = 819 } # Malta
		command = { type = secedeprovince which = KNI value = 819 } # Malta
		command = { type = badboy value = -1 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = vassal which = KNI }
		command = { type = trigger which = 24001 } # KNI offered Malta
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = ALD value = -50 }
	}
	action_b = { # We don't need them
		name = "ACTIONNAME285123B"
		command = { type = fortress which = 819 value = -1 } # Malta is exposed to attacks
	}
}
ACTIONNAME285124A;They will defend Malta;;;;;;;;;;

Code:
# Carlos generous offer to the Hospitallers (donation of Tripoli)
# by Fodoron
event = { 			
	id = 285125
	trigger = { 
		owned = { province = 740 data = -1 } # Tripolitania
		exists =  KNI
		NOT = {
			war = { country = KNI country = SPA }
			core = { province = 819 data = -1 } # Malta should be donated first
		}
	}
	random = no     
	country = SPA
	name = "EVENTNAME285123"
	desc = "EVENTHIST285123"
      
	date = { year = 1523 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }
      
	action_a = { # They will defend Tripoli
		name = "ACTIONNAME285125A"
		command = { type = removecore which = 740 } # Tripolitania
		command = { type = secedeprovince which = KNI value = 740 } # Tripolitania
		command = { type = ADM which = 1 value = 48 }
		command = { type = trigger which = 24003 } # The Order of St. John accepts Tripoli
	}
	action_b = { # We don't need them
		name = "ACTIONNAME285123B"
		command = { type = province_revoltrisk which = 740 value = 48 } # Tripolitania
	}
}
ACTIONNAME285125A;They will defend Tripoli;;;;;;;;;;

Code:
# by Fodoron
# The Order of St. John rejects Malta
event = {
	id = 285126 # triggered by KNI 24001 The Order of St. John is offered Malta
	country = SPA
	name = "EVENTNAME285126"
	desc = "EVENTHIST285126"

	action_a = {
		name = "ACTIONNAME285126A"
		command = { type =addcore which = 819 } # Malta
	}
}
EVENTNAME285126;The Order of St. John rejects Malta;;;;;;;;;;
EVENTHIST285126;Milord, the Hospitallers have kindly rejected our offer of Malta and Tripoli. They believe they might not be able to defend anything other than Rhodes.;;;;;;;;;;
ACTIONNAME285126A;It was worth a try;;;;;;;;;;

Code:
# The great siege of Malta
# by Fodoron
event = { 			
	id = 285127
	trigger = { 
		war = { country = KNI country = TUR }
		NOT = {
			war = { country = KNI country = SPA }
			core = { province = 819 data = -1 } # Malta donated
		}
	}
	random = no     
	country = SPA
	name = "EVENTNAME285127"
	desc = "EVENTHIST285127"
      
	date = { year = 1523 }
	offset = 100
	deathdate = { year = 1640 }
      
	action_a = { # Help the Knights
		name = "ACTIONNAME285127A"
		command = { type = trigger which = 201010 } # KNI Spanish help
		command = { type = trigger which = 285150 } # SPA Tercios del mar
		command = { type = treasury value = -100 }
	}
	action_b = { # They should solve their own problems
		name = "ACTIONNAME285127B"
		command = { type = trigger which = 201011 } # KNI Spain refuses to help
		command = { type = relation which = KNI value = -50 }
	}
}
EVENTNAME285127;The great siege of Malta;;;;;;;;;;
EVENTHIST285127;It was just a matter of time before the Ottomans attacked Malta. In May 1565, a powerful fleet from the Ottomans and their allies the Barbary pirates, arrived to the island and landed an army of 40,000. Against them were 540 knights, 400 Spaniards and 4,000 Maltese. Fort St. Elmo lasted 5 weeks of furious fights until almost all its defenders were killed. By then 600 Spaniards from Sicily had arrived to the city. The fighting continued all summer taking the lives of 5000 defenders with the Turkish loses three times higher, including the famous pirate Dragut. In early September, when the defenders were at their last resistance, help from Spain finally arrived under command of Álvaro de Bazán and García de Toledo. The Turks, low on morale, panicked and abandonned the island.;;;;;;;;;;
ACTIONNAME285127A;Help the Knights;;;;;;;;;;
ACTIONNAME285127B;They should solve their own problems;;;;;;;;;;

Code:
# The fall of Tripoli (to prevent Spain from keeping a core in Tripoli)
# by Fodoron
event = { 			
	id = 285138
	random = no     
	country = SPA
	name = "EVENTNAME285138"
	desc = "EVENTHIST285138"
	date = { day = 14 month = august year = 1551 }
      
	action_a = { # Outrageous
		name = "ACTIONNAME285138A"
		command = { type = removecore which = 740 } # Tripolitania
	}
}
EVENTNAME285138;The fall of Tripoli;;;;;;;;;;
EVENTHIST285138;The Knights Hospitallers took care of the defense of Tripoli after his cession by Carlos for over 20 years. Provissioned by the Viceroy of Sicily and with the help of a Spanish garrison, the Order even considered moving their see there. However in 1551 they were attacked by a huge Ottoman army under command of Sinan Pasha and Dragut. There were very few Knights in Tripoli, and the Spanish soldiers from Calabria refused to fight, and so Tripoli was surrendered almost without fight. In 1560 the Grand Master Jean Parisot de la Valette enticed the Viceroy of Sicily, Juan de la Cerda, Duke of Medinaceli to attempt its recovery, but the expedition, approved by Felipe II, was a complete failure, since Tripoli had been converted into a stronghold by huge Ottoman defensive works under the direction of Dragut.;;;;;;;;;;
ACTIONNAME285138A;Outrageous;;;;;;;;;;

################################################
################################################
For the Knights (AGCEEP_Specific_OrderStJohn.eue)

It does not make any sense that the knights could be offered Malta before 1523. That offer answered to a specific need. The need of Charles to protect the central mediterranean naval routes from the growing power of Barbary coast pirates, but specially from the growing power of the Ottomans that became present once they took over Egypt. To think that the Trastamara would have given Malta to the Knights is a stretch of imagination. They were under a personal agreement with the Maltese not to give them away. When Carlos (a foreigner) decided to give away Malta, the Maltese only agreed because they thought that the Knights could protect them from falling to the Ottomans. I remember some games were Malta rebelled in the 1400s and gave itself to the Knights, who immediately gave away Rhodes to the Ottos and moved there. All very ahistorical. Let’s fix that.

in revolt.txt, change:
Code:
KNI = { #The Knights
	revolt = no
	date = { [color=Yellow]year = 1523[/color] }
	expirydate = { [color=Yellow]year = 1799[/color] }
	minimum = { 819 }
	extra = { }
	capital = 819
	group = latin
	culture = french
	#ai = "crusader.ai"
	ai = "SmallCRC0.ai"
}

1- Eliminate events: 24001, 24003, 24052, 24053, 24054, 24055, 3540

The Knights resurrect as a result of the donation of Malta:
Code:
# by Crook modified by Fodoron
# The Order of St. John accepts Malta (AI only)
event = {
	id = 3540
	trigger = { 
		event = 285123 # SPA Carlos generous offer to the Hospitallers (creation of KNI)
	}
	country = KNI
	name = "EVENTNAME3540" #Spain gives Malta to the Order
	desc = "EVENTHIST285123"
	date = { year = 1520 }
	offset = 100
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME3540A" #Accept Malta and become a vassal
		command = { type = relation which = PAP value = 100 }
		command = { type = removecore which = 481 } #Rhodes
		command = { type = add_countryculture which = maltese }
		command = { type = add_countryculture which = italian }
	}
}
EVENTNAME3540;The Order of St. John accepts Malta;;;;;;;;;;
ACTIONNAME3540A;Back in the game;;;;;;;;;;

The Knights already exist and are offered Malta:
Code:
# by Crook modified by Fodoron
# The Order of St. John is offered Malta
event = {
	id = 24001 #triggered by SPA 285124
	random = no
	country = KNI
	name = "EVENTNAME24001"
	desc = "EVENTHIST285123"

	action_a = {
		name = "ACTIONNAME24001A" # Accept
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = SPA value = 400 }
		command = { type = treasury value = 100 }
		command = { type = stability value = 1 }
		command = { type = removecore which = 481 } # Rhodes
		command = { type = addcore which = 819 } # Malta
		command = { type = add_countryculture which = maltese }
		command = { type = add_countryculture which = italian }
	}
	action_b = {
		name = "ACTIONNAME24001B" # Reject
		command = { type = breakvassal which = SPA }
		command = { type = relation which = SPA value = -50 }
		command = { type = stability value = 3 }
		command = { type = secedeprovince which = SPA value = 819 } # Malta goes back
		command = { type = sleepevent which = 285125 } # SPA Donation of Tripoli
		command = { type = trigger which = 285126 } # SPA The Knights reject Malta
	}
}
EVENTNAME24001;The Order of St. John is offered Malta;;;;;;;;;;
ACTIONNAME24001A;We do accept donations;;;;;;;;;;
ACTIONNAME24001B;It's a worthless rock;;;;;;;;;;

If Knights accept Malta, they have also accepted Tripoli
Code:
# by Crook modified by Fodoron
# The Order of St. John accepts Tripoli
event = {
	id = 24003 # triggered by 285125 SPA
	random = no
	country = KNI
	name = "EVENTNAME24003"
	desc = "EVENTHIST24003"

	action_a = {
		name = "ACTIONNAME24003A" # I can see some fighting ahead
		command = { type = treasury value = -25 }
	}
}
EVENTNAME24003;We take possession of Tripoli;;;;;;;;;;
EVENTHIST24003;Conscious of their duty to Christianity, the Knights Hospitallers took possession of Tripoli from Spain and prepared to defend it.;;;;;;;;;;
ACTIONNAME24003A;I can see some fighting ahead;;;;;;;;;;

I can understand that they would lose the Maltese culture, but why would they lose the core on Malta, or even worse, return it. The king of Spain wanted them to have both, and couldn’t care less about were their see was.
Small changes to this event. Red out
Code:
# by Crook
#Order contemplates a move to Tripoli#
event = {
	id = 24004
	random = no
	trigger = {
		owned = { province = 740 data = -1 }
		owned = { province = 819 data = -1 }
		core = { province = 819 data = -1 }
		continent = europe #always true at this point if no Fantasy Events
		[color=Red]exists = SPA
		NOT = { exists = CAS }[/color]
	}
	country = KNI
	name = "EVENTNAME24004" #Tripoli gamble
	desc = "EVENTHIST24004"

	date = { day = 1 month = january year = 1530 }
	offset = 30
	deathdate = { day = 1 month = january year = 1610 }

	action_a = {
		name = "ACTIONNAME24004A" #It's not worth it
		[color=Red]command = { type = provincetax which = 740 value = -1 } #Tripolitania
		command = { type = relation which = SPA value = 50 }
		command = { type = treasury value = 50 }[/color]
		command = { type = stability value = 1 }
		[color=Red]command = { type = sleepevent which = 24055 } #KNI: Tripoli gamble[/color]
	}
	action_b = {
		name = "ACTIONNAME24004B" #Move to Tripoli
		command = { type = remove_countryculture which = maltese }
		command = { type = capital which = 740 } #Tripolitania
		command = { type = addcore which = 740 } #Tripolitania
		[color=Red]command = { type = removecore which = 819 } #Malta
		command = { type = secedeprovince which = SPA value = 819 } #Malta
		command = { type = relation which = SPA value = -50 }[/color]
		command = { type = relation which = TUR value = -50 }
		command = { type = stability value = -1 }
		command = { type = provincetax which = 740 value = 1 } #Tripolitania
		[color=Red]command = { type = sleepevent which = 24055 } #KNI: Tripoli gamble[/color]
		command = { type = sleepevent which = 24056 } #KNI: Our Garrison in Tripoli
	}
}


Code:
# Spanish help
# by Fodoron
event = { 			
	id = 201010 # triggered by SPA 285127 The great siege of Malta
	random = no     
	country = KNI
	name = "EVENTNAME201010"
	desc = "EVENTHIST285127"
      
	action_a = { # Not too late
		name = "ACTIONNAME201010A"
		command = { type = treasury value = 50 }
		command = { type = INF which = 819 value = 10000 } # Malta
		command = { type = CAV which = 819 value = 4000 } # Malta
		command = { type = ART which = 819 value = 40 } # Malta
		command = { type = galleys which = 819 value = 10 } # Malta
		command = { type = relation which = SPA value = 400 }
	}
}
EVENTNAME201010;Spanish help;;;;;;;;;;
ACTIONNAME201010A;Not too late;;;;;;;;;;

Code:
# Spain refuses to help
# by Fodoron
event = { 			
	id = 201011 # triggered by SPA 285127 The great siege of Malta
	random = no     
	country = KNI
	name = "EVENTNAME201011"
	desc = "EVENTHIST285127"
      
	action_a = { # To hell with them
		name = "ACTIONNAME201011A"
		command = { type = relation which = SPA value = -50 }
		command = { type = breakvassal which = SPA }
	}
}
EVENTNAME201011;Spain refuses to help;;;;;;;;;;
ACTIONNAME201011A;To hell with them;;;;;;;;;;

################################################
################################################
For Province specific (AGCEEP_Global_ProvinceSpec.eue)

Province specific Malta for the knights:
Code:
# The Hospitallers request Malta
# by Fodoron
event = { 			
	id = 338069
	trigger = { 
		OR = { 
			religion = catholic
			religion = counterreform
		}
		NOT = { 
			owned = { province = 819 data = VEN } # Venice loathed the Knights
			exists = KNI
		}
	}
	random = no     
	province = 819 # Malta
	name = "EVENTNAME338069"
	desc = "EVENTHIST338069"
      
	date = { year = 1530 }
	offset = 100
	deathdate = { year = 1700 }
      
	action_a = { # Help the Knights of St. John
		name = "ACTIONNAME338069A"
		command = { type = independence which = KNI }
		command = { type = relation which = PAP value = 50 }
		command = { type = badboy value = -3 }
	}
	action_b = { # Military Orders are a thing of the past
		name = "ACTIONNAME338069B"
		command = { type = vp value = -5 }
	}
}
EVENTNAME338069;The Hospitallers request Malta;;;;;;;;;;
EVENTHIST338069;When the Knights Hospitallers of Jerusalem were expelled from Rhodes in 1523, they wandered homeless in Italy at risk of disappearing, until Charles V offered them the island of Malta as their new home. They moved there in 1530, and defended it until 1798. Milord, as the current owner of Malta, the Grand Master of the Hospitallers is humbly requesting permission to move there to better fight defending the religion.;;;;;;;;;;
ACTIONNAME338069A;Help the Knights of St. John;;;;;;;;;;
ACTIONNAME338069B;Military Orders are a thing of the past;;;;;;;;;;
 
Modified leaders for the Knights of St John (KNI)

Code:
historicalleader = {
	category = admiral
	id = { type = 6 id = 069810 }
	[COLOR=Yellow]name = "A. de Wignacourt" #Alofe de Wignacourt[/COLOR]
	startdate = {
		year = 1584
	}
	deathdate = {
		year = 1600
	}
	rank = 1
	movement = 3
	fire = 3
	shock = 3
	siege = 0
}
historicalleader = {
	id = { type = 6 id = 069811 }
	category = admiral
	[COLOR=Yellow]name = "J. de Chambray" #Jacques de Chambray[/COLOR]
	startdate = {
		year = 1707
	}
	deathdate = {
		year = 1735
	}
	rank = 2
	movement = 3
	fire = 4
	shock = 3
	siege = 0
}
 
YodaMaster said:
Thanks.
For 201001, in any other historic (I mean AGCEEP) capital's move (Rhodes -> Malta, Malta -> Tripolitania), core on former capital and even province are lost...
At this point, KNI should only have one of the three cores, depending where capital is located, not the three. The three removes ensure capital is not in these provinces just because we can't test exact location of a capital. :(

Hmm...so THIS is why I can't keep a core on Rhodes and accept Malta. But this is ridiculous, why should KNI lose the core on Rhodes (or Malta for that matter, if moving the capital elsewhere). What events need to test for the capital anyway? Isn't there a way to use flags to keep track of the capital? And if other countries need to test for it, you can always use a little flavor event or something when the capital moves for the trigger. Also, what happened to event 24004 (in Fodoron's last post above)? Is there a way to move to Tripoli without using the fantasy events?

EDIT: So now I see that the events, I Yoda in the first post was talking about, 24004 and 24055, don't exist anymore, meaning there is no reason for KNI not being able to keep a core on Rhodes. Am I missing them somewhere or is there some other reason to be able to test for the capital?

If not, command = { type = removecore which = 481 } #Rhodes should be deleted in event 24001 A and event 24031 B.
 
Last edited:
tuesday4am said:
Hmm...so THIS is why I can't keep a core on Rhodes and accept Malta. But this is ridiculous, why should KNI lose the core on Rhodes (or Malta for that matter, if moving the capital elsewhere). What events need to test for the capital anyway? Isn't there a way to use flags to keep track of the capital? And if other countries need to test for it, you can always use a little flavor event or something when the capital moves for the trigger. Also, what happened to event 24004 (in Fodoron's last post above)? Is there a way to move to Tripoli without using the fantasy events?

EDIT: So now I see that the events, I Yoda in the first post was talking about, 24004 and 24055, don't exist anymore, meaning there is no reason for KNI not being able to keep a core on Rhodes. Am I missing them somewhere or is there some other reason to be able to test for the capital?

If not, command = { type = removecore which = 481 } #Rhodes should be deleted in event 24001 A and event 24031 B.
I partially agree with you. The situation now is that you can move to Tripoli and keep the core on Malta. I also see no reason why they should lose the core on Malta.

The situation in Rhodes is different. Rhodes was populated by Greeks, and Greeks did not apreciate the Order of Saint John very much because they were Orthodox. Actually they were happier (at least initially) under Ottoman rule, because the Ottomans did not interfere with their religion. Once the Knights are gone from Rhodes, they would not be welcomed there.
 
Fodoron said:
I partially agree with you. The situation now is that you can move to Tripoli and keep the core on Malta. I also see no reason why they should lose the core on Malta.

The situation in Rhodes is different. Rhodes was populated by Greeks, and Greeks did not apreciate the Order of Saint John very much because they were Orthodox. Actually they were happier (at least initially) under Ottoman rule, because the Ottomans did not interfere with their religion. Once the Knights are gone from Rhodes, they would not be welcomed there.

Fodoron, I see you event to allow KNI to move to Tripoli above but I don't see it in my game files. They can move to Lebanon in the fantasy events.

What I meant was that it is impossible to keep the core on Rhodes and accept Malta, even if you don't move the capital to Malta.

Code:
# by Crook modified by Fodoron
# The Order of St. John is offered Malta
event = {
	id = 24001 #triggered by SPA_285124 A
	random = no
	country = KNI
	name = "EVENTNAME24001" #The Order of St. John is offered Malta
	desc = "EVENTHIST285123"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, both by Catholic, and Protestant rulers, their income dwindled, their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but nobody helped and Venice opposed them. Europe was at war and there was no place for their neutrality. The emperor Carlos however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their life defending his shipping lines with Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself, and the defences were very poor. Then Carlos decided to include Tripoli in the deal as a take it all or leave it all. The Knights opinion on Tripoli was even worse. They did not have the resources to upgrade its defences. But having no other option, the Chapter General decided in 1527 to accept the offer with the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Spaniards and the Knights of St. John would fight their battles in North Africa together.

	action_a = {
		name = "ACTIONNAME24001A" #We do accept donations
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = SPA value = 400 }
		command = { type = treasury value = 100 }
		command = { type = stability value = 1 }
		[COLOR=Red]command = { type = removecore which = 481 } #Rhode[/COLOR]s
		command = { type = addcore which = 819 } #Malta
		command = { type = add_countryculture which = maltese }
		command = { type = add_countryculture which = italian }
	}
	action_b = {
		name = "ACTIONNAME24001B" #It's a worthless rock
		command = { type = breakvassal which = SPA }
		command = { type = relation which = SPA value = -50 }
		command = { type = stability value = 3 }
		command = { type = secedeprovince which = SPA value = 819 } #Malta goes back
		command = { type = sleepevent which = 285125 } #Donation of Tripoli #SPA: Carlos generous offer to the Hospitallers
		command = { type = trigger which = 285126 } #SPA: The Order of St. John rejects Malta
	}
}

#Order moves to Malta#
event = {
	id = 24031
	random = no
	country = KNI
	trigger = {
		owned = { province = 819 data = -1 }
		owned = { province = 481 data = -1 }
		exists = TUR
		NOT = {
			OR = {
				#any other greek province (but not Corfu)
				owned = { province = 357 data = -1 } #Thrace
				owned = { province = 358 data = -1 } #Macedonia
				owned = { province = 359 data = -1 } #Hellas
				owned = { province = 360 data = -1 } #Morea
				owned = { province = 464 data = -1 } #Kaffa
				owned = { province = 465 data = -1 } #Kerch
				owned = { province = 475 data = -1 } #Trabzon
				owned = { province = 479 data = -1 } #Ionia
				owned = { province = 480 data = -1 } #Crete
				owned = { province = 484 data = -1 } #Cyprus
				#any other Black Sea or anatolian coastal province
				owned = { province = 321 data = -1 } #Rumelia
				owned = { province = 320 data = -1 } #Dobrudja
				owned = { province = 319 data = -1 } #Bujak
				owned = { province = 296 data = -1 } #Jedisan
				owned = { province = 463 data = -1 } #Crimea
				owned = { province = 466 data = -1 } #Azow
				owned = { province = 469 data = -1 } #Abkhazia
				owned = { province = 470 data = -1 } #Kolkhis
				owned = { province = 1609 data = -1 } #Kastamonu
				owned = { province = 477 data = -1 } #Anatolia
				owned = { province = 478 data = -1 } #Smyrna
				owned = { province = 1610 data = -1 } #Antalya
				owned = { province = 1611 data = -1 } #Taurus
				owned = { province = 483 data = -1 } #Adana
				#any Outremer province
				owned = { province = 485 data = -1 } #Aleppo
				owned = { province = 491 data = -1 } #Lebanon
				owned = { province = 492 data = -1 } #Samaria
				owned = { province = 493 data = -1 } #Judea
			}
		}
	}
	name = "EVENTNAME24031" #Order moves to Malta
	desc = "EVENTHIST24031"
	#-#The island of Malta was offered to the Knights of St John of Jerusalem by the King of Spain, in return for helping to defend the city of Tripoli in Africa.

	date = { day = 1 month = january year = 1419 }
	offset = 2
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME24031A" #Abandon Rhodes
		command = { type = capital which = 819 } #Malta
		command = { type = secedeprovince which = TUR value = 481 } #Rhodes
		command = { type = stability value = 2 }
		command = { type = inf which = 819 value = 3000 } #Malta
		command = { type = removecore which = 481 } #Rhodes
		command = { type = addcore which = 819 } #Malta
		command = { type = add_countryculture which = maltese }
		command = { type = remove_countryculture which = greek }
	}
	action_b = {
		name = "ACTIONNAME24031B" #Just move the capital
		command = { type = capital which = 819 } #Malta
		command = { type = relation which = TUR value = -150 }
		command = { type = stability value = -1 }
		command = { type = addcore which = 819 } #Malta
		command = { type = removecore which = 481 } #Rhodes
	}
	action_c = {
		name = "ACTIONNAME24031C" #Remain on Rhodes
		command = { type = relation which = TUR value = -400 }
	}
}

As you can see, the core is removed twice from Rhodes. What I was saying is the removecore on Rhodes should be removed from the first event when you get Malta, and the core should only be removed in the action A in the second event (which the AI will most likely do). A human player should be able to keep a core on Rhodes if they don't abandon it, and even an AI player should be able to keep a core on its capital if it chooses action C in the second event.

In my initial quote, Yoda said something about the cores being necessary to test for KNI's capital (in conjunction with the continent trigger), but I don't see those events anyway. Even if that's true, it's possible if you go with action C in the second event, the core won't be on the capital anyway. I've been playing fine with the changes I proposed above.
 
tuesday4am said:
Fodoron, I see you event to allow KNI to move to Tripoli above but I don't see it in my game files. They can move to Lebanon in the fantasy events.

It is a bug. I'll have it fixed.

tuesday4am said:
What I meant was that it is impossible to keep the core on Rhodes and accept Malta, even if you don't move the capital to Malta.

Well the situation should be even worse. They should have to decide between Rhodes and Malta and be unable to keep both. They were offered Malta in 1523 after a couple of years of being in Italy, and it took them several years to accept the gift. Obviously that cannot be reproduced for a player but the question is that as long as they keep Rhodes they cannot get Malta because they would not be offered it in the first place.

Option A should be move to Malta and abandon Rhodes, and option B should be remain in Rhodes and do not get Malta.

If the Knights remain in Rhodes they should have no right over Malta, nor get it as a gift.

The Ai is offered Malta if they cease to exist after 1523, but that is not an option for a player obviously.
 
Fodoron said:
It is a bug. I'll have it fixed.



Well the situation should be even worse. They should have to decide between Rhodes and Malta and be unable to keep both. They were offered Malta in 1523 after a couple of years of being in Italy, and it took them several years to accept the gift. Obviously that cannot be reproduced for a player but the question is that as long as they keep Rhodes they cannot get Malta because they would not be offered it in the first place.

Option A should be move to Malta and abandon Rhodes, and option B should be remain in Rhodes and do not get Malta.

If the Knights remain in Rhodes they should have no right over Malta, nor get it as a gift.

The Ai is offered Malta if they cease to exist after 1523, but that is not an option for a player obviously.

OK, I understand your argument that the situation should be worse. However, as it stands, KNI could keep its capital on Rhodes but lose the core on it, which seems strange.

Here is another way of looking at it: if KNI still has Rhodes, would Spain even offer Malta to them? Perhaps they should for historical reasons, but then KNI has to choose between the two.

However, the second event doesn't trigger at all if KNI has expanded. If KNI is powerful and expanding, they shouldn't have to lose the core on Rhodes, especially after excepting the damn Rhodians into the order (perhaps this could be a trigger condition for letting them keep a core on Rhodes). But then again, if they are powerful and expanding, maybe Spain shouldn't even offer Malta to them.

Either way, the events need to be fixed so KNI can keep Rhodes as their capital with a core on it.
 
Removing core of old capital was the only bad solution I found last year to be able to test where capital was moving because we can't check the exact location of a capital and capital location must be checked in some KNI events (see posts in this thread). Be aware it is the case in Alt_Crusader (Fantasy becomes Alternative in 1.43b1 but still used for Fantasy Byzantium as separate scenario) where KNI capital can move to Outremer and won't be located in Rhodes.

Same problem with move to Tripolitania and seceding this province to OE in other event (CTD).

As I said, it was last year... A better solution is to set a flag with each action moving capital and use these flags in triggers. :)
If someone is willing to apply this fix in all involved KNI events...
 
Last edited:
YodaMaster said:
Removing core of old capital was the only bad solution I found last year to be able to test where capital was moving because we can't check the exact location of a capital and capital location must be checked in some KNI events (see posts in this thread). Be aware it is the case in Alt_Crusader (Fantasy becomes Alternative in 1.43b1 but still used for Fantasy Byzantium as separate scenario) where KNI capital can move to Outremer and won't be located in Rhodes.

Same problem with move to Tripolitania and seceding this province to OE in other event (CTD).

As I said, it was last year... A better solution is to set a flag with each action moving capital and use these flags in triggers. :)
If someone is willing to apply this fix in all involved KNI events...


Yoda, answering also your bugfix comment of the possible CTD in the secession of Tripoli, I don't think it is possible.

Only if KNI choses to move to Tripoli do they gain a core on it. The secession event does not take place if KNI has a core on Tripolitania. I checked it in a game in which I was Spain and I conquered Tripolitania for the Knights. A few reloads and they moved the capital there. the secession event never took place. If it happens to a player of the Ottos he will have to live with it or kill the Knights :D
 
I'll fix the problem of keeping the capital in Rhodes and losing the core. I believe is the only problem remaining.
 
Fodoron said:
I'll fix the problem of keeping the capital in Rhodes and losing the core. I believe is the only problem remaining.

There is also the problem of KNI ceding Malta to ENG, and it being its capital. I'm not sure if that's been fixed yet either.
 
tuesday4am said:
There is also the problem of KNI ceding Malta to ENG, and it being its capital. I'm not sure if that's been fixed yet either.
I have suggested this in OE and Asia Minor thread:

Shouldn't we maybe add to both actions of event KNI_24031 a command like this
Code:
command = { type = setflag which = [Valletta] }

to check if/when KNI capital was moved as to avoid future CTD when Malta is ceded by event?

Have a look at KNI_24026! ;)

Code:
#(1802) The Knights Leave Malta
event = {
	id = 24026
	trigger = {
		owned = { province = 819 data = -1 }
		exists = ENG
		countrysize = 2
		NOT = { countrysize = 6 }
		NOT = { event = 24057 }
		[COLOR=Yellow]NOT = { flag = [Valletta] }[/COLOR]
		exists = FRA
		event = 170124 #FRA: The military expedition in Egypt
	}
	random = no
	country = KNI
	name = "EVENTNAME24026" #The Knights Leave Malta
	desc = "EVENTHIST24026"
	#-#

	date = { day = 15 month = june year = 1802 }

	action_a = {
		name = "ACTIONNAME24026A" #Ask for Armistice
		command = { type = relation which = FRA value = -100 }
		command = { type = secedeprovince which = ENG value = 819 } #Malta
	}
	action_b = {
		name = "ACTIONNAME24026B" #Withdraw into Fortress
		command = { type = monarch which = 069540 } #de la Tour du Pin
		command = { type = sleepmonarch which = 069539 } #Giuseppe Caracciolo di Sant Eramo
		command = { type = revolt which = 819 } #Malta
		command = { type = stability value = -3 }
		command = { type = trigger which = 24027 } #FRA: The Knights Stand at Malta
	}
}
That event is the current version with the modification in yellow I have added now!

Other cases of capital moves are in ALT_Crusader file:

KNI_201991 action B capital moved to Lebanon. Hypothetical commands to be added:
Code:
command = { type = setflag which = [Beirut] }
command = { type = clrflag which = [Valletta] }

KNI_201996 action B capital moved to Judea. Hypothetical commands to be added:
Code:
command = { type = setflag which = [Jerusalem] }
command = { type = clrflag which = [Valletta] }

EDIT: and KNI_24004 B where capital can be moved to Tripoli.
Code:
command = { type = setflag which = [Tripoli] }
command = { type = clrflag which = [Valletta] }
 
Is the event ceding Malta to ENG the only event that needs to check the capital of KNI? I haven't figured out exactly why else we would need to test for it, which is why I argued against having the core taken off Rhodes. A flag system would work better, but as you probably already know, other countries won't be able to test the flag.