• 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.
I found the solution, a buffer event was necessary.

Reworked event:
Code:
#(1435-1456) Cilli's rule the Slovenians
event = {
	id = 322029
	trigger = {
		AND = {
			owned = { province = 369 data = -1 } #Steirmark
			control = { province = 369 data = -1 }
		}
		AND = {
			owned = { province = 367 data = -1 } #Krain
			control = { province = 367 data = -1 }
		}
		NOT = { exists = PRM }
		exists = HAB
	}
	random = no
	country = TYR
	name = "EVENTNAME322029" #Let Herman rule the Slovenians
	desc = "EVENTHIST322029"
	#-#

	date = { day = 1 month = december year = 1435 }
	offset = 1
	deathdate = { day = 1 month = january year = 1456 }

	action_a = {
		name = "ACTIONNAME322029A" #Give in to the Emperor's pressure
		command = { type = independence which = PRM }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 322030 } #TYR: Herman rules the Slovenians
	}
	action_b = {
		name = "ACTIONNAME322029B" #Keep Krain
		command = { type = relation which = HAB value = -50 }
		command = { type = stability value = -1 }
		command = { type = remove_countryculture which = slavonic }
	}
}
#-#In 1396 count Hermann II of Cilli was in command of Styrian troops that took part in the Battle of Nicopolis. The Ottoman army won the battle decisively, but the count saved the life of the Hungarian King Sigismund of Luxemburg. A strong bond between the two men, which was further strengthened when Sigismund married Hermann's daughter Barbara, was created. In 1436 the Emperor Sigismund elevated the counts of Cilli to the rank of dukes and granted large lands in Lower Styria to them.

New event:
Code:
#(1435-1456) Cilli's rule the Slovenians
event = {
	id = 322030 #triggered by TYR_322029 A
	random = no
	country = TYR
	name = "EVENTNAME322030" #Herman rules the Slovenians
	desc = "EVENTHIST261003"
	#-#

	action_a = {
		name = "OK"
		command = { type = secedeprovince which = PRM value = 367 } #Krain
		command = { type = trigger which = 261003 } #PRM: Cilli's rule
	}
}
#-#Having first supported the Habsburgs in their war against the counts of Gorizia-Tyrol in 1308. The Cilli family where always amongst the favorites of the Habsburgs. The Cilli family slowly acquired large estates in the adjoining duchies of Styria, Carinthia,and Carniola as well as in the territories of the Hungarian crown in Croatia and Slavonia. Their influence rose and they became one of the most powerful families in the area.


Only thing is Friedrich V will be monarch of Styria. Is it intended?
 
I found the solution, a buffer event was necessary.

Reworked event:
Code:
#(1435-1456) Cilli's rule the Slovenians
event = {
	id = 322029
	trigger = {
		AND = {
			owned = { province = 369 data = -1 } #Steirmark
			control = { province = 369 data = -1 }
		}
		AND = {
			owned = { province = 367 data = -1 } #Krain
			control = { province = 367 data = -1 }
		}
		NOT = { exists = PRM }
		exists = HAB
	}
	random = no
	country = TYR
	name = "EVENTNAME322029" #Let Herman rule the Slovenians
	desc = "EVENTHIST322029"
	#-#

	date = { day = 1 month = december year = 1435 }
	offset = 1
	deathdate = { day = 1 month = january year = 1456 }

	action_a = {
		name = "ACTIONNAME322029A" #Give in to the Emperor's pressure
		command = { type = independence which = PRM }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 322030 } #TYR: Herman rules the Slovenians
	}
	action_b = {
		name = "ACTIONNAME322029B" #Keep Krain
		command = { type = relation which = HAB value = -50 }
		command = { type = stability value = -1 }
		command = { type = remove_countryculture which = slavonic }
	}
}
#-#In 1396 count Hermann II of Cilli was in command of Styrian troops that took part in the Battle of Nicopolis. The Ottoman army won the battle decisively, but the count saved the life of the Hungarian King Sigismund of Luxemburg. A strong bond between the two men, which was further strengthened when Sigismund married Hermann's daughter Barbara, was created. In 1436 the Emperor Sigismund elevated the counts of Cilli to the rank of dukes and granted large lands in Lower Styria to them.

New event:
Code:
#(1435-1456) Cilli's rule the Slovenians
event = {
	id = 322030 #triggered by TYR_322029 A
	random = no
	country = TYR
	name = "EVENTNAME322030" #Herman rules the Slovenians
	desc = "EVENTHIST261003"
	#-#

	action_a = {
		name = "OK"
		command = { type = secedeprovince which = PRM value = 367 } #Krain
		command = { type = trigger which = 261003 } #PRM: Cilli's rule
	}
}
#-#Having first supported the Habsburgs in their war against the counts of Gorizia-Tyrol in 1308. The Cilli family where always amongst the favorites of the Habsburgs. The Cilli family slowly acquired large estates in the adjoining duchies of Styria, Carinthia,and Carniola as well as in the territories of the Hungarian crown in Croatia and Slavonia. Their influence rose and they became one of the most powerful families in the area.


Only thing is Friedrich V will be monarch of Styria. Is it intended?

I do not see why not as that's what happened, the Cilli's ruled as "sub-monarchs" for Friedrich V.

If you think it needs a change, then we have

historicalmonarch = {
id = { type = 6 id = 0111017 }
startdate = {
day = 10
month = june
year = 1424
}
deathdate = {
day = 13
month = october
year = 1435
}
name = "Hermann II von Cilli"
DIP = 8
ADM = 6
MIL = 8
dormant = yes
remark = "Regent for Frederic V"
}

and a new ones will be

historicalmonarch = {
id = { type = 6 id = XXXXXX }
startdate = {
day = 13
month = october
year = 1435
}
deathdate = {
day = 9
month = november
year = 1456
}
name = "Ulrich von Cilli"
DIP = 6
ADM = 4
MIL = 9
dormant = yes
remark = "Regent for Frederic V"
}


