Scripted effect · The Royal Court files
change_artifact_book_content_quality_effect
change_artifact_book_content_quality_effect = { AMOUNT = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 2654 (33 lines). Parameters: $AMOUNT$.
change_artifact_book_content_quality_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 2654 of its file. A call passes 1 parameter: AMOUNT. The game's script calls it in 9 places, among them fund_inspiration.6301 (event), Inspiration: Diplomacy Topics (event fund_inspiration.3012) and Inspiration: Intrigue Topics (event fund_inspiration.3015). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
The comment above it in the file
Effect used to influence a book-artifact's content quality
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 (33 lines of game script)
change_artifact_book_content_quality_effect = {
if = {
limit = {
$AMOUNT$ > 0
}
custom_tooltip = change_artifact_book_content_quality_effect_gain
}
else_if = {
limit = {
$AMOUNT$ < 0
}
custom_tooltip = change_artifact_book_content_quality_effect_loss
}
hidden_effect = {
if = {
limit = {
NOT = {
exists = var:book_content_quality
}
}
set_variable = {
name = book_content_quality
value = $AMOUNT$
}
}
else = {
change_variable = {
name = book_content_quality
add = $AMOUNT$
}
}
}
}As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls change_artifact_book_content_quality_effect.
Events (8)
- fund_inspiration.6301
- Inspiration: Diplomacy Topics
fund_inspiration.3012 - Inspiration: Intrigue Topics
fund_inspiration.3015 - Inspiration: Martial Topics
fund_inspiration.3011 - Inspiration: Request for Funds
fund_inspiration.2001 - Inspiration: Scholarly Topics
fund_inspiration.3013
2 more
- Inspiration: Stewardship Topics
fund_inspiration.3014 - Inspiration: Unhappy Stanza
fund_inspiration.6300
Scripted effects inside an event file (1)
- improve_quality_fund_inspiration_2002_scripted_effect
Source: game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.