kards-env/assets/cards/example_orders.yaml

148 lines
3.9 KiB
YAML
Raw Normal View History

2025-09-05 17:05:43 +08:00
# Example Order Cards with Parameters
# 带参数的示例指令卡
order_cards:
# 选中一个总部使其hp变为8
- id: "divine_intervention"
name: "Divine Intervention"
type: "order"
cost: 4
nation: "uk"
rarity: 4
description: "Set target HQ's HP to 8"
params:
- name: "target_hq"
type: "target"
target_type: "hq" # 只能选择总部
filter: "any" # 友方或敌方都可以
required: true
description: "Select HQ to set HP to 8"
- name: "new_hp"
type: "value"
min: 1
max: 20
default: 8
required: false
description: "New HP value"
order_effects:
- target: "selected_hq"
action: "set_hp"
value: "selected_value"
# 只能选中英国空军
- id: "raf_scramble"
name: "RAF Scramble"
type: "order"
cost: 2
nation: "uk"
rarity: 2
description: "Give British aircraft +2 attack this turn"
params:
- name: "target_aircraft"
type: "multi_target"
target_type: "unit" # 只能选择单位
filter: "friendly" # 只能选择友方
nation_filter: ["uk"] # 只能选择英国
unit_type_filter: ["fighter", "bomber"] # 只能选择空军
min_count: 1
max_count: 3
required: true
description: "Select up to 3 British aircraft"
order_effects:
- target: "selected_units"
action: "buff_attack"
value: 2
duration: "this_turn"
# 对敌方玩家造成伤害
- id: "propaganda_broadcast"
name: "Propaganda Broadcast"
type: "order"
cost: 1
nation: "germany"
rarity: 2
description: "Enemy player discards 1 card"
params:
- name: "target_player"
type: "target"
target_type: "player" # 选择玩家
filter: "enemy" # 只能选择敌方玩家
required: true
description: "Select enemy player"
order_effects:
- target: "selected_player"
action: "discard_random"
value: 1
# 复杂的多目标选择
- id: "coordinated_strike"
name: "Coordinated Strike"
type: "order"
cost: 5
nation: "usa"
rarity: 4
description: "Select friendly unit and enemy target, friendly unit attacks with +3 damage"
params:
- name: "attacker"
type: "target"
target_type: "unit"
valid_zones: ["O", "F"]
filter: "friendly"
required: true
description: "Select attacking unit"
- name: "defender"
type: "target"
target_type: "unit"
valid_zones: ["E", "F"]
filter: "enemy"
required: true
description: "Select target to attack"
order_effects:
- target: "selected_attacker"
action: "special_attack"
target: "selected_defender"
bonus_damage: 3
# 位置相关的复杂操作
- id: "tactical_deployment"
name: "Tactical Deployment"
type: "order"
cost: 3
nation: "germany"
rarity: 3
description: "Deploy unit from hand to specific position with +1/+1 buff"
params:
- name: "unit_to_deploy"
type: "choice"
choices: [] # 动态生成手牌中的单位选项
required: true
description: "Select unit from hand"
- name: "deploy_position"
type: "position"
valid_zones: ["O"]
must_be_empty: true
required: true
description: "Select deployment position"
- name: "buff_type"
type: "choice"
choices: ["attack", "defense", "both"]
required: true
description: "Select buff type"
order_effects:
- target: "selected_unit"
action: "deploy_from_hand"
position: "selected_position"
- target: "deployed_unit"
action: "buff_stats"
buff_type: "selected_buff"
value: 1