Scripted effect · Roads to Power files
ep3_laamp_supporter_invalidated_effect
ep3_laamp_supporter_invalidated_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 1894 (59 lines). No parameters.
ep3_laamp_supporter_invalidated_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 1894 of its file. It takes no parameters: ep3_laamp_supporter_invalidated_effect = yes. The game's script calls it in 7 places, among them Adventurer Invasion (casus belli), Adventurer Invasion (casus belli) and Adventurer Invasion (casus belli). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
If
a check the game hides
Then
- scope:adventurer: … will no longer support you in a Adventurer Invasion
- scope:supporter: You will no longer support … in a Adventurer Invasion
• 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 (59 lines of game script)
ep3_laamp_supporter_invalidated_effect = {
if = {
limit = { exists = var:adventurer_invasion_supporter }
save_scope_as = adventurer
var:adventurer_invasion_supporter ?= { save_scope_as = supporter }
var:adventurer_invasion_target ?= { save_scope_as = war_target }
}
else_if = {
limit = { exists = var:adventurer_invasion_supportee }
var:adventurer_invasion_supportee ?= { save_scope_as = adventurer }
var:adventurer_invasion_target ?= { save_scope_as = target }
save_scope_as = supporter
}
if = {
limit = {
exists = scope:adventurer
exists = scope:supporter
exists = scope:war_target
}
scope:adventurer ?= {
send_interface_message = {
type = event_landless_adventurer_neutral
title = ep3_laamp_sponsor_invalidated_title
left_icon = scope:supporter
right_icon = scope:war_target
remove_variable = adventurer_invasion_supporter
remove_variable = adventurer_invasion_target
custom_tooltip = ep3_laamp_sponsor_invalidated_adventurer
}
}
scope:supporter ?= {
send_interface_message = {
type = event_landless_adventurer_neutral
title = ep3_laamp_sponsor_invalidated_title
left_icon = scope:adventurer
right_icon = scope:war_target
remove_variable = adventurer_invasion_supportee
remove_variable = adventurer_invasion_target
custom_tooltip = ep3_laamp_sponsor_invalidated_supporter
if = {
limit = { exists = var:adventurer_invasion_join_war }
set_variable = {
name = adventurer_invasion_join_war
value = scope:adventurer
years = 5
}
}
if = {
limit = { exists = var:adventurer_invasion_request_soldiers }
set_variable = {
name = adventurer_invasion_request_soldiers
value = scope:adventurer
years = 5
}
}
}
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ep3_laamp_supporter_invalidated_effect.
On actions (the game's own hooks) (3)
- on_death
- on_title_gain
- on_title_lost
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.