- Joined
- Feb 22, 2016
- Messages
- 2,788
- Reaction score
- 2,232
- First Language
- English
- Primarily Uses
- RMMV
Exactly as the title says...I'm looking for a script call to remove w/e is in slot1 (not slot0). Thx!
Edit: I tried this but didn't work...
...which I got from https://www.rpgmakercentral.com/top...remove-equipment-of-actor-with-a-script-call/
Edit2: Looks like the function is actually
Edit3: Also, it should be
SOLUTION:
Edit: I tried this but didn't work...
$gameParty.menuActor().change_equip(1, $data_weapons[0]);
...which I got from https://www.rpgmakercentral.com/top...remove-equipment-of-actor-with-a-script-call/
Edit2: Looks like the function is actually
.changeEquip()
w/o the underscore...
JavaScript:
Game_Actor.prototype.changeEquip = function(slotId, item) {
if (this.tradeItemWithParty(item, this.equips()[slotId]) &&
(!item || this.equipSlots()[slotId] === item.etypeId)) {
this._equips[slotId].setObject(item);
this.refresh();
}
};
Edit3: Also, it should be
$dataWeapons[0]
instead...gawd why was the post on that other forum so misleading?!SOLUTION:
$gameParty.menuActor().changeEquip(1, $dataWeapons[0]);
Last edited: