trigger · is_amphibious_invasion
Definition
- Supported scope:
COMBATANT - Supported target:
none
Description
check if combat is at night
is_amphibious_invasionCOMBATANTnonecheck if combat is at night
Hands-on notes are AI-generated and checked against the vanilla command vocabulary — treat them as a starting point, not authoritative reference. The definition above is the game's own documentation.
is_amphibious_invasion is commonly used in battle events or combat modifiers to determine whether the current battle is an amphibious landing operation, allowing modders to apply specific penalties or bonuses to the attacker or defender. It's ideal for creating navy commando-focused mods or mods that enhance amphibious warfare mechanics. For example, you can grant the defender additional defensive bonuses when facing an amphibious landing in a combat modifier:
combat_modifier = {
limit = {
is_defender = yes
is_amphibious_invasion = yes
}
# Example: Grant additional defensive modifier (triggered through other mechanics)
}
[is_attacker](/wiki/trigger/is_attacker) / [is_defender](/wiki/trigger/is_defender): Amphibious landings naturally distinguish between attacker and defender roles; you typically need to check both conditions simultaneously to precisely target effects.[is_fighting_in_terrain](/wiki/trigger/is_fighting_in_terrain): Landing operations often occur on beaches or specific terrain types; combining these allows you to further narrow down to amphibious scenarios on particular terrain.[night](/wiki/trigger/night): Nocturnal amphibious assaults are classic tactical scenarios; pairing these two creates specialized modifiers for night landings.[has_trait](/wiki/trigger/has_trait): Used to check whether a commander possesses marine-related traits; combining with is_amphibious_invasion enables conditional activation of traits during landing operations.COMBATANT (battle participant) scope. Beginners often mistakenly place it in COUNTRY or DIVISION scope condition blocks, causing script errors or the trigger never firing. Always ensure you've entered the correct combatant scope through battle events or similar mechanisms.yes, and conflating the two will break your logic.