Scripted effect · Roads to Power files
create_landed_ruler_message_effect
create_landed_ruler_message_effect = { FLAVOR_CHAR = … FLAVOR_TITLE = … LANDED = … REASON = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 1843 (37 lines). Parameters: $FLAVOR_CHAR$, $FLAVOR_TITLE$, $LANDED$, $REASON$.
create_landed_ruler_message_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 1843 of its file. A call passes 4 parameters: FLAVOR_CHAR, FLAVOR_TITLE, LANDED and REASON. The game's script calls it in 7 places, among them ep3_interactions_events.0112 (event), The Champion of the … (event ep3_decisions_event.6001) and demand_pastureland_adventurer_interaction_effect (scripted effect). Its body carries 8 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_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)
create_landed_ruler_message_effect = {
hidden_effect = {
$LANDED$ = { save_scope_as = landed }
$FLAVOR_CHAR$ = { save_scope_as = landed_flavor_char }
$FLAVOR_TITLE$ = { save_scope_as = landed_flavor_title }
save_scope_value_as = {
name = landed_creation_reason
value = $REASON$
}
every_player = {
limit = {
NOR = {
this = scope:landed
this = scope:landed_flavor_char
}
top_liege = scope:landed.top_liege
}
send_interface_message = {
type = msg_landless_adventurer_nearby
title = nearby_landed_ruler_created_message_title
left_icon = scope:landed
right_icon = scope:landed_flavor_char
switch = {
trigger = scope:landed_creation_reason
flag:purchased = { custom_tooltip = nearby_landed_ruler_created_message_purchased_tt }
flag:negotiated = { custom_tooltip = nearby_landed_ruler_created_message_negotiated_tt }
flag:seized_pastureland = { custom_tooltip = nearby_landed_ruler_created_message_seized_pastureland_tt }
flag:conquest_supporter = { custom_tooltip = nearby_landed_ruler_created_message_conquest_support_tt }
flag:conquest = { custom_tooltip = nearby_landed_ruler_created_message_conquest_tt }
flag:seize_realm = { custom_tooltip = nearby_landed_ruler_created_message_seize_realm_tt }
flag:culture_champion = { custom_tooltip = nearby_landed_ruler_created_message_culture_champion_tt }
fallback = { custom_tooltip = nearby_landed_ruler_created_message_fallback_tt }
}
}
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_landed_ruler_message_effect.
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.