historicalmonarch = {
id = { type = 6 id = xxxxxxx }
startdate = {
day = 9
month = november
year = 1456
}
deathdate = {
day = 11
month = may
year = 1490
}
name = "Catherine von Cilli"
DIP = 5
ADM = 3
MIL = 3
dormant = yes
remark = "Regent for Frederic V"
}
 
I made a couple of events for WATKABAOI and thought this ones could be interesting for you. It is about the 8 Turkish Wars of the HRE/Austria. This events are made for the KoG and/or HAB.

############### Turkish Wars ###############

##########################
##### 1. Turkish War #####
##########################

#1st. Turkish War - begin
event = {
id = 301090
trigger = {
exists = GER
ai = yes
}
random = no
country = TUR
name = "1st. Turkish War"
desc = "1st. Turkish War"

date = { day = 1 month = july year = 1526 }
offset = 30
deathdate = { day = 31 month = december year = 1543 }

action_a = {
name = "1st. Turkish War"
command = { type = war which = HUN }
command = { type = war which = VEN }
command = { type = war which = GER }
command = { type = treasury value = 500 } #help for the AI
command = { type = naval value = 30000 }
command = { type = land value = 30000 }
command = { type = trigger which = 366345 }
}
}

event = {
id = 366345

random = no
country = GER
name = "1st. Turkish War"
desc = "King Louis II of Hungary and Bohemia, adoptive child of Emperor Maximilian I., entered into marriage with Mary of Habsburg in 1522. His sister was in turn married with Ferdinand I. The Ottomans saw that growing alliance as a threat to their power in the Balkans and worked to break this alliance. After Suleiman I came to power, the High Porte made the Hungarians at least one and possibly two offers of peace. It is unclear why Louis refused the offer. It is possible that King Louis was well aware of Hungary's situation (especially after the Battle of Chaldiran and Polish-Ottoman peace from 1525) and he believed that war was a better option than peace. Even in peacetime the Ottomans raided Hungarian lands and conquered huge territories (with border castles), but a final battle still offered a glimmer of hope. To such ends, in June 1526, an Ottoman expedition advanced up the Danube River. The forces of the Kingdom of Hungary led by King Louis II were defeated by forces of the Ottoman Empire led by Sultan Suleiman the Magnificent on August 29, 1526 in the Battle of Mohács."
action_a = {
name = "War"
command = { type = treasury value = 500 } #war taxes (Reichstürkenhilfe)
command = { type = relation which = HUN value = 200 }
command = { type = relation which = VEN value = 200 }
}
}

#armistice
event = {
id = 366346
Trigger = {
event = 366345
}

random = no
country = GER
name = "1st. Turkish War - Armistic"
desc = "In 1543, a temporary truce was signed between the Habsburg and Ottoman Empires after Venice lost Dalmatia and its aegean possessions in a separate peace. In 1547 the Habsburg ruler was forced to pay an annual tribute of 30.000 Gulden to the Sultan until 1608. However the tribute was paid very unregular."

date = { day = 1 month = july year = 1543 }
offset = 30
deathdate = { day = 31 month = december year = 1551 }

action_a = {
name = "Rest period"
command = { type = treasury value = -300 }
}
}

#new fights
event = {
id = 301091
Trigger = {
event = 366346
ai = yes
exists = GER
}

random = no
country = TUR
name = "1st. Turkish War"
desc = "1st. Turkish War"

date = { day = 1 month = july year = 1552 }
offset = 30
deathdate = { day = 31 month = december year = 1552 }

action_a = {
name = "1st. Turkish War"
command = { type = war which = HUN }
command = { type = war which = GER }
command = { type = trigger which = 366347 }
}
}

event = {
id = 366347

random = no
country = GER
name = "The 1st. Turkish War continues"
desc = "In 1552, the Ottomans disregarded the peace treaty and attacked Austria and Hungary again."
action_a = {
name = "The war continues..."
command = { type = treasury value = 500 }
command = { type = relation which = HUN value = 200 }
}
}

#end
event = {
id = 366348
Trigger = {
event = 366347
atwar = no
}

random = no
country = GER
name = "The 1st. Turkish War ends"
desc = "In 1555, The First Turkish War found an end with the victory of the Ottomans. The Habsburg ruler was forced to agree with the tripartition of Hungary and his tribute-duty was confirmed."
date = { day = 1 month = july year = 1553 }
offset = 30
deathdate = { day = 31 month = december year = 1555 }

action_a = {
name = "Peace"
command = { type = treasury value = -300 }
command = { type = stability value = 1 }
}
}

##########################
##### 2nd. Turkish War #####
##########################

#2nd. Turkish War - begin
event = {
id = 301092
Trigger = {
event = 366348
ai = yes
exists = GER
}

random = no
country = TUR
name = "2nd. Turkish War"
desc = "2nd. Turkish War"

date = { day = 1 month = january year = 1566 }
offset = 30
deathdate = { day = 31 month = december year = 1566 }

action_a = {
name = "2nd. Turkish War"
command = { type = war which = HUN }
command = { type = war which = GER }
command = { type = trigger which = 366349 }
}
}

#2nd. Turkish War - begin
event = {
id = 366349

random = no
country = GER
name = "2nd. Turkish War"
desc = "On the occasion of an uprising by John II. Sigismund Zápolya, Prince of Transylvania, the Ottoman Empire conducted another major war against the Habsburgs and their Hungarian territories between 1566 and 1568."
action_a = {
name = "War"
command = { type = treasury value = 500 }
command = { type = relation which = HUN value = 200 }
}
}

#2nd. Turkish War - end
event = {
id = 366350
Trigger = {
event = 366349
atwar = no
}

random = no
country = GER
name = "2nd. Turkish War"
desc = "In 1568, The Second Turkish War ended with a stalemate and the pullback of the ottoman forces out of Hungary. In the First Peace of Adrianople, the prewar status-quo was stipulated."
date = { day = 1 month = january year = 1568 }
offset = 30
deathdate = { day = 31 month = december year = 1568 }

action_a = {
name = "Peace"
command = { type = stability value = 1 }
}
}


