- 好友
- 4
- 在线时间
- 0 小时
- 最后登录
- 2024-12-2
见习骑士
- UID
- 3199602
- 第纳尔
- 1162
- 精华
- 0
- 互助
- 36
- 荣誉
- 0
- 贡献
- 1
- 魅力
- 227
- 注册时间
- 2020-9-4
鲜花( 60) 鸡蛋( 0)
|
本帖最后由 奥杜因阿卡托什 于 2024-2-20 08:08 编辑
利用上次在https://bbs.mountblade.com.cn/thread-2103971-1-1.html这个帖子底下说的那种方法整的两个武器特技。一个是按住E键再点攻击能和左手武器一起瞬发攻击对身前敌人全员造成伤害的“双持潜身斩”,另一个是被一定长度重量范围内的近战武器打中能立即盾击的“还击”。演示视频看https://www.bilibili.com/video/B ... id_from=333.999.0.0
双持潜身斩:
- (ti_on_weapon_attack, [
- (key_is_down, key_e),#武器特技键按下
- (store_trigger_param_1, ":attacker_agent_no"),
- (agent_is_human, ":attacker_agent_no"),#是人
- (agent_is_alive, ":attacker_agent_no"),
- (agent_get_horse, ":agent_horse_no", ":attacker_agent_no"),#不是骑兵
- (lt, ":agent_horse_no", 0),
- # (agent_get_wielded_item, ":weapon_no", ":attacker_agent_no", 1),
- # (item_has_property, ":weapon_no", itp_left_hand_weapon),#左手装备左手武器
- (agent_set_animation, ":attacker_agent_no", "anim_undercover_slash"),
- (set_fixed_point_multiplier, 100),
- (agent_get_wielded_item, ":weapon_no", ":attacker_agent_no", 0),#右手武器
- (item_get_weapon_length, ":cur_distance", ":weapon_no"),
- (val_add, ":cur_distance", 10),#增大范围
- (agent_get_position, pos1, ":attacker_agent_no"),
- (try_for_agents, ":agent_no", pos1, ":cur_distance"),
- (agent_get_position, pos2, ":agent_no"),
- (neg|position_is_behind_position, pos1, pos2),#在前方
- (agent_deliver_damage_to_agent, ":attacker_agent_no", ":agent_no", 80, ":weapon_no"),#造成伤害
- (try_end),
- ]),
复制代码 用到的那个动作在anim里是这么写的
- ["undercover_slash", acf_right_cut|acf_enforce_all, amf_accurate_body|amf_play|amf_priority_striked,
- [0.8, "undercover_slash", 0, 64, blend_in_walk|blend_in_continue],
- ],
复制代码 用到的骨骼动画是自己搓的,放在下面。
还击:
- (ti_on_shield_hit, [#反击
- (store_trigger_param, ":defender_agent_no", 1),
- (store_trigger_param, ":attacker_agent_no", 2),
- (store_trigger_param, ":damage_count", 3),
- (store_trigger_param, ":attacker_weapon", 4),
- (le, ":damage_count", 80),#伤害少于80
- (item_get_type, ":type_no", ":attacker_weapon"),
- (this_or_next|eq, ":type_no", itp_type_one_handed_wpn),
- (this_or_next|eq, ":type_no", itp_type_two_handed_wpn),
- (eq, ":type_no", itp_type_polearm), #是近战武器
- (agent_is_human, ":attacker_agent_no"),#攻击者是人
- (agent_is_alive, ":attacker_agent_no"),
- (set_fixed_point_multiplier, 100),
- (item_get_weight, ":value_no", ":attacker_weapon"),
- (le, ":value_no", 200),#进攻武器小于两公斤
- (item_get_weapon_length, ":value_no", ":attacker_weapon"),
- (le, ":value_no", 140),#进攻武器小于140cm
- (agent_set_animation, ":defender_agent_no", "anim_left_hand_counterattack", 1),
- (agent_deliver_damage_to_agent, ":defender_agent_no", ":attacker_agent_no", 40),#造成伤害
- ]),
复制代码 用到anim是
- #左手还击
- ["left_hand_counterattack", acf_left_cut|acf_enforce_all, amf_accurate_body|amf_play|amf_priority_striked,
- [0.7, "defend_shield_parry_all", 12, 30, blend_in_walk|blend_in_continue],
- ],
复制代码 这个倒是就是战团commonRes里的动作。
|
评分
-
查看全部评分
鲜花鸡蛋幼稚园殺手 在2024-2-20 18:37 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 杰喵喵 在2024-2-20 10:49 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下
|