Scripted effect · The Royal Court files
fund_inspiration_effect
fund_inspiration_effect = yesgame/common/scripted_effects/00_ep1_inspiration_effects.txt, line 2 (62 lines). No parameters.
fund_inspiration_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 2 of its file. It takes no parameters: fund_inspiration_effect = yes. The game's script calls it in 20 places, among them Sponsor Inspiration (interaction), fund_inspiration.0001 (event) and fund_inspiration.0012 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_effects.txt.
What it does
scope:recipient:If
NOT = { is_courtier_of = scope:actor }
Then
If
- Any traveling family member:
Then
- … and … family:
- Where:
scope:actor:add_courtier = prev
scope:actor:add_courtier = scope:recipient
- Opinion: Grateful (+40)
scope:actor:sponsor_inspiration = scope:recipient.inspiration
• 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 (62 lines of game script)
fund_inspiration_effect = {
scope:recipient = {
if = {
limit = {
NOT = { is_courtier_of = scope:actor }
}
if = {
limit = {
any_traveling_family_member = {
can_any_traveling_family_members_travel_trigger = yes
}
}
every_traveling_family_member = {
custom = fund_inspiration_interaction_reqruit_family_tooltip
limit = {
can_any_traveling_family_members_travel_trigger = yes
}
scope:actor = {
add_courtier = prev
}
}
}
scope:actor = {
add_courtier = scope:recipient
}
}
add_opinion = {
target = scope:actor
modifier = grateful_opinion
opinion = 40
}
}
scope:actor = {
sponsor_inspiration = scope:recipient.inspiration
}
if = {
limit = {
scope:actor = {
is_ai = no
}
NOT = {
exists = global_var:ep1_07_achievement_inspiration_count_tracker
}
}
set_global_variable = {
name = ep1_07_achievement_inspiration_count_tracker
value = 1
}
}
else_if = {
limit = {
scope:actor = {
is_ai = no
}
exists = global_var:ep1_07_achievement_inspiration_count_tracker
}
change_global_variable = {
name = ep1_07_achievement_inspiration_count_tracker
add = 1
}
}
}As written in game/common/scripted_effects/00_ep1_inspiration_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls fund_inspiration_effect.
Character interactions (1)
Events (19)
- fund_inspiration.0001
- fund_inspiration.0012
- fund_inspiration.0022
- fund_inspiration.0032
- fund_inspiration.0042
- fund_inspiration.0052
13 more
- fund_inspiration.0062
- fund_inspiration.0072
- fund_inspiration.0082
- fund_inspiration.0092
- Inspiration Funded
fund_inspiration.0021 - Inspiration Funded
fund_inspiration.0031 - Inspiration Funded
fund_inspiration.0051 - Inspiration Funded
fund_inspiration.0061 - Inspiration Funded
fund_inspiration.0071 - Inspiration Funded
fund_inspiration.0081 - Inspiration Funded
fund_inspiration.5011 - Power of the Written Word
fp3_scholarship.8600 - The Lure of Gold
fp3_scholarship.8500
Source: game/common/scripted_effects/00_ep1_inspiration_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.