(1, 0, 0, [], [ (neg|eq, "$g_no_ammo_archers", 0), (try_for_agents, ":agent"), (agent_is_alive, ":agent"), (agent_is_human, ":agent"), (agent_get_division,":d",":agent"), (neq,":d",grc_infantry), (neg|agent_is_defender, ":agent"), (agent_get_troop_id, ":agent_troop", ":agent"), (neg|troop_is_guarantee_horse, ":agent_troop"), (troop_is_guarantee_ranged, ":agent_troop"), (try_for_range, ":item_slot", 0, 4), #0到4是装备栏里的4种武器 (agent_get_item_slot, ":item", ":agent", ":item_slot"), (gt, ":item", 0), (item_get_type, ":weapon_type", ":item"), (this_or_next|eq, ":weapon_type", itp_type_bow), #武器类型为弓 (this_or_next|eq, ":weapon_type", itp_type_thrown), #武器类型为投掷 (eq, ":weapon_type", itp_type_crossbow), #武器类型为弩 (agent_get_ammo, ":ammo_num", ":agent",0), #获取agent弹药 (eq,":ammo_num",0), (agent_set_division, ":agent", grc_infantry), (try_end), (try_end), ]) |