fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -417,9 +417,9 @@ combat_event.0005 = {
scope:friendly_commander = {
send_interface_toast = {
title = combat_event.0005.message
set_relation_rival = {
target = root
reason = rival_undefeated_defeated
set_relation_rival_effect = {
TARGET = root
REASON = rival_undefeated_defeated
}
}
}
@ -1095,8 +1095,16 @@ combat_event.1001 = {
scope:combat_winner = {
trigger_event = combat_event.1002
}
scope:combat_loser = {
trigger_event = combat_event.1003
if = {
limit = {
any_in_list = {
list = prisoners_of_war
this != scope:combat_loser
}
}
scope:combat_loser = {
trigger_event = combat_event.1003
}
}
# Send a message to all other players who may be concerned about the fate of the captured prisoners.
every_player = {
@ -1122,8 +1130,8 @@ combat_event.1001 = {
modifier = {
factor = accolade_progress # scales with accolade progress
}
modifier = { # must have an eligible knight
NOT = {
if = {
limit = { # must have an eligible knight
root = {
any_side_knight = {
can_unlock_accolade_attribute_trigger = {
@ -1138,48 +1146,47 @@ combat_event.1001 = {
}
}
}
factor = 0
}
save_scope_as = accolade_liege
set_variable = {
name = accolade_progress
value = 0
}
root = {
random_side_knight = {
limit = {
can_unlock_accolade_attribute_trigger = {
ATTRIBUTE = thug
}
any_killed_character = {
OR = {
is_in_list = slain_combatants
is_in_list = victorious_slain_combatants
save_scope_as = accolade_liege
set_variable = {
name = accolade_progress
value = 0
}
root = {
random_side_knight = {
limit = {
can_unlock_accolade_attribute_trigger = {
ATTRIBUTE = thug
}
any_killed_character = {
OR = {
is_in_list = slain_combatants
is_in_list = victorious_slain_combatants
}
}
}
}
weight = {
base = 1
modifier = {
add = 50
is_acclaimed = yes
weight = {
base = 1
modifier = {
add = 50
is_acclaimed = yes
}
}
save_scope_as = accolade_knight
}
save_scope_as = accolade_knight
}
}
send_interface_message = {
type = msg_accolade_eligibility
title = accolade_thug_unlock.t
left_icon = scope:accolade_knight
right_icon = scope:accolade_liege
custom_tooltip = accolade_thug_unlock.tt
scope:accolade_knight = {
set_variable = {
name = thug_attribute_unlock
value = yes
}
}
send_interface_message = {
type = msg_accolade_eligibility
title = accolade_thug_unlock.t
left_icon = scope:accolade_knight
right_icon = scope:accolade_liege
custom_tooltip = accolade_thug_unlock.tt
scope:accolade_knight = {
set_variable = {
name = thug_attribute_unlock
value = yes
}
}
}
}
}
}

View file

@ -103,9 +103,9 @@ raiding.0002 = { #Less hidden event: I do get a sacking!
name = raiding.0002.a
trigger = {
NOT = { government_has_flag = government_is_nomadic }
root.capital_county = { development_level < 15 } #If you have a certain amount of development, you can't gain anything from this.
root.capital_county = { prosperity_level < 15 } #If you have a certain amount of prosperity, you can't gain anything from this.
OR = {
scope:county = { development_level > 15 } #The county must actually have enough development to be worth sacking.
scope:county = { prosperity_level > 15 } #The county must actually have enough prosperity to be worth sacking.
scope:county.holder = { #Or at least be a non-tribal place.
NOR = {
government_has_flag = government_is_tribal
@ -121,10 +121,10 @@ raiding.0002 = { #Less hidden event: I do get a sacking!
years = 20
}
change_county_control = -10
change_development_progress = major_development_progress_loss #Always deduct progress.
if = { #If they don't have enough progress made, burn a level of development.
limit = { development_towards_level_increase < major_development_progress_gain }
change_development_level = -1
change_prosperity_progress = major_prosperity_progress_loss #Always deduct progress.
if = { #If they don't have enough progress made, burn a level of prosperity.
limit = { prosperity_towards_level_increase < major_prosperity_progress_gain }
change_prosperity_level = -1
}
save_scope_value_as = {
name = sack_status
@ -139,7 +139,7 @@ raiding.0002 = { #Less hidden event: I do get a sacking!
}
}
root.capital_county = {
change_development_progress = medium_development_progress_gain
change_prosperity_progress = medium_prosperity_progress_gain
}
stress_and_fulfillment_impact = {
compassionate = minor_stress_impact_gain
@ -173,10 +173,10 @@ raiding.0002 = { #Less hidden event: I do get a sacking!
years = 20
}
change_county_control = -10
change_development_progress = major_development_progress_loss #Always deduct progress.
if = { #If they don't have enough progress made, burn a level of development.
limit = { development_towards_level_increase < major_development_progress_gain }
change_development_level = -1
change_prosperity_progress = major_prosperity_progress_loss #Always deduct progress.
if = { #If they don't have enough progress made, burn a level of prosperity.
limit = { prosperity_towards_level_increase < major_prosperity_progress_gain }
change_prosperity_level = -1
}
save_scope_value_as = {
name = sack_status
@ -227,13 +227,13 @@ raiding.0002 = { #Less hidden event: I do get a sacking!
}
if = { #If they have enough progress gain to take the hit, then they just lose some progress.
limit = {
development_towards_level_increase > medium_development_progress_loss
prosperity_towards_level_increase > medium_prosperity_progress_loss
}
change_development_progress = medium_development_progress_loss
change_prosperity_progress = medium_prosperity_progress_loss
}
else = { #If they don't, then they lose the progress, and a level of development is burned away.
change_development_progress = medium_development_progress_loss
change_development_level = -1
else = { #If they don't, then they lose the progress, and a level of prosperity is burned away.
change_prosperity_progress = medium_prosperity_progress_loss
change_prosperity_level = -1
}
save_scope_value_as = {
name = sack_status
@ -469,7 +469,7 @@ raiding.0003 = {
trigger = {
top_liege = this
NOT = { scope:sack_status = flag:spared_plundered }
NOT = { government_has_flag = government_is_tribal } #Tribes don't care about development.
NOT = { government_has_flag = government_is_tribal } #Tribes don't care about prosperity.
NOT = { government_has_flag = government_is_nomadic }
OR = {
is_ai = no
@ -622,7 +622,7 @@ raiding.0004 = {
trigger = {
NOR = {
scope:sack_status = flag:spared_plundered
government_has_flag = government_is_tribal #Tribes don't care about development.
government_has_flag = government_is_tribal #Tribes don't care about prosperity.
government_has_flag = government_is_nomadic
}
OR = {
@ -1409,7 +1409,7 @@ raiding.0040 = {
}
5 = {
trigger = {
county = { development_level > 0 }
county = { prosperity_level > 0 }
}
modifier = {
scope:raider.culture ?= { has_innovation = innovation_motte }
@ -1423,7 +1423,7 @@ raiding.0040 = {
left_icon = scope:barony.holder
right_icon = root.army_commander
show_as_tooltip = {
scope:county = { change_development_level = -1 }
scope:county = { change_prosperity_level = -1 }
}
}
}
@ -1434,7 +1434,7 @@ raiding.0040 = {
left_icon = scope:barony.holder
right_icon = root.army_commander
scope:county = { change_development_level = -1 }
scope:county = { change_prosperity_level = -1 }
}
}
}