赞 | 109 |
VIP | 0 |
好人卡 | 0 |
积分 | 179 |
经验 | 970 |
最后登录 | 2024-5-9 |
在线时间 | 2161 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 17933
- 在线时间
- 2161 小时
- 注册时间
- 2015-7-4
- 帖子
- 918
|
清除背包所有东西:$gameParty.initAllItems();
要分别清除单种类型得自定义方法:
Game_Party.prototype.initOnlyItems = function() {
this._items = {};
};
Game_Party.prototype.initOnlyWeapons = function() {
this._weapons = {};
};
Game_Party.prototype.initOnlyArmors = function() {
this._armors = {};
};
然后分别执行:
$gameParty.initOnlyItems();
$gameParty.initOnlyWeapons();
$gameParty.initOnlyArmors();
|
|