魔球修改多重箭的问题
答案:3 悬赏:10 手机版
解决时间 2021-04-07 04:12
- 提问者网友:温旧梦泪无声
- 2021-04-06 03:46
本人今天用魔球看了下天琴座的触发器代码,想试试照搬到我的自建骑士团的标枪上,只是不知效果如何。之前听说特定NPC陪特定弓和箭才有多重效果,我可不可以通过修改触发器代码的方式来实现让我的骑士使用多重标枪呢?谢谢
最佳答案
- 五星知识达人网友:渡鹤影
- 2021-04-06 05:02
声明一下,本人没有编程基础。这些内容是我在论坛里看帖自己花了几晚上慢慢做出来的。然后这些代码在某些mod里面可能不能完美工作,希望各位也能发扬一下探索创新的精神,可以自学,完善。
***************************************************************************************************************************
散弹枪
(store_trigger_param_1,":var_0"),
(assign,":var_3",0),
(assign,":var_12",0),
(assign,":var_7",0),
(assign,":var_78",0),
(assign,":var_5",0),
(agent_get_troop_id,":var_1",":var_0"),
(try_begin),
(eq,":var_1","trp_farmer_New"),
(assign,":var_3",1),
(else_try),
(eq,":var_1","trp_farmer_New_New"),
(assign,":var_3",1),
(else_try),
(eq,":var_1","trp_player"),
(assign,":var_3",1),
(try_end),
(eq,":var_3",1),
(assign,":var_31",0),
(1726,":var_2",":var_0",0),
(try_for_range,":var_8",0,4),
(1804,":var_9",":var_0",":var_8"),
(try_begin),
(eq,":var_9","itm_no_item"),
(else_try),
(eq,":var_9",":var_2"),
(1542,":var_10",":var_1",":var_8"),
(assign,":var_7",":var_9"),
(assign,":var_11",":var_10"),
(try_end),
(try_end),
(neg|eq,":var_7",0),
(assign,":var_19",200),
(convert_to_fixed_point,":var_19"),
(agent_get_look_position,pos3,":var_0"),
(copy_position,pos2,pos1),
(try_for_range,":var_8",0,7),
(718,2,3),
(store_random_in_range,":var_6",0,8),
(store_sub,":var_6",4,":var_6"),
(725,2,":var_6"),
(store_random_in_range,":var_6",0,8),
(store_sub,":var_6",4,":var_6"),
(723,2,":var_6"),
(store_random_in_range,":var_12",1,4),
(try_begin),
(eq,":var_12",1),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New_New_New",":var_11"),
(else_try),
(eq,":var_12",2),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New",":var_11"),
(else_try),
(eq,":var_12",3),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New",":var_11"),
(else_try),
(eq,":var_12",4),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New",":var_11"),
(try_end),
(try_end),
********************************************************************************************************************************
多重箭
(store_trigger_param_1,":var_0"),
(assign,":var_3",1),
(assign,":var_7",0),
(assign,":var_5",0),
(agent_get_troop_id,":var_1",":var_0"),
(eq,":var_3",1),
(assign,":var_31",0),
(1726,":var_2",":var_0",0),
(try_for_range,":var_8",0,4),
(1804,":var_9",":var_0",":var_8"),
(try_begin),
(eq,":var_9","itm_no_item"),
(else_try),
(eq,":var_9",":var_2"),
(1542,":var_10",":var_1",":var_8"),
(assign,":var_7",":var_9"),
(assign,":var_11",":var_10"),
(try_end),
(try_end),
(neg|eq,":var_7",0),
(assign,":var_19",85),
(convert_to_fixed_point,":var_19"),
(agent_get_look_position,pos3,":var_0"),
(copy_position,pos2,pos1),
(try_for_range,":var_8",0,15),
(718,2,3),
(store_sub,":var_6",21,":var_5"),
(725,2,":var_6"),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_slde_arrows+",":var_11"),
(store_add,":var_5",":var_5",3),
(try_end),
**********************************************************************
***************************************************************************************************************************
散弹枪
(store_trigger_param_1,":var_0"),
(assign,":var_3",0),
(assign,":var_12",0),
(assign,":var_7",0),
(assign,":var_78",0),
(assign,":var_5",0),
(agent_get_troop_id,":var_1",":var_0"),
(try_begin),
(eq,":var_1","trp_farmer_New"),
(assign,":var_3",1),
(else_try),
(eq,":var_1","trp_farmer_New_New"),
(assign,":var_3",1),
(else_try),
(eq,":var_1","trp_player"),
(assign,":var_3",1),
(try_end),
(eq,":var_3",1),
(assign,":var_31",0),
(1726,":var_2",":var_0",0),
(try_for_range,":var_8",0,4),
(1804,":var_9",":var_0",":var_8"),
(try_begin),
(eq,":var_9","itm_no_item"),
(else_try),
(eq,":var_9",":var_2"),
(1542,":var_10",":var_1",":var_8"),
(assign,":var_7",":var_9"),
(assign,":var_11",":var_10"),
(try_end),
(try_end),
(neg|eq,":var_7",0),
(assign,":var_19",200),
(convert_to_fixed_point,":var_19"),
(agent_get_look_position,pos3,":var_0"),
(copy_position,pos2,pos1),
(try_for_range,":var_8",0,7),
(718,2,3),
(store_random_in_range,":var_6",0,8),
(store_sub,":var_6",4,":var_6"),
(725,2,":var_6"),
(store_random_in_range,":var_6",0,8),
(store_sub,":var_6",4,":var_6"),
(723,2,":var_6"),
(store_random_in_range,":var_12",1,4),
(try_begin),
(eq,":var_12",1),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New_New_New",":var_11"),
(else_try),
(eq,":var_12",2),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New",":var_11"),
(else_try),
(eq,":var_12",3),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New",":var_11"),
(else_try),
(eq,":var_12",4),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_cartridges_New",":var_11"),
(try_end),
(try_end),
********************************************************************************************************************************
多重箭
(store_trigger_param_1,":var_0"),
(assign,":var_3",1),
(assign,":var_7",0),
(assign,":var_5",0),
(agent_get_troop_id,":var_1",":var_0"),
(eq,":var_3",1),
(assign,":var_31",0),
(1726,":var_2",":var_0",0),
(try_for_range,":var_8",0,4),
(1804,":var_9",":var_0",":var_8"),
(try_begin),
(eq,":var_9","itm_no_item"),
(else_try),
(eq,":var_9",":var_2"),
(1542,":var_10",":var_1",":var_8"),
(assign,":var_7",":var_9"),
(assign,":var_11",":var_10"),
(try_end),
(try_end),
(neg|eq,":var_7",0),
(assign,":var_19",85),
(convert_to_fixed_point,":var_19"),
(agent_get_look_position,pos3,":var_0"),
(copy_position,pos2,pos1),
(try_for_range,":var_8",0,15),
(718,2,3),
(store_sub,":var_6",21,":var_5"),
(725,2,":var_6"),
(1829,":var_0",2,":var_19",":var_2",":var_10","itm_slde_arrows+",":var_11"),
(store_add,":var_5",":var_5",3),
(try_end),
**********************************************************************
全部回答
- 1楼网友:不甚了了
- 2021-04-06 06:02
在魔球的伪代码里面点一点就行了
再看看别人怎么说的。
- 2楼网友:几近狂妄
- 2021-04-06 05:18
G版里有多重标枪的代码,那个什么死棘之矛,复制那个再改一下应该就能用了吧
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
正方形一边上任一点到这个正方形两条对角线的 |
阴历怎么看 ? |