- 好友
- 0
- 在线时间
- 1 小时
- 最后登录
- 2024-11-19
贵族[MOD作者]
- UID
- 3154436
- 第纳尔
- 1403
- 精华
- 1
- 互助
- 13
- 荣誉
- 14
- 贡献
- 10
- 魅力
- 129
- 注册时间
- 2020-4-2
鲜花( 39) 鸡蛋( 0)
|
本帖最后由 我只玩MID 于 2020-12-17 12:21 编辑
("huoqushengwangzuigao",#获取声望最高
[
(store_script_param, ":xunlian1", 1),### 1:获取人
(store_script_param, ":solt", 2),###声望或者名望
(assign, ":zuixingdejuli", 0),
(faction_get_slot, ":cur_faction_king", ":xunlian1", slot_faction_leader),
(try_for_range, ":cur_troop", active_npcs_begin, active_npcs_end),
(store_troop_faction, ":cur_troop_faction", ":cur_troop"),
(eq, ":xunlian1", ":cur_troop_faction"),
(neq, ":cur_troop", ":cur_faction_king"),
(troop_get_slot, ":troop_renown1", ":cur_troop", ":solt"),
(gt, ":troop_renown1", ":zuixingdejuli"),
(assign, ":zuixingdejuli", ":troop_renown1"),
(assign, ":min_dist_village", ":cur_troop"),
(try_end),
(try_begin),
(eq, ":xunlian1", "$players_kingdom"),
(troop_get_slot, ":troop_renown2", "trp_player", ":solt"),
(gt, ":troop_renown2", ":zuixingdejuli"),
(assign, ":min_dist_village", "trp_player"),
(try_end),
(assign, reg0, ":min_dist_village"),
]),
这个脚本是我自己写的,但不知道为什么失效了,输出只会是0也就是玩家,无论我怎么改都没法正常。(之前是正常的,而且我也没再修改过)我并没太在意但今天我发现选举元帅的脚本也是同样的问题,script_npc_decision_checklist_take_stand_on_issue,只能输出值-1,然后问领主想选谁他只会说无法做出决定。
就想请问是不是动了什么东西会让脚本失效。因为这个问题现在mod没法进行后续更新。script_npc_decision_checklist_take_stand_on_issue替换成修改以前照样只能输出-1
[anyone,"lord_internal_politics_cur_stance", [
(call_script, "script_npc_decision_checklist_take_stand_on_issue", "$g_talk_troop"),
(eq, reg0, -1),
],
"I am unable to decide at this time", "lord_internal_politics_cur_stance_plyr_response",
[
]],
无法做出决定的对话只有在输出-1的时候才会显示,所以我认为并不是npc_decision_checklist_take_stand_on_issue本身的问题,但实在是找不到问题所在。
|
评分
-
查看全部评分
|