Scripted trigger · The Royal Court files
ep1_is_valid_character_for_inspiration_trigger
ep1_is_valid_character_for_inspiration_trigger = yesgame/common/scripted_triggers/02_ep1_scripted_triggers.txt, line 6 (20 lines). No parameters.
ep1_is_valid_character_for_inspiration_trigger is a scripted trigger in Crusader Kings III, in the The Royal Court files, written at line 6 of its file. It takes no parameters: ep1_is_valid_character_for_inspiration_trigger = yes (or no). The game's script calls it in 8 places, among them Create Books & Tapestries (court task), Create Crowns & Sculptures (court task) and Create Weapons, Armor, & go Adventuring (court task). Patch 1.20.1.2, from game/common/scripted_triggers/02_ep1_scripted_triggers.txt.
What it checks
- Is an Adult
- Is not imprisoned
If
One of these
is_pool_guest = yesor
is_in_pool_at = location
Then
- Traveling family member (exactly 1):
- Does not have “merchant var” (a variable the game's script sets)
• 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 (20 lines of game script)
ep1_is_valid_character_for_inspiration_trigger = {
is_adult = yes
is_imprisoned = no
NOT = { exists = inspiration }
trigger_if = {
limit = {
OR = {
is_pool_guest = yes
is_in_pool_at = location
}
}
# For simplicity, inspired characters travel solo for now.
any_traveling_family_member = {
count = 1
}
# Prevent paiza merchants from becoming inspired
NOT = { has_variable = merchant_var }
}
}As written in game/common/scripted_triggers/02_ep1_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls ep1_is_valid_character_for_inspiration_trigger.
Court position tasks (3)
- Create Books & Tapestries
- Create Crowns & Sculptures
- Create Weapons, Armor, & go Adventuring
On actions (the game's own hooks) (3)
- five_year_playable_pulse
- on_travel_plan_movement
- three_year_playable_pulse
Source: game/common/scripted_triggers/02_ep1_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.