################################################################
##### 3. Turkish War (The Long War or Thirteen Years' War) #####
################################################################

#3rd. Turkish War - begin
event = {
id = xxx
Trigger = {
event = 366350
ai = yes
exists = GER
}

random = no
country = TUR
name = "3rd. Turkish War"
desc = "3rd. Turkish War"

date = { day = 29 month = july year = 1593 }
offset = 30
deathdate = { day = 31 month = december year = 1593 }

action_a = {
name = "3rd. Turkish War"
command = { type = war which = HUN }
command = { type = war which = GER }
command = { type = trigger which = 366351 }
}
}

event = {
id = 366351

random = no
country = GER
name = "3rd. Turkish War"
desc = "The Third Turkish War started on July 29, 1593 when the Ottoman army under Sinan Pasha launched a military campaign against the Habsburg monarchy, continued with the Battle of Mezokeresztes or Cerestes on October 24-26, 1596, and it ended with the Peace of Žitava on November 11, 1606. The war mostly was fought in Royal Hungary (mostly in present-day southern Slovakia), the Ottoman Empire (mostly in Transdanubia and present-day Croatia) and in present day southern Romania. The last phase of the war (1604 – 1606) corresponds to the uprising of Stephen Bocskay. Participants of the war were the Habsburgs, Transylvania, Wallachia, Moldavia (with the aid of the Holy Roman Empire, Ferrara, Tuscany, Mantua and the Papal State) and the Ottoman Empire."

action_a = {
name = "War"
command = { type = treasury value = 500 }
command = { type = relation which = HUN value = 200 }
}
}

#3rd. Turkish War - end
event = {
id = 366352
Trigger = {
event = 366351
atwar = no
}

random = no
country = GER
name = "3rd. Turkish War"
desc = "The austrian forces managed to wrench another stalemate from the ottoman forces. In the Peace of Zsitvatorok from November 11, 1606 which ended the 3rd Turkish war, the Ottomans recognized the Habsburg ruler as diplomatic equal to the Ottoman sultan and ended the tribute burden of the Habsburgs against a once-and-for-all payment of 200.000 Gulden. The treaty was signed by Sultan Ahmed I and Archduke Matthias of Austria, despite strong opposition on the part of Emperor Rudolf II, Matthias's brother. The Ottomans' inability to penetrate further into Habsburg territory (Royal Hungary) during the Long War was one of their first geopolitical defeats. However, the Treaty stabilized conditions on the Habsburg-Ottoman frontier for half a century for the benefit of both parties."
date = { day = 1 month = january year = 1594 }
offset = 30
deathdate = { day = 31 month = december year = 1606 }

action_a = {
name = "Peace"
command = { type = stability value = 1 }
command = { type = relation which = HUN value = 50 }
}
}


##########################
##### 4th. Turkish War #####
##########################

#4th. Turkish War - begin
event = {
id = 301093
Trigger = {
event = 366353
ai = yes
exists = GER
}

random = no
country = TUR
name = "4th. Turkish War"
desc = "4th. Turkish War"

date = { day = 1 month = january year = 1663 }
offset = 30
deathdate = { day = 31 month = december year = 1663 }

action_a = {
name = "4th. Turkish War"
command = { type = war which = HUN }
command = { type = war which = GER }
command = { type = treasury value = 500 }
command = { type = naval value = 30000 }
command = { type = land value = 30000 }
command = { type = trigger which = 366353 }
}
}

event = {
id = 366353

random = no
country = GER
name = "4th. Turkish War"
desc = "In 1657, Transylvania, the Eastern part of the former Hungarian Kingdom that after 1526 gained semi-independence while paying tribute to the Ottoman Empire, felt strong enough to attack the Tatars (then the Empire's vassals) to the East, and later the Ottoman Empire itself, that came to the Tatar's defence. The war lasted until 1662, ending in defeat for the Hungarians. The Western part of the Hungarian Kingdom (Partium) was annexed and placed under direct Ottoman control, marking the greatest territorial extent of Ottoman rule in the former Hungarian Kingdom. At the same time, there was another campaign against Austria between 1663 and 1664. However, the Turks were defeated in the Battle of Saint Gotthard on 1 August 1664 by Raimondo Montecuccoli, forcing them to enter the Peace of Vasvár with Austria, which held until 1683."
action_a = {
name = "War"
command = { type = treasury value = 500 }
command = { type = relation which = HUN value = 200 }
}
}

#4th. Turkish War - end
event = {
id = 366354
Trigger = {
event = 366353
atwar = no
}

random = no
country = GER
name = "4th. Turkish War"
desc = "The 4thth. Turkish war ended with a decisive austrian victory. The Peace of Vasvár was a treaty between the Austrian Habsburg Monarchy and the Ottoman Empire which followed the Battle of Saint Gotthard of August 1, 1664. It held for about 20 years. At the moment of signing the Habsburg monarchy seemed to be in a better position than the Ottoman Turks military-wise. Instead of maintaining initiative and momentum, negotiations began, fighting stopped and peace was signed because the much more valuable (and Kings personal) estates in the Netherlands, Belgium and the Holy Roman States (of the German Nation) as well as in Italy were threatened by France. This decision caused internal strife and instability in the Monarchy which would eventually culminate with the rebellion of the two Croatian noble families and Hungarian nobles led by Ferenc Rákóczi I against the king of Hungary (also Emperor to the German states in the monarchy)."
date = { day = 10 month = august year = 1664 }
offset = 30
deathdate = { day = 31 month = december year = 1668 }

action_a = {
name = "Peace"
command = { type = stability value = -1 }
command = { type = revoltrisk which = 12 value = 5 }
command = { type = revoltrisk which = 24 value = 5 }
command = { type = relation which = FRA value = -100 }
}
}


