| 赞 | 46 |
| VIP | |
| 好人卡 | |
| 积分 | 97 |
| 经验 | |
| 最后登录 | 2026-6-17 |
| 在线时间 | 2775 小时 |
梦石0
星屑9716
在线时间2775 小时
注册时间2008-9-5
回帖3458
   
|
发表于 2016-5-24 23:51:49
|
显示全部楼层
- class Window_ShopCommand < Window_HorzCommand
- def make_command_list
- add_command(Vocab::ShopBuy, :buy, can_buy?)
- add_command(Vocab::ShopSell, :sell, can_sell?)
- add_command(Vocab::ShopCancel, :cancel)
- end
- def can_sell?
- return (!@purchase_only || $game_switches[1])
- end
- def can_buy?
- return (!$game_switches[1])
- end
- end
复制代码 基于默认商店的改法,打开1号开关的话禁止购买(ID可以自己改,这里面唯一一个数字1),
不用勾选【只能买入】选项,要恢复的话就关闭1号开关。 |
评分
-
查看全部评分
|