- 好友
- 0
- 在线时间
- 213 小时
- 最后登录
- 2023-12-6
扈从
- UID
- 1934868
- 第纳尔
- 0
- 精华
- 0
- 互助
- 1
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2014-5-1
鲜花( 7) 鸡蛋( 0)
|
如题,希望的效果是装备上特定鞋子,主角的向导技能+3,声望+200。愿望是美好的,现实是残酷的。代码改出来后发现缺少判定是否已经激活过一次的代码,技能增加会无限激活,改如何写一个判定是否激活的代码。
下面是原码
(try_begin),
(troop_has_item_equipped,"trp_player","itm_loulan_flying_boots"),
(2170,":var_1","skl_14","trp_player"),
(try_begin),
(neg|gt,":var_1",13),
(1521,"trp_player","skl_14",3),
(try_end),
(troop_get_slot,":var_2","trp_player",7),
(val_add,":var_2",200),
(troop_set_slot,"trp_player",7,":var_2"),
(try_end),
(try_begin),
(neg|troop_has_item_equipped,"trp_player","itm_loulan_flying_boots"),
(2170,":var_1","skl_14","trp_player"),
(try_begin),
(ge,":var_1",3),
(1521,"trp_player","skl_14",3),
(try_end),
(troop_get_slot,":var_2","trp_player",7),
(val_sub,":var_2",200),
(val_max,":var_2",0),
(troop_set_slot,"trp_player",7,":var_2"),
(try_end),
|
|