##############################################
##### 5th. Turkish War (Great Turkish War) #####
##############################################

#5th. Turkish War - begin
event = {
id = 301094
Trigger = {
event = 366354
ai = yes
exists = GER
}

random = no
country = TUR
name = "5th. Turkish War"
desc = "5th. Turkish War"

date = { day = 1 month = january year = 1683 }
offset = 30
deathdate = { day = 31 month = december year = 1683 }

action_a = {
name = "5th. Turkish War"
command = { type = war which = HUN }
command = { type = war which = GER }
command = { type = war which = POL }
command = { type = war which = LIT }
command = { type = war which = RUS }
command = { type = war which = VEN }
command = { type = trigger which = 366355 }
}
}

event = {
id = 366355

random = no
country = GER
name = "5th. Turkish War"
desc = "The Great Turkish War started in 1683, with a grand invasion force of 140.000 men marching on Vienna, supported by Hungarian noblemen rebelling against Habsburg rule. The Ottoman Empire coordinates its attack again with France that needed this war for the réunion policy of Louis XIV. To stop the invasion, a new Holy League was initiated by Pope Innocent XI and encompassed the Holy Roman Empire (headed by Habsburg Austria), the Venetian Republic and Poland in 1684, joined by Muscovite Russia in 1686. Various German, English and Scottish Protestants served as volunteers in the alliance. Russia's involvement marked the first time the country formally joined an alliance of European powers. This was the beginning of a series of Russo-Turkish Wars, which continued into the 20th century. The second Battle of Mohács was a crushing defeat for the Sultan. After winning the Battle of Vienna, the Holy League gained the upper hand, and conducted the re-conquest of Hungary (Buda and Pest were retaken in 1686, the former under the command of a Swiss-born convert to Islam). At the same time, the Venetians launched an expedition into Greece, which conquered the Peloponnese. During the 1687 Venetian attack on the city of Athens (occupied by the Ottomans), the Ottomans turned the ancient Parthenon into an ammunitions storehouse. A Venetian mortar hit the Parthenon, detonating the Ottoman gunpowder stored inside and partially destroying it. Following the decisive Battle of Zenta in 1697 and lesser skirmishes (such as the battle of Podhajce in 1698), the League won the war in 1699 and forced the Ottoman Empire to sign the Treaty of Karlowitz."

action_a = {
name = "War"
command = { type = treasury value = 500 }
command = { type = relation which = HUN value = 200 }
command = { type = relation which = POL value = 200 }
command = { type = relation which = LIT value = 200 }
command = { type = relation which = RUS value = 200 }
command = { type = relation which = VEN value = 200 }
command = { type = relation which = FRA value = -100 }
}
}

#5th. Turkish war - end
event = {
id = 366356
Trigger = {
event = 366355
atwar = no
}

random = no
country = GER
name = "5th. Turkish War"
desc = "Following some decisive battles and lesser skirmishes, the Holy League won the 5th. Turkish War. Following a two-month congress between the Ottoman Empire on one side and the Holy League, a treaty was signed on 26 January 1699. The Ottomans ceded most of those territories to the Habsburg Monarchy, which were conquered from Hungary after 1526, while Podolia was returned to Poland. Most of Dalmatia passed to Venice, along with the Morea (the Peloponnesus peninsula), which the Ottomans reconquered in 1715 and regained in the Treaty of Passarowitz of 1718. The Treaty of Karlowitz marked the beginning of the Ottoman decline, and made the Habsburg Monarchy the dominant power in Central Europe."
date = { day = 26 month = january year = 1684 }
offset = 30
deathdate = { day = 31 month = december year = 1699 }

action_a = {
name = "Peace"
command = { type = stability value = 1 }
}
}


##########################
##### 6th. Turkish War #####
##########################

#6th. Turkish War - begin
event = {
id = 301095
Trigger = {
event = 366356
ai = yes
exists = GER
}

random = no
country = TUR
name = "6th. Turkish War"
desc = "6th. Turkish War"

date = { day = 1 month = june year = 1714 }
offset = 30
deathdate = { day = 31 month = december year = 1714 }

action_a = {
name = "6th. Turkish War"
command = { type = war which = VEN }
}
}

event = {
id = 301096
Trigger = {
event = 301095
ai = yes
}

random = no
country = TUR
name = "6th. Turkish War"
desc = "6th. Turkish War"

date = { day = 1 month = june year = 1716 }
offset = 30
deathdate = { day = 31 month = december year = 1716 }

action_a = {
name = "6th. Turkish War"
command = { type = war which = GER }
command = { type = trigger which = 366357 }
}
}

event = {
id = 366357

random = no
country = GER
name = "6th. Turkish War"
desc = "Another war between the Ottoman Empire and Venice started in 1714 when the Ottoman Empire tried to revise the treaty of Karlowitz (1699). Austria joined the war in 1716 and conquered the remaining areas of the former Hungarian Kingdom. The war ended with the Treaty of Passarowitz in 1718."
action_a = {
name = "War"
command = { type = treasury value = 500 }
command = { type = relation which = VEN value = 200 }
}
}

#6th. Turkish War - end
event = {
id = 366358
Trigger = {
event = 366357
atwar = no
}

random = no
country = GER
name = "6th. Turkish War"
desc = "The Treaty of Passarowitz or Treaty of Požarevac was the peace treaty signed in Požarevac (German: Passarowitz), a town in modern Serbia, on 21 July 1718 between the Ottoman Empire on one side and the Habsburg Monarchy of Austria and the Republic of Venice on the other. During the years 1714-1718, the Ottomans had been successful against Venice in Greece and Crete, but had been defeated at Petrovaradin (1716) by the Austrian troops of Prince Eugene of Savoy. The treaty reflected the military situation. The Ottoman Empire lost the Banat of Temeswar, over a half of the territory of Serbia (from Belgrade to south of Kruševac), a tiny strip of northern Bosnia and Lesser Walachia (Oltenia) to Austria. Venice lost its possessions on the Peloponnesus peninsula and on Crete, gained by the Treaty of Karlowitz, retaining only the Ionian Islands, cities of Preveza and Arta and Dalmatia. Austria had in 1718 its maximal territorial dimension. Northern Bosnia, Serbia including Belgrade and Lesser Walachia were regained by Ottoman Empire in 1739 by the Treaty of Belgrade."
date = { day = 21 month = july year = 1717 }
offset = 30
deathdate = { day = 31 month = december year = 1718 }

action_a = {
name = "Peace"
command = { type = stability value = 1 }
}
}

