Certainly.
Code:
owned = { province = 254 data = DAN }
owned = { province = 255 data = DAN }
This means that both Svealand and Östlandet needs to be owned, ie. Norway and Sweden have been annexed.
Code:
NOT = { exists = SWE }
NOT = { exists = NOR }
Pretty selfexplainatory, Sweden and Norway must not exist.
Code:
NOT = { core = { province = 254 data = -1 } }
core = { province = 255 data = DAN }
This means that you must not have a claim upon Svealand, but you must on Norway.
And the second event...
Code:
NOT = { event = 291002 }#1 #SWE: The coronation of King Hans
NOT = { event = 291003 } #2 #SWE: The coronation of King Hans
NOT = { exists = SWE }
Events 291002 and 291003 must not have triggered, and Sweden must not exist.
And Johan II's coronation...
Code:
#(1482-1501) The coronation of King Hans -1-
event = {
id = 291002
trigger = {
exists = DAN
event = 159002 #DAN: The coronation of King Hans
NOT = { vassal = { country = DAN country = SWE } }
NOT = { event = 291003 } #SWE: The coronation of King Hans
}
random = no
country = SWE
name = "EVENTNAME291002" #The coronation of King Hans
desc = "EVENTHIST291002"
#-#In may 1482 Hans the son of Christian I and Dorothea of Brandenburg were crowned king of Denmark. According to an old agreement he was to rule both Denmark, Norway and Sweden.
date = { day = 1 month = may year = 1482 }
offset = 570
deathdate = { day = 8 month = august year = 1501 }
action_a = {
name = "ACTIONNAME291002A" #Stall the coronation of Hans
command = { type = stability value = -2 }
command = { type = relation which = DAN value = -50 }
command = { type = relation which = BRA value = -10 }
command = { type = sleepmonarch which = 0131503 } #Hans
command = { type = sleepmonarch which = 0131504 } #Christian II
command = { type = wakemonarch which = 0131509 } #Sten Sture D.Ä.
command = { type = wakemonarch which = 0131510 } #Svante Nilsson (Sture)
command = { type = wakemonarch which = 0131511 } #Sten Sture D.Y.
}
action_b = {
name = "ACTIONNAME291002B" #We will honor the agreement
command = { type = stability value = 1 }
command = { type = domestic which = innovative value = -1 }
command = { type = provincetax which = 257 value = -3 } #Bergslagen
command = { type = relation which = DAN value = 200 }
command = { type = trigger which = 159009 } #DAN: Sweden crowns Hans as their king
command = { type = sleepevent which = 291004 } #DAN: Swedish nobles support Sten Sture D.Ä
command = { type = sleepevent which = 159017 } #DAN: Sweden is stalling
command = { type = wakemonarch which = 0131503 } #Hans
command = { type = wakemonarch which = 0131504 } #Christian II
command = { type = sleepmonarch which = 0131509 } #Sten Sture D.Ä.
command = { type = sleepmonarch which = 0131510 } #Svante Nilsson (Sture)
command = { type = sleepmonarch which = 0131511 } #Sten Sture D.Y.
}
action_c = {
name = "ACTIONNAME291002C" #Never! Sweden shall remain independent
command = { type = stability value = -7 }
command = { type = relation which = DAN value = -100 }
command = { type = relation which = BRA value = -25 }
command = { type = domestic which = aristocracy value = -1 }
command = { type = domestic which = centralization value = 1 }
command = { type = domestic which = serfdom value = -1 }
command = { type = revolt which = 252 } #Småland
command = { type = revolt which = 253 } #Västergötland
command = { type = revolt which = 254 } #Svealand
command = { type = trigger which = 159010 } #DAN: Sten Sture D.Ä. refuses to crown Hans
command = { type = sleepevent which = 159017 } #DAN: Sweden is stalling
command = { type = sleepmonarch which = 0131503 } #Hans
command = { type = sleepmonarch which = 0131504 } #Christian II
command = { type = wakemonarch which = 0131509 } #Sten Sture D.Ä.
command = { type = wakemonarch which = 0131510 } #Svante Nilsson (Sture)
command = { type = wakemonarch which = 0131511 } #Sten Sture D.Y.
}
}
#(1482-1501) The coronation of King Hans -2-
event = {
id = 291003
trigger = {
exists = DAN
event = 159002 #Danish event: The coronation of King Hans.
vassal = { country = DAN country = SWE }
NOT = { event = 291002 } #Swedish event: The coronation of King Hans. #1
}
random = no
country = SWE
name = "EVENTNAME291003" #The coronation of King Hans
desc = "EVENTHIST291003"
#-#In may 1482 Hans the son of Christian I and Dorothea of Brandenburg were crowned king of Denmark. According to an old agreement he was to rule both Denmark, Norway and Sweden.
date = { day = 1 month = may year = 1482 }
offset = 570
deathdate = { day = 8 month = august year = 1501 }
action_a = {
name = "ACTIONNAME291003A" #We will honor the agreement
command = { type = stability value = 1 }
command = { type = domestic which = innovative value = -1 }
command = { type = provincetax which = 257 value = -3 } #Bergslagen
command = { type = relation which = DAN value = 200 }
command = { type = trigger which = 159009 } #DAN: Sweden crowns Hans as their king
command = { type = sleepevent which = 291004 } #DAN: Swedish nobles support Sten Sture D.Ä
command = { type = wakemonarch which = 0131503 } #Hans
command = { type = wakemonarch which = 0131504 } #Christian II
command = { type = sleepmonarch which = 0131509 } #Sten Sture D.Ä.
command = { type = sleepmonarch which = 0131510 } #Svante Nilsson (Sture)
command = { type = sleepmonarch which = 0131511 } #Sten Sture D.Y.
}
action_b = {
name = "ACTIONNAME291003B" #Never! Sweden shall be independent
command = { type = stability value = -7 }
command = { type = breakvassal which = DAN }
command = { type = relation which = DAN value = -200 }
command = { type = relation which = BRA value = -25 }
command = { type = domestic which = aristocracy value = -1 }
command = { type = domestic which = centralization value = 1 }
command = { type = domestic which = serfdom value = -1 }
command = { type = revolt which = 252 } #Småland
command = { type = revolt which = 253 } #Västergötland
command = { type = revolt which = 254 } #Svealand
command = { type = trigger which = 159010 } #DAN: Sten Sture D.Ä. refuses to crown Hans
command = { type = sleepmonarch which = 0131503 } #Hans
command = { type = sleepmonarch which = 0131504 } #Christian II
command = { type = wakemonarch which = 0131509 } #Sten Sture D.Ä.
command = { type = wakemonarch which = 0131510 } #Svante Nilsson (Sture)
command = { type = wakemonarch which = 0131511 } #Sten Sture D.Y.
}
}
And Hans' danish coronation.
Code:
#(1482-1501) The coronation of King Hans
event = {
id = 159002
trigger = {
OR = {
AND = {
exists = NOR
NOT = { event = 159002 } #DAN: Hans claims Norway
}
AND = {
exists = SWE
NOT = { event = 159003 } #DAN: Hans claims Sweden
}
}
}
random = no
country = DAN
name = "EVENTNAME159002" #The coronation of King Hans
desc = "EVENTHIST159002"
#-#In may 1482 Hans the son of Christian I and Dorothea of Brandenburg were crowned king of Denmark. According to an old agreement he was to rule both Denmark, Norway and Sweden.
date = { day = 1 month = may year = 1482 }
offset = 30
deathdate = { day = 8 month = august year = 1501 }
action_a = {
name = "ACTIONNAME159002A" #They will honor the agreement
command = { type = stability value = 1 }
command = { type = domestic which = innovative value = -1 }
}
}