Scripted trigger
ep3_adventurer_landless_allowed_against_character_trigger
ep3_adventurer_landless_allowed_against_character_trigger = yesgame/common/scripted_triggers/00_laamp_triggers.txt, line 319 (22 lines). No parameters.
ep3_adventurer_landless_allowed_against_character_trigger is a scripted trigger in Crusader Kings III, written at line 319 of its file. It takes no parameters: ep3_adventurer_landless_allowed_against_character_trigger = yes (or no). The game's script calls it in 4 places, among them Adventurer Invasion (casus belli), Adventurer Invasion (casus belli) and Adventurer Invasion (casus belli). Patch 1.20.1.2, from game/common/scripted_triggers/00_laamp_triggers.txt.
What it checks
- Is landed
One of these
- Is played by the AI
or
Sub realm duchy (at least 2):save_temporary_scope_as = player_controlled_duchy
• 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 (22 lines of game script)
ep3_adventurer_landless_allowed_against_character_trigger = {
is_landed = yes
# Players vs. AI filtering.
OR = {
# Can always target the AI.
is_ai = yes
# Cannot target a player unless they completely control at least two duchies.
any_sub_realm_duchy = {
count >= 2
save_temporary_scope_as = player_controlled_duchy
# Custom description to suppress errors.
custom_description = {
text = SUPPRESS
scope:defender = { completely_controls = scope:player_controlled_duchy }
}
}
}
# Scope:defender cannot be liege of attacker.
scope:defender = {
this != scope:attacker.liege
}
}As written in game/common/scripted_triggers/00_laamp_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls ep3_adventurer_landless_allowed_against_character_trigger.
Source: game/common/scripted_triggers/00_laamp_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.