- 好友
- 0
- 在线时间
- 3 小时
- 最后登录
- 2023-3-13
平民
- UID
- 2804599
- 第纳尔
- 74
- 精华
- 0
- 互助
- 1
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2017-2-6
鲜花( 0) 鸡蛋( 0)
|
rgl_log.txt原帖
①需要保存itm字符以调用: 添加到module_strings.py最顶部
- def store_item_id():
- ofile = open("./ID_items.py","r")
- store_item_id = ofile.readlines()
- ofile.close()
- store_item_id_c = []
- i_n = 0
- for s_string in store_item_id:
- itm_str = s_string[0:s_string.find(' ')]
- store_item_id_c.append(("itm_no_"+str(i_n), itm_str))
- i_n = i_n + 1
- # print(store_item_id_c[0])
- return store_item_id_c
复制代码 添加到module_strings.py末尾]之后
②module_scripts.py修改:
最开头添加:
module_scripts.py中添加模块:
- #script_output_troop_itms_text
- ("output_troop_itms_text",
- #
- [
- (store_script_param, ":source_troop", 1),
- (display_debug_message,"@###########output itms##########\n"),
- (display_debug_message,"@[\n"),
- (assign, ":str_itm_0", str_itm_no_0),
- (try_for_range,":item_type",itp_type_horse,itp_type_book+1),
- (troop_get_inventory_capacity, ":troop_capacity", ":source_troop"),
- (try_for_range,":troop_slot_id",0,":troop_capacity"),
- (troop_get_inventory_slot, ":troop_inventory_slot", ":source_troop", ":troop_slot_id"),
- (ge,":troop_inventory_slot",0),
- (item_get_type, ":item_type", ":troop_inventory_slot"),
- (eq, ":item_type", ":item_type"),
- (store_add, ":str_itm", ":str_itm_0", ":troop_inventory_slot"),
- (str_store_string, s1, ":str_itm"),
- (display_debug_message,"@{s1},"),
- (try_end),
- (display_debug_message,"@\n"),
- (try_end),
- (display_debug_message,"@]"),
- (display_debug_message,"@###########output end##########\n"),
- ]),
复制代码 ③调用以上模块
建议添加(call_script, "script_output_troop_itms_text“,"trp_player"),到module_game_menus.py的mnu_camp_cheat中创建新的sub-menus。以调试模式和编辑模式打开下游戏,点击sub-menus,输出到rgl_log.txt文件中。打开txt拉到最低,即可直接复制装备代码,黏贴到具体troop武器中使用。
|
评分
-
查看全部评分
|