##########################
##### 7th. Turkish War #####
##########################

#7th. Turkish War - begin
event = {
id = 271016
Trigger = {
event = 366358
ai = yes
exists = GER
}

random = no
country = RUS
name = "7th. Turkish War"
desc = "7th. Turkish War"

date = { day = 21 month = july year = 1735 }
offset = 30
deathdate = { day = 31 month = december year = 1735 }

action_a = {
name = "OK"
command = { type = war which = TUR }
}
}

event = {
id = 366359
Trigger = {
event = 366358
}

random = no
country = GER
name = "7th. Turkish War"
desc = "Russo–Turkish War of 1735–1739, was a war between Russia and the Ottoman Empire, caused by intensified contradictions over the results of the War of the Polish Succession of 1733–1735 and endless raids by the Crimean Tatars. The war also represented Russia's continuing struggle for the access to the Black Sea. Austria had been Russia's ally since 1726 and entered in July 1737 the war against Ottoman Empire."

date = { day = 21 month = july year = 1736 }
offset = 30
deathdate = { day = 31 month = december year = 1736 }

action_a = {
name = "Attack"
command = { type = treasury value = 500 }
command = { type = war which = TUR }
command = { type = relation which = RUS value = 200 }
}
}

#7th. Turkish war - end
event = {
id = 366360
Trigger = {
event = 366359
atwar = no
}

random = no
country = GER
name = "7th. Turkish War"
desc = "The austrian forces were defeated a number of times in summer and autumn 1737. In August 1737, Russia, Austria and Ottoman Empire began negotiations in Nemirov, which would turn out to be fruitless. There were no significant military operations in 1738. The Russian Army had to leave Ochakov and Kinburn due to the plague outbreak. In 1739, the Münnich army crossed the Dnieper, defeated the Turks at Stavuchany and occupied the fortress of Khotin (August 19) and Iasi. However, Austria was defeated by the Turks once again and signed the separate Belgrade Peace Treaty with the Ottoman Empire on August 21. With the Treaty of Belgrade, the Habsburgs ceded Northern Serbia with Belgrade to the Ottomans, and Oltenia, gained by the Treaty of Passarowitz in 1718, to Wallachia (an Ottoman subject), and set the demarcation line to the rivers Sava and Danube. The Habsburg withdrawal, coupled with the imminent threat of the Swedish invasion, forced Russia to sign the Treaty of Nissa with Turkey on September 18, which ended the war and allowed Russia to build a port at Azov, gaining a foothold on the Black Sea."
date = { day = 18 month = september year = 1739 }
offset = 30
deathdate = { day = 31 month = december year = 1739 }

action_a = {
name = "Peace"
command = { type = stability value = 1 }
command = { type = relation which = RUS value = -50 }
}
}

##########################
##### 8th. Turkish War #####
##########################

#8th. Turkish War - begin
event = {
id = 301097
Trigger = {
event = 366360
ai = yes
exists = GER
}

random = no
country = TUR
name = "8th. Turkish War"
desc = "8th. Turkish War"

date = { day = 13 month = august year = 1787 }
offset = 30
deathdate = { day = 31 month = december year = 1787 }

action_a = {
name = "8th. Turkish War"
command = { type = war which = RUS }
command = { type = war which = GER }
command = { type = naval value = 50000 }
command = { type = land value = 50000 }
command = { type = trigger which = 366361 }
}
}

event = {
id = 366361

random = no
country = GER
name = "8th. Turkish War"
desc = "Austria and Russia planned to break up the Ottoman Empire. Serbia, Bosnia and Herzegowina should fall to Austria. Bessarabia, Wallachia and Moldova should be united in one state. Russia should have free hand in the other territories of the Ottomans for its plans to reestablish the Byzantine Empire. Sultan Abdülhamid I. had knowledge of this plans and attacked Russia on August 13, 1787. Austria joined this war on February 9, 1788."
action_a = {
name = "War"
command = { type = treasury value = 500 }
command = { type = relation which = RUS value = 200 }
}
}

#8th. Turkish War - end
event = {
id = 366362
Trigger = {
event = 366361
atwar = no
}

random = no
country = GER
name = "8th. Turkish War"
desc = "The Treaty of Reichenbach was signed on July 27, 1790 in Reichenbach (present-day Dzierzoniów) between Frederick William II of Prussia (who was allied with the Ottomans) and Austria under Holy Roman Emperor Leopold II. The two countries tried to settle their differences, specifically Leopold attempted to be conciliatory toward Prussia, as Austria and Russia had recently made gains against the Ottoman Empire. Based on the terms of the treaty, Austria agreed to restore all conquered territories to the Ottoman Empire. The Prussian statesman, Count Ewald Friedrich of Hertzberg, managed to insert a clause whereby Austria would be able to make small acquisitions of Ottoman territory. However, Austria must first receive permission from the Sublime Porte and must also allow Prussia to acquire an equivalent amount of Ottoman territory. Even though Austria had to relinquish its conquered territories to the Ottoman Empire, it was allowed to retain its garrison in Chotin. Moreover, the accord guaranteed protection of the Bosnian frontier. In return for these concessions, Prussia made herself responsible for several stipulated compensations. In another aspect of the treaty, Austria was not allowed to overtly or covertly support Russia in its campaigns against the Sublime Porte. Austria withdrew from the war with the Treaty of Sistova (August 4, 1791). This two Treaties ended the Ottoman-Habsburg wars. Russia ended the war on January 9, 1792 successful."
date = { day = 4 month = august year = 1788 }
offset = 30
deathdate = { day = 31 month = december year = 1790 }

action_a = {
name = "Peace"
command = { type = stability value = 1 }
command = { type = relation which = RUS value = -75 }
}
}
 
Last edited:
We don't force wars for AI. Ottoman Empire has nothing to gain from such forced wars, especially as aggressor while Germany is player controlled.

Better drive Turks to war with cores or cb but Germany will be very powerful and I doubt they will engage.
 
I actually think the sequence has merit, granted there needs some changes, like, replace GER with HAB, lower relation numbers of 200 to 50. ( 200 is 50% of total relation numbers)

The war command IMO can be justified only in the respect of "major" states. it will need testing to seem the trend that these "forced" wars have on the game.
 
I'm still convinced this is a gift to a player controlled Germany, especially with defensive wars. If the player wants to dow OE, there is really no need of such sequence even for fantasy. Something that could be interesting is Austria forming Germany (or maybe formed corresponding circle) and simulation of the historical conflict with OE the same way it is for Austria currently (struggle for Hungary and in the Balkans). In other words plausible events the same way I did long ago for Italy.
 
I'm still convinced this is a gift to a player controlled Germany, especially with defensive wars. If the player wants to dow OE, there is really no need of such sequence even for fantasy. Something that could be interesting is Austria forming Germany (or maybe formed corresponding circle) and simulation of the historical conflict with OE the same way it is for Austria currently (struggle for Hungary and in the Balkans). In other words plausible events the same way I did long ago for Italy.

we can add a trigger to see if the HAB and TUR are neighbours
 
Yes but it won't change the primary problem of forced wars between player as Germany (or Austria in you proposal) and AI OE. There is no need of them, especially late ones with a far more superior land tech for European countries.
 
Yes but it won't change the primary problem of forced wars between player as Germany (or Austria in you proposal) and AI OE. There is no need of them, especially late ones with a far more superior land tech for European countries.

I agree somewhat, but the reason wars do not happen after 1700 is that the army levels between the major powers are too great, example, by 1780 SPA is 48, FRA 44, ENG 40, Prussia 41, POR 40, HAB 46 , the numbers are too far apart.
 
The Hungarian Civil War event chain is broken. Playing as Austria, it's impossible to win the Hungarian Civil War when Hungary goes Nationalist. How do I know this? I conquered every territory that belonged to Hungary, got 100% peace, demanded everything that they owned except the capital, and ten days later - boom, Wladislaw has won!

If you read the actual code for the event, it's sort of confusing. Perhaps it needs a bit of simplification?
 
Maybe you're right but don't make peace... you forced Wladislaw' victory because Hungary was in peace and without any remaining internal problem.

Do you have a savefile just before the peace? It could be interesting to see what happens in this case for debug purpose.
 
Is this the concerned event?
Code:
#(1442-1460) Nationalist victory (if Hungary took Nationalist side)
event = {
	id = 188094
	trigger = {
		flag = [Wladyslaw]
		OR = {
			AND = {
				owned = { province = 325 data = -1 } #Magyar
				control = { province = 325 data = -1 }
			}
			NOT = {
				owned = { province = 325 data = -1 } #Magyar
			}
		}
		OR = {
			AND = {
				owned = { province = 316 data = -1 } #Carpathia
				control = { province = 316 data = -1 }
			}
			AND = {
				owned = { province = 353 data = -1 } #Pest
				control = { province = 353 data = -1 }
			}
			NOT = {
				AND = {
					owned = { province = 316 data = -1 } #Carpathia
					owned = { province = 353 data = -1 } #Pest
				}
			}
		}
		OR = {
			AND = {
				owned = { province = 316 data = -1 } #Odenburg
				control = { province = 316 data = -1 }
			}
			AND = {
				owned = { province = 326 data = -1 } #Presburg
				control = { province = 326 data = -1 }
			}
			NOT = {
				AND = {
					owned = { province = 316 data = -1 } #Odenburg
					owned = { province = 326 data = -1 } #Presburg
				}
			}
		}
	}
	random = no
	country = HUN
	name = "EVENTNAME188093" #Victory of the supporters of Wladyslaw
	desc = "EVENTHIST188093"
	#-#

	date = { day = 1 month = december year = 1442 }
	offset = 30
	deathdate = { day = 9 month = march year = 1460 }

	action_a = {
		name = "ACTIONNAME188094A" #Victory is ours
		command = { type = province_revoltrisk which = 316 value = -10 } #Carpathia
		command = { type = province_revoltrisk which = 325 value = -10 } #Magyar
		command = { type = province_revoltrisk which = 326 value = -10 } #Presburg
		command = { type = province_revoltrisk which = 352 value = -10 } #Odenburg
		command = { type = province_revoltrisk which = 353 value = -10 } #Pest
		command = { type = province_revoltrisk which = 367 value = -14 } #Krain
		command = { type = stability value = 2 }
		command = { type = clrflag which = [Wladyslaw] }
		command = { type = trigger which = 277021 } #SER: Nationalist victory in Hungary
	}
}
#-#Since most of Hungary has been captured by Wladyslaw's supporters, support for Ladislaus Postumus is fading and Ulászló is commonly acknowledged as rightful King.




Maybe we should add some additional triggers like:
- not at war (maybe, only against HAB ?)
- not vassal of HAB / test that some key provinces are not part of Austria.
What about?


Fine tuning with this event is also compulsory: should we rework HAB ownership of some key provinces?

