Scripted effect · Tours and Tournaments files
tournament_contest_rewards_split_prize_money_with_liege_effect
tournament_contest_rewards_split_prize_money_with_liege_effect = { AMOUNT = … }game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4214 (58 lines). Parameters: $AMOUNT$.
tournament_contest_rewards_split_prize_money_with_liege_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4214 of its file. A call passes 1 parameter: AMOUNT. The game's script calls it in 4 places, among them tournament_second_gold_rewards_effect (scripted effect), tournament_team_winner_gold_rewards_effect (scripted effect) and tournament_third_gold_rewards_effect (scripted effect). Its body carries 4 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
What it does
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (58 lines of game script)
tournament_contest_rewards_split_prize_money_with_liege_effect = {
if = {
limit = { tournament_is_knightly_entourage_character_trigger = yes }
# Grab scopes for loc.
save_scope_as = winner
liege = { save_scope_as = winner_liege }
# If they love you, they give you all the cash.
if = {
limit = {
opinion = {
target = scope:winner_liege
value >= very_high_positive_opinion
}
}
custom_tooltip = tournament_landless_knight_liege_rewards.tt.tournament_gold.knight_loves_liege
pay_short_term_gold = {
target = scope:winner_liege
gold = $AMOUNT$
}
}
# If they like you, they give you most of it.
else_if = {
limit = {
opinion = {
target = scope:winner_liege
value >= medium_positive_opinion
}
}
custom_tooltip = tournament_landless_knight_liege_rewards.tt.tournament_gold.knight_likes_liege
pay_short_term_gold = {
target = scope:winner_liege
gold = {
value = $AMOUNT$
multiply = 0.75
}
}
}
# If they're neutral to dislike, they split it 50:50.
else_if = {
limit = {
opinion = {
target = scope:winner_liege
value >= high_negative_opinion
}
}
custom_tooltip = tournament_landless_knight_liege_rewards.tt.tournament_gold.knight_accepts_liege
pay_short_term_gold = {
target = scope:winner_liege
gold = {
value = $AMOUNT$
multiply = 0.5
}
}
}
# If they _really_ hate you, they refuse to give anything.
else = { custom_tooltip = tournament_landless_knight_liege_rewards.tt.tournament_gold.knight_hates_liege }
}
}As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tournament_contest_rewards_split_prize_money_with_liege_effect.
Source: game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.