Scripted effect · Legends of the Dead files
give_legendary_building_heroic_tooltip_effect
give_legendary_building_heroic_tooltip_effect = yesgame/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 2171 (30 lines). No parameters.
give_legendary_building_heroic_tooltip_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 2171 of its file. It takes no parameters: give_legendary_building_heroic_tooltip_effect = yes. The game's script calls it in 1 place, among them Heroic (legend). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
What it does
If
One of these
- You:
or
Their capital province: Does not have a Special Building slotor
Any sub realm barony › Their province: Does not have a Special Building slot
Then
- 50% chance of:
• 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 (30 lines of game script)
give_legendary_building_heroic_tooltip_effect = { #50% chance
# Chance to get legendary building
if = {
limit = {
OR = {
root = {
locale_valid_for_legendary_buildings = yes
}
capital_province = { has_special_building_slot = no }
any_sub_realm_barony = {
title_province = { has_special_building_slot = no }
}
}
}
random = {
chance = {
value = 50
}
give_legendary_building_location_heroic_effect = yes
set_variable = {
name = legendary_reward_location
value = scope:legendary_locale
}
set_variable = {
name = legendary_figure
value = scope:protagonist
}
}
}
}As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_legendary_building_heroic_tooltip_effect.
Legends (1)
- Heroic
Source: game/common/scripted_effects/06_dlc_ce1_legend_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.