fixes big evebts abd on actions plus mroe
This commit is contained in:
parent
c9d520e5a1
commit
bce2aa31a1
207 changed files with 100377 additions and 9296 deletions
|
|
@ -183,44 +183,45 @@ on_combat_end_winner = {
|
|||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = artifact_battles_won_var
|
||||
value = 1
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
set_variable = {
|
||||
name = artifact_battles_won_var
|
||||
value = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
change_variable = {
|
||||
name = artifact_battles_won_var
|
||||
add = 1
|
||||
else = {
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
change_variable = {
|
||||
name = artifact_battles_won_var
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -280,44 +281,45 @@ on_combat_end_winner = {
|
|||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = artifact_battles_won_var
|
||||
value = 1
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
set_variable = {
|
||||
name = artifact_battles_won_var
|
||||
value = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
change_variable = {
|
||||
name = artifact_battles_won_var
|
||||
add = 1
|
||||
else = {
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
change_variable = {
|
||||
name = artifact_battles_won_var
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -431,7 +433,7 @@ on_combat_end_winner = {
|
|||
value = {
|
||||
value = 0
|
||||
add = root.enemy_side.side_max_army_size
|
||||
divide = 100
|
||||
divide = 400
|
||||
min = 5
|
||||
}
|
||||
}
|
||||
|
|
@ -465,7 +467,7 @@ on_combat_end_winner = {
|
|||
value = {
|
||||
value = 0
|
||||
add = root.enemy_side.side_max_army_size
|
||||
divide = 100
|
||||
divide = 400
|
||||
min = 5
|
||||
}
|
||||
}
|
||||
|
|
@ -482,6 +484,20 @@ on_combat_end_winner = {
|
|||
every_side_commander = {
|
||||
commander_trait_leveling_leveling_effect = { XP = 1 }
|
||||
pam_miles_christi_fulfillment_from_combat_effect = yes
|
||||
if = {
|
||||
limit = { can_gain_military_career_merit_trigger = yes }
|
||||
send_interface_message = {
|
||||
type = msg_military_merit_gain
|
||||
title = msg_military_merit_battle_won
|
||||
left_icon = this
|
||||
right_icon = root.enemy_side.side_primary_participant
|
||||
change_merit = military_career_battle_commander_merit_value
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
limit = { can_gain_military_career_merit_trigger = yes }
|
||||
change_merit = military_career_battle_knight_merit_value
|
||||
}
|
||||
|
||||
# Miles Christi holy weapon victories
|
||||
|
|
@ -525,7 +541,7 @@ on_combat_end_winner = {
|
|||
on_combat_end_loser = {
|
||||
events = {
|
||||
combat_event.0002 # Defeated commander loses shot at getting 'The Undefeated' nickname.
|
||||
almohad.0003 # Check whether Ibn Tumert should die
|
||||
# NEOW 2555: event not loaded. almohad.0003 # Check whether Ibn Tumert should die
|
||||
fp1_shieldmaiden.0031 # Track shieldmaiden levelling.
|
||||
combat_event.2111 # Battle Lost: glory goes down.
|
||||
}
|
||||
|
|
@ -696,8 +712,8 @@ on_combat_end_loser = {
|
|||
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 = {
|
||||
|
|
@ -706,42 +722,41 @@ on_combat_end_loser = {
|
|||
}
|
||||
}
|
||||
}
|
||||
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 = disciplinarian
|
||||
}
|
||||
}
|
||||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
add = 50
|
||||
is_acclaimed = yes
|
||||
}
|
||||
}
|
||||
save_scope_as = accolade_knight
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
name = accolade_progress
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_accolade_eligibility
|
||||
title = accolade_disciplinarian_unlock.t
|
||||
left_icon = scope:accolade_knight
|
||||
right_icon = scope:accolade_liege
|
||||
custom_tooltip = accolade_disciplinarian_unlock.tt
|
||||
scope:accolade_knight = {
|
||||
set_variable = {
|
||||
name = disciplinarian_attribute_unlock
|
||||
value = yes
|
||||
root = {
|
||||
random_side_knight = {
|
||||
limit = {
|
||||
can_unlock_accolade_attribute_trigger = {
|
||||
ATTRIBUTE = disciplinarian
|
||||
}
|
||||
}
|
||||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
add = 50
|
||||
is_acclaimed = yes
|
||||
}
|
||||
}
|
||||
save_scope_as = accolade_knight
|
||||
}
|
||||
}
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_accolade_eligibility
|
||||
title = accolade_disciplinarian_unlock.t
|
||||
left_icon = scope:accolade_knight
|
||||
right_icon = scope:accolade_liege
|
||||
custom_tooltip = accolade_disciplinarian_unlock.tt
|
||||
scope:accolade_knight = {
|
||||
set_variable = {
|
||||
name = disciplinarian_attribute_unlock
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue