Hello!
So I'm attempting to create a system where an actor can have several equipment "sets" they can swap between without having to manually re-equip every single piece of equipment. For example, if there's equipment that's focused on killing fire enemies and water enemies, the player can simply swap between the Fire set of equipment and the Water set of equipment.
I've already tried two different methods, neither of which have worked:
Saving the First Equipment Set:
var actor = $gameActors.actor(1)
var equipset1 = JsonEx.makeDeepCopy(actor. Equips)
Saving the Second Equipment Set:
var actor = $gameActors.actor(1)
var equipset2 = JsonEx.makeDeepCopy(actor. Equips)
Equipping Set 1 or Two:
actor. Equips = equipset1
actor. Equips = equipset2
The issue with this is that it would have absolutely no effect whatsoever - my set equipment would not change when trying to use that last piece of code.
The second method I tried is as follows:
This would just result in a crash.
Any suggestions / plugins that would help achieve what I'm after? Thank you 😀
So I'm attempting to create a system where an actor can have several equipment "sets" they can swap between without having to manually re-equip every single piece of equipment. For example, if there's equipment that's focused on killing fire enemies and water enemies, the player can simply swap between the Fire set of equipment and the Water set of equipment.
I've already tried two different methods, neither of which have worked:
Saving the First Equipment Set:
var actor = $gameActors.actor(1)
var equipset1 = JsonEx.makeDeepCopy(actor. Equips)
Saving the Second Equipment Set:
var actor = $gameActors.actor(1)
var equipset2 = JsonEx.makeDeepCopy(actor. Equips)
Equipping Set 1 or Two:
actor. Equips = equipset1
actor. Equips = equipset2
The issue with this is that it would have absolutely no effect whatsoever - my set equipment would not change when trying to use that last piece of code.
The second method I tried is as follows:
This would just result in a crash.
Any suggestions / plugins that would help achieve what I'm after? Thank you 😀
