- 好友
- 6
- 在线时间
- 0 小时
- 最后登录
- 2024-11-13
骑士
- UID
- 3398051
- 第纳尔
- 1841
- 精华
- 0
- 互助
- 48
- 荣誉
- 5
- 贡献
- 10
- 魅力
- 341
- 注册时间
- 2022-8-13
鲜花( 57) 鸡蛋( 0)
|
发表于 2023-8-1 20:30:27
|
显示全部楼层
本帖最后由 ggfgfgf 于 2023-8-2 10:42 编辑
没事,尽管问看16楼
(ti_on_agent_hit, 0, 0, [],
[
(store_trigger_param_1, ":agent"),
(store_trigger_param_3, ":damage"),
(get_player_agent_no, ":player"),
(store_skill_level, ":player_ski","skl_ironflesh", ":player"),
(val_sub, ":damage", ":player_ski"),
(val_mul, ":player_ski", -10),
(val_add, ":player_ski", 100),
(val_mul, ":damage", ":player_ski"),
(val_div, ":damage", 100),
(try_begin),
(neq|agent_is_human, ":agent"),
(agent_get_horse,":horse",":player"),
(gt,":horse",0),
(eq, ":agent", ":horse"),
(set_trigger_result, ":damage"),
(else_try),
(eq, ":agent", ":player"),
(set_trigger_result, ":damage"),
(try_end),
])
包括玩家减伤和坐骑减伤
中文注释
(ti_on_agent_hit, 0, 0, [],#人物被击打
[
(store_trigger_param_1, ":agent"),#获取被攻击者存为agent
(store_trigger_param_3, ":damage"),#获取伤害存为damage
(get_player_agent_no, ":player"),#获取玩家战场编号存为player
(store_skill_level, ":player_ski","skl_ironflesh", ":player"),#获取玩家铁骨值,变量直接写兵种名就行
(val_sub, ":damage", ":player_ski"),
(val_mul, ":player_ski", -10),
(val_add, ":player_ski", 100),
(val_mul, ":damage", ":player_ski"),
(val_div, ":damage", 100),#提前计算返回值
(try_begin),
(neq|agent_is_human, ":agent"),#被攻击者不是人类
(agent_get_horse,":horse",":player"),#获取玩家坐骑
(gt,":horse",0), #玩家有坐骑(编号大于0)
(eq, ":agent", ":horse"), #如果被攻击者为玩家坐骑(编号一样)
(set_trigger_result, ":damage"),#设置返回值
(else_try),
(eq, ":agent", ":player"),#如果被攻击者为玩家(编号一样)
(set_trigger_result, ":damage"),#设置返回值
(try_end),
])
|
鲜花鸡蛋红刀 在2023-8-1 20:48 送朵鲜花 并说:
|