Code:
#(1440-1460) Loyalist victory (if Hungary took Nationalist side)
event = {
	id = 188092
	trigger = {
		flag = [Wladyslaw]
		OR = {
			owned = { province = 325 data = HAB } #Magyar
			owned = { province = 326 data = HAB } #Presburg
			owned = { province = 324 data = HAB } #Maros
			AND = {
				owned = { province = 325 data = -1 } #Magyar
				control = { province = 325 data = REB }
			}
			AND = {
				owned = { province = 326 data = -1 } #Presburg
				control = { province = 326 data = REB }
			}
			AND = {
				owned = { province = 324 data = -1 } #Maros
				control = { province = 324 data = REB }
			}
			NOT = {
				AND = {
					owned = { province = 325 data = -1 } #Magyar
					owned = { province = 326 data = -1 } #Presburg
					owned = { province = 324 data = -1 } #Maros
				}
			}
		}
		OR = {
			owned = { province = 316 data = HAB } #Carpathia
			owned = { province = 353 data = HAB } #Pest
			AND = {
				owned = { province = 316 data = -1 } #Carpathia
				control = { province = 316 data = REB }
			}
			AND = {
				owned = { province = 353 data = -1 } #Pest
				control = { province = 353 data = REB }
			}
			NOT = {
				AND = {
					owned = { province = 316 data = -1 } #Carpathia
					owned = { province = 353 data = -1 } #Pest
				}
			}
		}
		OR = {
			owned = { province = 352 data = HAB } #Odenburg
			owned = { province = 317 data = HAB } #Ruthenia
			owned = { province = 354 data = HAB } #Banat
			AND = {
				owned = { province = 352 data = -1 } #Odenburg
				control = { province = 352 data = REB }
			}
			AND = {
				owned = { province = 317 data = -1 } #Ruthenia
				control = { province = 317 data = REB }
			}
			AND = {
				owned = { province = 354 data = -1 } #Banat
				control = { province = 354 data = REB }
			}
			NOT = {
				AND = {
					owned = { province = 352 data = -1 } #Odenburg
					owned = { province = 317 data = -1 } #Ruthenia
					owned = { province = 354 data = -1 } #Banat
				}
			}
		}
		NOT = { war = { country = HUN country = HAB } } #War needs to be over, otherwise there could be weird consequences
	}
	random = no
	country = HUN
	name = "EVENTNAME188091" #Victory of the supporters of Ladislaus Postumus
	desc = "EVENTHIST188091"
	#-#

	date = { day = 9 month = march year = 1440 }
	offset = 10
	deathdate = { day = 9 month = march year = 1460 }

	action_a = {
		name = "ACTIONNAME188092A" #Accept Ladislaus
		command = { type = vp value = -150 }
		command = { type = breakvassal which = POL }
		command = { type = relation which = HAB value = 100 }
		command = { type = wakemonarch which = 061008 } #Elizabeth of Luxemburg °
		command = { type = wakemonarch which = 061009 } #Ulrich of Cilli (Regent) °
		command = { type = sleepmonarch which = 061003 } #Ulászló I
		command = { type = sleepmonarch which = 061004 } #Interregnum
		command = { type = sleepmonarch which = 061005 } #General-Captains of Hungary (Regency)
		command = { type = trigger which = 258108 } #POL: The Hungarian throne
		command = { type = province_revoltrisk which = 316 value = -10 } #Carpathia
		command = { type = province_revoltrisk which = 325 value = -10 } #Magyar
		command = { type = province_revoltrisk which = 326 value = -10 } #Presburg
		command = { type = province_revoltrisk which = 352 value = -10 } #Odenburg
		command = { type = province_revoltrisk which = 353 value = -10 } #Pest
		command = { type = province_revoltrisk which = 367 value = -14 } #Krain
		command = { type = stability value = 2 }
		command = { type = clrflag which = [Wladyslaw] }
		command = { type = trigger which = 277020 } #SER: Loyalist victory in Hungary
	}
}

#-#Since most of Hungary has been captured by the Habsburgs and their Hungarian supporters, support for King Ulászló and Janos Hunyadi is fading and Ladislaus Postumus is commonly acknowledged as rightful King.


EDIT: looking at both events it seems that the first event fired before the latter one in van Helsing's game because of lack of triggers testing HAB involvement in the war, thus letting the first event fire when the game situation was to be tested by the latter event in order to fire rightfully in time.
 
Last edited:
I am not sure for HAB owned provinces if being tested as single or in couple and also about HUN and HAB being at war.

What about new triggers? There is also a bugfix: Odenburg is 352 and not 316.
Code:
#(1442-1460) Nationalist victory (if Hungary took Nationalist side)
event = {
	id = 188094
	trigger = {
		flag = [Wladyslaw]
		OR = {
			AND = {
				owned = { province = 325 data = -1 } #Magyar
				control = { province = 325 data = -1 }
			}
			NOT = {
				owned = { province = 325 data = -1 } #Magyar
			}
			[COLOR=Yellow]NOT = {
				owned = { province = 325 data = HAB } #Magyar
			}[/COLOR]
		}
		OR = {
			AND = {
				owned = { province = 316 data = -1 } #Carpathia
				control = { province = 316 data = -1 }
			}
			AND = {
				owned = { province = 353 data = -1 } #Pest
				control = { province = 353 data = -1 }
			}
			NOT = {
				AND = {
					owned = { province = 316 data = -1 } #Carpathia
					owned = { province = 353 data = -1 } #Pest
				}
			}
			[COLOR=Yellow]NOT = {
				owned = { province = 316 data = HAB } #Carpathia
			}
			NOT = {
				owned = { province = 353 data = HAB } #Pest
			}[/COLOR]
		}
		OR = {
			AND = {
				owned = { province = [COLOR=Red]316[/COLOR][COLOR=Yellow]352[/COLOR] data = -1 } #Odenburg
				control = { province = [COLOR=Red]316[/COLOR][COLOR=Yellow]352[/COLOR] data = -1 }
			}
			AND = {
				owned = { province = 326 data = -1 } #Presburg
				control = { province = 326 data = -1 }
			}
			NOT = {
				AND = {
					owned = { province = [COLOR=Red]316[/COLOR][COLOR=Yellow]352[/COLOR] data = -1 } #Odenburg
					owned = { province = 326 data = -1 } #Presburg
				}
			}
			[COLOR=Yellow]NOT = {
				owned = { province = 352 data = HAB } #Odenburg
			}
			NOT = {
				owned = { province = 353 data = HAB } #Pest
			}[/COLOR]
		}
		[COLOR=Yellow]NOT = { 
			vassal = { country = HAB country = HUN } 
		} [/COLOR]
	}
	random = no
	country = HUN
	name = "EVENTNAME188093" #Victory of the supporters of Wladyslaw
	desc = "EVENTHIST188093"
	#-#

	date = { day = 1 month = december year = 1442 }
	offset = 30
	deathdate = { day = 9 month = march year = 1460 }

	action_a = {
		name = "ACTIONNAME188094A" #Victory is ours
		command = { type = province_revoltrisk which = 316 value = -10 } #Carpathia
		command = { type = province_revoltrisk which = 325 value = -10 } #Magyar
		command = { type = province_revoltrisk which = 326 value = -10 } #Presburg
		command = { type = province_revoltrisk which = 352 value = -10 } #Odenburg
		command = { type = province_revoltrisk which = 353 value = -10 } #Pest
		command = { type = province_revoltrisk which = 367 value = -14 } #Krain
		command = { type = stability value = 2 }
		command = { type = clrflag which = [Wladyslaw] }
		command = { type = trigger which = 277021 } #SER: Nationalist victory in Hungary
	}
}
#-#Since most of Hungary has been captured by Wladyslaw's supporters, support for Ladislaus Postumus is fading and Ulászló is commonly acknowledged as rightful King.

