Scripted effect
set_random_entertainment_text_effect
set_random_entertainment_text_effect = yesgame/common/scripted_effects/00_scheme_scripted_effects.txt, line 13924 (139 lines). No parameters.
set_random_entertainment_text_effect is a scripted effect in Crusader Kings III, written at line 13924 of its file. It takes no parameters: set_random_entertainment_text_effect = yes. The game's script calls it in 3 places, among them Court Jester: A Good Story (event jester.1000), The … of … (event bp3_journey.2200) and Ways of Torture (event feast_events_klank.1001). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
What it does
- 1 of 11 things will happen:
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
• 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 (120 lines of game script)
set_random_entertainment_text_effect = {
random_list = {
1 = {
#Germanic language
trigger = {
root.culture = {
OR = {
has_cultural_pillar = language_central_germanic
has_cultural_pillar = language_norse
has_cultural_pillar = language_anglic
}
}
}
save_scope_value_as = {
name = entertainment_book_title
value = flag:beowulf
}
}
1 = {
#Germanic language
trigger = {
root.culture = {
OR = {
has_cultural_pillar = language_central_germanic
has_cultural_pillar = language_norse
has_cultural_pillar = language_anglic
}
}
}
save_scope_value_as = {
name = entertainment_book_title
value = flag:niebelungenlied
}
}
1 = {
#Latin
trigger = { root.culture = { has_cultural_pillar = language_italian } }
save_scope_value_as = {
name = entertainment_book_title
value = flag:song_of_roland
}
}
1 = {
#Welsh saga
trigger = {
OR = {
root.culture = { has_cultural_pillar = language_brythonic }
root.culture = { has_cultural_pillar = language_goidelic }
}
}
save_scope_value_as = {
name = entertainment_book_title
value = flag:mabinogi
}
}
1 = {
#Not in Jerusalem
trigger = {
NOR = {
AND = {
exists = root.capital_province
root.capital_province = { geographical_region = world_middle_east }
}
root.culture = { has_cultural_pillar = language_israelite }
}
}
save_scope_value_as = {
name = entertainment_book_title
value = flag:travels_to_jerusalem
}
}
1 = {
# Not in India
trigger = {
trigger_if = {
limit = {
exists = root.capital_province
}
NOT = {
root.capital_province = { geographical_region = world_india }
}
}
}
save_scope_value_as = {
name = entertainment_book_title
value = flag:east_of_indus
}
}
1 = {
#Not in Byzantium
trigger = {
NOR = {
root.culture = {
OR = {
has_cultural_pillar = heritage_byzantine
has_cultural_pillar = heritage_caucasian
}
}
has_title = title:e_byzantium
}
}
save_scope_value_as = {
name = entertainment_book_title
value = flag:travels_to_byzantium
}
}
1 = {
#Greek
trigger = { root.culture = { has_cultural_pillar = language_greek } }
save_scope_value_as = {
name = entertainment_book_title
value = flag:digenes_akrites
}
}
1 = {
#Greek
trigger = { root.culture = { has_cultural_pillar = language_greek } }
save_scope_value_as = {
name = entertainment_book_title
value = flag:epigramsAs written in game/common/scripted_effects/00_scheme_scripted_effects.txt.
The first 120 of its 139 lines; the rest is in game/common/scripted_effects/00_scheme_scripted_effects.txt from line 13924.
Where it is used
Every place in common/, events/ and history/ that calls set_random_entertainment_text_effect.
Events (3)
- Court Jester: A Good Story
jester.1000 - The … of …
bp3_journey.2200 - Ways of Torture
feast_events_klank.1001
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.