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
实战内容由 AI 生成,并已对照 vanilla 命令词表校验 —— 请当作起点而非权威依据。上方的定义节才是游戏自带文档原文。
is_amphibious_invasion 常用于在战斗事件或战斗修正器中判断当前战斗是否为两栖登陆作战,从而给进攻方或防守方施加特定的惩罚或奖励效果,适合制作海军陆战队专题 mod 或强化两栖作战机制的 mod。例如,可以在某个战斗修正器中让防守方在面对两栖登陆时获得额外的防御加成:
combat_modifier = {
limit = {
is_defender = yes
is_amphibious_invasion = yes
}
# 例:给予额外的防御修正(通过其他机制触发)
}
[is_attacker](/wiki/trigger/is_attacker) / [is_defender](/wiki/trigger/is_defender):两栖登陆天然区分进攻与防守方,通常需要同时判断角色来精确定向效果。[is_fighting_in_terrain](/wiki/trigger/is_fighting_in_terrain):登陆战往往发生在海滩或特定地形,组合使用可以进一步限定到具体地形类型的两栖作战场景。[night](/wiki/trigger/night):夜间两栖突袭是经典战术场景,两者结合可为夜间登陆战设计专属修正。[has_trait](/wiki/trigger/has_trait):用于判断指挥官是否拥有海军陆战队相关特质,与 is_amphibious_invasion 组合实现特质在登陆战中的条件激活。COMBATANT(战斗方)scope 下使用,新手容易误放在 COUNTRY 或 DIVISION scope 的条件块中导致脚本报错或永远不触发,必须确保已通过战斗事件等方式进入正确的战斗方 scope。yes,普通的河流渡河战斗不会触发此条件,混淆两者会导致逻辑判断失效。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.