And that is the opposite event. One of them should however fire in any case. Is there any risk that neither of them would fire? That means perpetual province RR.
Code:
#(1440-1460) Loyalist victory (if Hungary took Nationalist side)
event = {
	id = 188092
	trigger = {
		flag = [Wladyslaw]
		OR = {
			owned = { province = 325 data = HAB } #Magyar
			owned = { province = 326 data = HAB } #Presburg
			owned = { province = 324 data = HAB } #Maros
			AND = {
				owned = { province = 325 data = -1 } #Magyar
				control = { province = 325 data = REB }
			}
			AND = {
				owned = { province = 326 data = -1 } #Presburg
				control = { province = 326 data = REB }
			}
			AND = {
				owned = { province = 324 data = -1 } #Maros
				control = { province = 324 data = REB }
			}
			NOT = {
				AND = {
					owned = { province = 325 data = -1 } #Magyar
					owned = { province = 326 data = -1 } #Presburg
					owned = { province = 324 data = -1 } #Maros
				}
			}
		}
		OR = {
			owned = { province = 316 data = HAB } #Carpathia
			owned = { province = 353 data = HAB } #Pest
			AND = {
				owned = { province = 316 data = -1 } #Carpathia
				control = { province = 316 data = REB }
			}
			AND = {
				owned = { province = 353 data = -1 } #Pest
				control = { province = 353 data = REB }
			}
			NOT = {
				AND = {
					owned = { province = 316 data = -1 } #Carpathia
					owned = { province = 353 data = -1 } #Pest
				}
			}
		}
		OR = {
			owned = { province = 352 data = HAB } #Odenburg
			owned = { province = 317 data = HAB } #Ruthenia
			owned = { province = 354 data = HAB } #Banat
			AND = {
				owned = { province = 352 data = -1 } #Odenburg
				control = { province = 352 data = REB }
			}
			AND = {
				owned = { province = 317 data = -1 } #Ruthenia
				control = { province = 317 data = REB }
			}
			AND = {
				owned = { province = 354 data = -1 } #Banat
				control = { province = 354 data = REB }
			}
			NOT = {
				AND = {
					owned = { province = 352 data = -1 } #Odenburg
					owned = { province = 317 data = -1 } #Ruthenia
					owned = { province = 354 data = -1 } #Banat
				}
			}
		}
		NOT = { war = { country = HUN country = HAB } } #War needs to be over, otherwise there could be weird consequences
	}
	random = no
	country = HUN
	name = "EVENTNAME188091" #Victory of the supporters of Ladislaus Postumus
	desc = "EVENTHIST188091"
	#-#

	date = { day = 9 month = march year = 1440 }
	offset = 10
	deathdate = { day = 9 month = march year = 1460 }

	action_a = {
		name = "ACTIONNAME188092A" #Accept Ladislaus
		command = { type = vp value = -150 }
		command = { type = breakvassal which = POL }
		command = { type = relation which = HAB value = 100 }
		command = { type = wakemonarch which = 061008 } #Elizabeth of Luxemburg °
		command = { type = wakemonarch which = 061009 } #Ulrich of Cilli (Regent) °
		command = { type = sleepmonarch which = 061003 } #Ulászló I
		command = { type = sleepmonarch which = 061004 } #Interregnum
		command = { type = sleepmonarch which = 061005 } #General-Captains of Hungary (Regency)
		command = { type = trigger which = 258108 } #POL: The Hungarian throne
		command = { type = province_revoltrisk which = 316 value = -10 } #Carpathia
		command = { type = province_revoltrisk which = 325 value = -10 } #Magyar
		command = { type = province_revoltrisk which = 326 value = -10 } #Presburg
		command = { type = province_revoltrisk which = 352 value = -10 } #Odenburg
		command = { type = province_revoltrisk which = 353 value = -10 } #Pest
		command = { type = province_revoltrisk which = 367 value = -14 } #Krain
		command = { type = stability value = 2 }
		command = { type = clrflag which = [Wladyslaw] }
		command = { type = trigger which = 277020 } #SER: Loyalist victory in Hungary
	}
}

#-#Since most of Hungary has been captured by the Habsburgs and their Hungarian supporters, support for King Ulászló and Janos Hunyadi is fading and Ladislaus Postumus is commonly acknowledged as rightful King.