Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions WtWSMS/common/on_action/BP_yearly_on_actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
on_actions = {
delay = { days = { 90 180 } }
subroman_government_1year_events
yearly_checked_events
}
}

Expand All @@ -11,6 +12,12 @@ subroman_government_1year_events = {
}
}

yearly_checked_events = {
events = {
bp_narrative_events.0004
}
}

five_year_playable_pulse = {
on_actions = {
delay = { days = { 180 360 } }
Expand All @@ -28,4 +35,16 @@ subroman_government_5year_events = {
100 = BP_subroman_events.0050 #Changing Values (Clergy)
100 = BP_subroman_events.0060 #Convert to Feudalism
}
}

quarterly_playable_pulse = {
on_actions = {
quarterly_checked_events
}
}

quarterly_checked_events = {
events = {
bp_narrative_events.0003
}
}
194 changes: 191 additions & 3 deletions WtWSMS/events/_BP_events/BP_narrative_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#bp_narrative_events.0001 - Fall of Rome to Barbarians
#bp_narrative_events.0002 - Julius Nepos becomes WRE
#bp_narrative_events.0004 - Theodoric's Invasion of Italy

#Fall of Rome
bp_narrative_events.0001 = { #WTWSMS id: zusk_event.30
Expand Down Expand Up @@ -102,9 +103,9 @@ bp_narrative_events.0001 = { #WTWSMS id: zusk_event.30
#Drop everyone's fervor who's in agreement with the Imperial Church
faith:nicene = {
change_fervor = {
value = -25
desc = loss_of_rome_imperial_church
}
value = -25
desc = loss_of_rome_imperial_church
}
}
religion:christianity_religion = {
every_faith = {
Expand All @@ -123,6 +124,23 @@ bp_narrative_events.0001 = { #WTWSMS id: zusk_event.30
}
}

scripted_trigger nepos_trigger = {
character:175110 = {
has_truce = character:63
has_truce = character:55
has_title = title:e_wre
}
OR = {
title:e_wre = {
is_de_facto_liege_or_above_target = title:c_roma
}
title:e_wre = {
is_de_facto_liege_or_above_target = title:c_ravenna
}
}
NOT = { exists = global_var:nepos_return_italy }
}

#Nepos becomes Western Emperor
bp_narrative_events.0002 = { #WTWSMS id: zusk_event.26
title = bp_narrative_events.0002.name
Expand All @@ -142,3 +160,173 @@ bp_narrative_events.0002 = { #WTWSMS id: zusk_event.26
}
}

# Julius Nepos reconquers Italy
bp_narrative_events.0003 = { #WTWSMS id: historical_wtwsms.3
title = bp_narrative_events.0003.name
desc = {
first_valid = {
triggered_desc = {
trigger = {
has_title = title:e_wre
}
desc = bp_narrative_events.0003.desc.a
}
desc = bp_narrative_events.0003.desc.b
}
}
theme = realm
right_portrait = {
character = character:175110
animation = personality_honorable
}

immediate = {
if = {
limit = { faith = title:e_wre.holder.faith }
play_music_cue = "mx_cue_epic_sacral_moment"
}
else = { play_music_cue = "mx_cue_combat_2" }
title:k_italy.holder = { save_scope_as = king_in_italy }
title:k_ostrogoths.holder = { save_scope_as = king_of_the_ostrogoths }
title:e_wre.holder = { save_scope_as = nepos_restitutor }
}

trigger = {
nepos_trigger = yes
}

option = {
name = bp_narrative_events.0003.a
trigger = {
has_title = title:e_wre
}
add_prestige = 100
if = {
limit = { scope:king_in_italy = { is_vassal_of = scope:nepos_restitutor }}
imprison = {
target = scope:king_in_italy
type = dungeon
}
hidden_effect = {
create_title_and_vassal_change = {
type = revoked
save_scope_as = title_change
add_claim_on_loss = yes
}
scope:king_in_italy = {
every_held_title = {
change_title_holder = {
holder = scope:nepos_restitutor
change = scope:title_change
take_baronies = no
}
}
depose = yes
}
}
destroy_title = title:k_italy
}
if = {
limit = { scope:king_of_the_ostrogoths = { is_vassal_of = scope:nepos_restitutor }}
imprison = {
target = scope:king_of_the_ostrogoths
type = dungeon
}
hidden_effect = {
create_title_and_vassal_change = {
type = revoked
save_scope_as = title_change
add_claim_on_loss = yes
}
scope:king_of_the_ostrogoths = {
every_held_title = {
change_title_holder = {
holder = scope:nepos_restitutor
change = scope:title_change
take_baronies = no
}
}
depose = yes
}
}
destroy_title = title:k_ostrogoths
}
}

option = {
name = bp_narrative_events.0003.b
trigger = {
NOT = {
has_title = title:e_wre
}
}
}
}

bp_narrative_events.0004 = { #WTWSMS id: zusk_event.37
title = bp_narrative_events.0004.name
desc = bp_narrative_events.0004.desc
type = character_event
theme = stewardship_domain_focus
left_portrait = root

trigger = {
current_year >= 490
current_year < 550
NOT = { exists = global_var:ostrogoths_arrived }
exists = fall_of_rome
root = title:e_byzantium.holder
exists = title:k_ostrogoths.holder
}

option = {
name = bp_narrative_events.0004.a
ai_chance = {
base = 90
}
add_gold = -50
custom_tooltip = bp_narrative_events.0004.tooltip
hidden_effect = {
any_ruler = {
limit = {
has_title = title:k_ostrogoths
}
add_gold = 50
trigger_event = { id = bp_narrative_events.0005 days = 25 }
}
set_global_variable = { name = ostrogoths_arrived value = yes }
}
}

option = {
name = bp_narrative_events.0004.b
ai_chance = {
base = 10
}
}
}

bp_narrative_events.0005 = { #WTWSMS id: zusk_event.22
title = bp_narrative_events.0005.name
desc = bp_narrative_events.0005.desc
type = character_event
theme = war
left_portrait = root
right_portrait = title:e_byzantium.holder

option = {
name = bp_narrative_events.0005.a
ai_chance = {
base = 100
}
add_gold = 50
add_pressed_claim = title:e_italy
}

option = {
name = bp_narrative_events.0005.b
ai_chance = {
base = 0
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,19 @@
#Nepos becomes Western Emperor
bp_narrative_events.0002.name:0 "Rome-in-Exile"
bp_narrative_events.0002.desc:0 "While Italia may have fallen, the Eastern Empire still considers us the rightful heir of the imperial throne!"
bp_narrative_events.0002.a:0 "Rome lives another day!"
bp_narrative_events.0002.a:0 "Rome lives another day!"
#Julius Nepos reconquers Italy
bp_narrative_events.0003.name:0 "Victory of Nepos"
bp_narrative_events.0003.desc.a:0 "After having been forced to flee to Dalmatia due to the machinations of the Patrician Orestes who placed his son Romulus Augustulus upon the throne of the Western Roman Empire as his puppet, your victory and return to Italy marks a return to power after a long period in exile. This reconquest is also a change in the turn of events following the fall of Rome, and may indicate that a restitution of the old order and authority of the West is underway. Old holders and claimants of what is rightfully yours have been imprisoned and stripped of their holdings. On the other hand, while you are technically recognised as the legitimate emperor in the West by the Eastern Roman Empire, ambitious vassals and other claimants may exploit your relative weakness in their favour and try to grab the imperial title for themselves. The period of turmoil may not have ended..."
bp_narrative_events.0003.desc.b:0 "After having been forced to flee to Dalmatia due to the machinations of the Patrician Orestes who placed his son Romulus Augustulus upon the throne of the Western Roman Empire as his puppet, the victory of Nepos and his return to Italy marks a return to power after a long period in exile. This reconquest is also a change in the turn of events following the fall of Rome, and may indicate that a restitution of the old order and authority of the West is underway. Old holders and claimants of what the emperor once again holds have been imprisoned and stripped of their holdings. On the other hand, while Julius Nepos is technically recognised as the legitimate emperor in the West by the Eastern Roman Empire, ambitious vassals and other claimants may exploit his relative weakness in their favour and try to grab the imperial title for themselves. The period of turmoil may not have ended..."
bp_narrative_events.0003.a:0 "Rome lives another day!"
bp_narrative_events.0003.b:0 "The future is uncertain."
bp_narrative_events.0004.name:0 "Seek Out Aid"
bp_narrative_events.0004.desc:0 "The City of Rome has fallen to the barbarian hordes, we in the east must find some way to supplant those barbaric invaders from their unjust throne. Perhaps we should contact our old Foedarati the Ostrogoths and see if they are willing to help us?"
bp_narrative_events.0004.a:0 "Pay the Ostrogoths a visit"
bp_narrative_events.0004.b:0 "I can conquer Rome myself!"
bp_narrative_events.0004.tooltip:0 "The Ostrogoths will consider your offer and attack Odoacer"
bp_narrative_events.0005.name:0 "The Eastern Romans Ask For Our Aid"
bp_narrative_events.0005.desc:0 "An emissary from the Byzantines has arrived with carts full of gold, food and weapons. Promising us the full riches of Rome if we were to rally our men against the barbarians that have taken Rome."
bp_narrative_events.0005.a:0 "Sign me up!"
bp_narrative_events.0005.b:0 "I don't feel up to war, have them send it back"