Scripted effect
set_random_informative_text_effect
set_random_informative_text_effect = yesgame/common/scripted_effects/00_scheme_scripted_effects.txt, line 14064 (96 lines). No parameters.
set_random_informative_text_effect is a scripted effect in Crusader Kings III, written at line 14064 of its file. It takes no parameters: set_random_informative_text_effect = yes. The game's script calls it in 3 places, among them A Sultry Study Break (event bp2_adult_education.9200), Eccentric Ideas (event bp2_adult_education.9300) and Reading Companion (event playdate.3006). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
What it does
- 1 of 9 things will happen:
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: Nothing else happens
- 11%: 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 (96 lines of game script)
set_random_informative_text_effect = {
random_list = {
1 = {
#Arabic
trigger = {
OR = {
root.culture = { has_cultural_pillar = heritage_arabic }
root.culture = { has_cultural_pillar = language_arabic }
}
}
save_scope_value_as = {
name = informative_book_title
value = flag:on_the_judgement_of_the_stars
}
}
1 = {
#Arabic
trigger = {
OR = {
scope:culture ?= { has_cultural_pillar = heritage_arabic }
scope:culture ?= { has_cultural_pillar = language_arabic }
}
}
save_scope_value_as = {
name = informative_book_title
value = flag:the_perfect_state
}
}
1 = {
#"Any"
save_scope_value_as = {
name = informative_book_title
value = flag:spiritual_medicine
}
}
1 = {
#Latin
trigger = {
root.capital_province ?= { geographical_region = world_europe }
}
save_scope_value_as = {
name = informative_book_title
value = flag:trotula
}
}
1 = {
#Jewish/Any
save_scope_value_as = {
name = informative_book_title
value = flag:the_improvement_of_the_moral_qualities
}
}
1 = {
#Welsh (Anyone in the British Isles)
trigger = {
root.capital_province ?= { geographical_region = world_europe_west_britannia }
}
save_scope_value_as = {
name = informative_book_title
value = flag:armes_prydein
}
}
1 = {
#Anywhere around the Mediterrenean
trigger = {
root.capital_province ?= {
OR = {
geographical_region = world_europe
geographical_region = world_africa_north_east
geographical_region = world_africa_north_west
}
}
}
save_scope_value_as = {
name = informative_book_title
value = flag:almagest
}
}
1 = {
#Greek
trigger = { root.culture = { has_cultural_pillar = language_greek } }
save_scope_value_as = {
name = informative_book_title
value = flag:anekdota
}
}
1 = {
#Greek
trigger = { root.culture = { has_cultural_pillar = language_greek } }
save_scope_value_as = {
name = informative_book_title
value = flag:chronographia
}
}
}
}As written in game/common/scripted_effects/00_scheme_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_random_informative_text_effect.
Events (3)
- A Sultry Study Break
bp2_adult_education.9200 - Eccentric Ideas
bp2_adult_education.9300 - Reading Companion
playdate.3006
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.