How do I store the variable number of each of actor's equipment type?

Hello, I have a character who changes classes with a command, and I've nailed down the HP and EXP etc. to transfer over, but I've been having trouble with variable storing for her current equipment for when she changes back into her Knight/Witch class.

When she uses the command, her equipment gets all un-equiped. What I'm trying to do is when she uses the command, her equipment that she was wearing as a Knight is stored in some form of Data, while as a Witch she has different equipment (Knight has Shield and Heavy Armor, Witch has Staff and Magic armor kind of thing) and so she would have the same 2 sets of equips set into those two classes.

Is there a way I can manage this all with Script calls, or do I have to wait for a Plugin in the future to drop by?
bump
Hello, I have a character who changes classes with a command, and I've nailed down the HP and EXP etc. to transfer over, but I've been having trouble with variable storing for her current equipment for when she changes back into her Knight/Witch class.

When she uses the command, her equipment gets all un-equiped. What I'm trying to do is when she uses the command, her equipment that she was wearing as a Knight is stored in some form of Data, while as a Witch she has different equipment (Knight has Shield and Heavy Armor, Witch has Staff and Magic armor kind of thing) and so she would have the same 2 sets of equips set into those two classes.

Is there a way I can manage this all with Script calls, or do I have to wait for a Plugin in the future to drop by?
I can envision this being possible through a lengthy common event that checks what Armor pieces the character has equipped prior to the class change command being executed and store your data there.

As a bare bones example:

If: Class of Harold is Witch

If: Harold has equipped Witch's Hat

Control Variables : #0001 Class1_Equipment(Head) = 1

End

End

If: Class of Harold is Knight

If: Harold has equipped Knight's Helmet

Control Variables : # 0002 Class2_Equipment(Head) = 1

End

End

Change Class : Harold, Knight

If: Class of Harold is Witch

If: Class1_Equipment(Head) = 1

Change Equipment : Harold, Head = Witch's Hat

End

End

If: Class of Harold is Knight

If: Class2_Equipment(Head) = 1

Change Equipment : Harold, Head = Knight's Helmet

End

End

I haven't tested this, but it seems to me this kind of strategy would work.  There are probably much easier ways to do this with scripts or plugins.  But since you had to bump your thread I figured I'd throw this out there in case it's something you want to try and work with.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-store-the-variable-number-of-each-of-actors-equipment-type.54571/