- 好友
- 0
- 在线时间
- 30 小时
- 最后登录
- 2024-11-13
平民
- UID
- 2992327
- 第纳尔
- 420
- 精华
- 0
- 互助
- 0
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 3
- 注册时间
- 2018-3-31
鲜花( 1) 鸡蛋( 0)
|
本帖最后由 我勒个大超 于 2020-4-12 13:25 编辑
求问,加了个战场触发器NPC攻击后直接崩溃
(ti_on_agent_hit, 0.000000, 0.000000, [],
[ (store_trigger_param_1, ":var_1"),
(store_trigger_param_2, ":var_0"),
(store_trigger_param_3, ":var_2"),
(agent_is_non_player, ":var_1"),
(agent_is_human, ":var_1"),
(agent_is_non_player, ":var_0"),
(agent_is_human, ":var_0"),
(agent_get_troop_id, ":var_3", ":var_0"),
(try_begin),
(troop_is_hero, ":var_3"),
(store_skill_level, ":var_5", "skl_ironflesh", ":var_3"),
(store_mul, ":var_10", ":var_2", ":var_5"),
(val_div, ":var_10", 10),
(store_div, ":var_6", ":var_10", 25),
(agent_deliver_damage_to_agent, ":var_0", ":var_1", ":var_10"),
(store_agent_hit_points, ":var_7", ":var_0", 1),
(val_add, ":var_7", ":var_6"),
(agent_set_hit_points, ":var_0", ":var_7", 1),
(try_end), ]), |
|
|