游戏版本:V0.24.5,理论上来说版本不限
第一步:进入游戏目录打开renpy文件夹
第二步:用记事本、NOTEPAD、VSCODE、pycharm等文本编辑工具打开ast.py
第三步:搜索 renpy.exports.say(who, what, *args, **kwargs) 这个语句,后面加上我这段代码
3号方框中代码为:
for itm in renpy.store.g_InventoryItem:
if itm.data['name'] == '저품질 헥사닐 담배':
itm.count += 100
if itm.data['name'] == '고품질 헥사닐 담배':
itm.count += 100
if itm.data['name'] == '최고품질 헥사닐 담배':
itm.count += 100
请自行将缩进调整到如图所示。
如果感觉麻烦或者没有编程基础以上步骤也可以直接用我改好的文件
链接: https://pan.baidu.com/s/1BuGSADTNNROHIQ_RTkJZVQ?pwd=hm7r 提取码: hm7r
用这个ast.py替换掉原来的ast.py就可以了
最后,打开游戏,没经过一次对话都会加100根
第一步:进入游戏目录打开renpy文件夹

第二步:用记事本、NOTEPAD、VSCODE、pycharm等文本编辑工具打开ast.py

第三步:搜索 renpy.exports.say(who, what, *args, **kwargs) 这个语句,后面加上我这段代码

3号方框中代码为:
for itm in renpy.store.g_InventoryItem:
if itm.data['name'] == '저품질 헥사닐 담배':
itm.count += 100
if itm.data['name'] == '고품질 헥사닐 담배':
itm.count += 100
if itm.data['name'] == '최고품질 헥사닐 담배':
itm.count += 100
请自行将缩进调整到如图所示。
如果感觉麻烦或者没有编程基础以上步骤也可以直接用我改好的文件
链接: https://pan.baidu.com/s/1BuGSADTNNROHIQ_RTkJZVQ?pwd=hm7r 提取码: hm7r
用这个ast.py替换掉原来的ast.py就可以了
最后,打开游戏,没经过一次对话都会加100根