Scripted effect
court_ongoing_fetch_gift_target_outcome_effect
court_ongoing_fetch_gift_target_outcome_effect = { GIFT = … OUTCOME = … }game/common/scripted_effects/00_scheme_scripted_effects.txt, line 15898 (37 lines). Parameters: $GIFT$, $OUTCOME$.
court_ongoing_fetch_gift_target_outcome_effect is a scripted effect in Crusader Kings III, written at line 15898 of its file. A call passes 2 parameters: GIFT and OUTCOME. The game's script calls it in 3 places, among them Romance: A Rare Flower (event court_ongoing.1050), Romance: Glimmering Gold (event court_ongoing.1040) and Romance: The Gray One (event court_ongoing.1022). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (37 lines of game script)
court_ongoing_fetch_gift_target_outcome_effect = {
hidden_effect = {
scope:target = {
if = {
limit = { is_ai = no }
}
save_temporary_scope_value_as = {
name = gift_outcome
value = flag:$OUTCOME$
}
if = {
limit = {
scope:gift_outcome = flag:success
}
send_interface_toast = {
title = court_ongoing.1021.$GIFT$.success
left_icon = scope:owner
court_ongoing_fetch_gift_modifier_effect = { GIFT = $GIFT$ }
}
}
else_if = {
limit = {
scope:gift_outcome = flag:failure
}
send_interface_toast = {
title = court_ongoing.1021.$GIFT$.failure
left_icon = scope:owner
}
}
#Flag clean up
remove_character_flag = court_ongoing_wolf_pelt_flag
remove_character_flag = court_ongoing_necklace_flag
remove_character_flag = court_ongoing_orchid_flag
}
}
}As written in game/common/scripted_effects/00_scheme_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls court_ongoing_fetch_gift_target_outcome_effect.
Events (3)
- Romance: A Rare Flower
court_ongoing.1050 - Romance: Glimmering Gold
court_ongoing.1040 - Romance: The Gray One
court_ongoing.1022
Source: game/common/scripted_effects/00_scheme_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.