Scripted effect · Tours and Tournaments files
tour_monthly_pulse_effect
tour_monthly_pulse_effect = { ON_ACTION_POOL = … }game/common/scripted_effects/04_dlc_ep2_tour_effects.txt, line 694 (40 lines). Parameters: $ON_ACTION_POOL$.
tour_monthly_pulse_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 694 of its file. A call passes 1 parameter: ON_ACTION_POOL. The game's script calls it in 1 place, among them Grand Tour (activity). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.
What it does
If
scope:host = this
Then
trigger_event = { on_action = $ON_ACTION_POOL$_liege }
Else if
scope:activity.var:stop_host = this
Then
trigger_event = { on_action = $ON_ACTION_POOL$_vassal }
• 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 (40 lines of game script)
tour_monthly_pulse_effect = {
scope:host = {
save_scope_as = visiting_liege
}
scope:activity.var:stop_host = {
save_scope_as = stop_host_scope
}
if = {
limit = {
scope:host = this
NOT = {
scope:activity = { exists = var:just_had_vassal_event }
}
}
set_variable = {
name = just_had_liege_event
value = yes
days = 3
}
trigger_event = {
on_action = $ON_ACTION_POOL$_liege
}
}
else_if = {
limit = {
scope:activity.var:stop_host = this
NOT = {
scope:activity = { exists = var:just_had_liege_event }
}
}
set_variable = {
name = just_had_vassal_event
value = yes
days = 3
}
trigger_event = {
on_action = $ON_ACTION_POOL$_vassal
}
}
}As written in game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tour_monthly_pulse_effect.
Activities (1)
Source: game/common/scripted_effects/04_dlc_ep2_tour_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.