I'm making a common event that lets player swap between two weapons. How I'm doing it right now is I have another common event that lets player pick a weapon out of the weapons they have to be their second weapon, and I store the ID of the weapon in a variable. Then I use a change equipment script call.
But I'm having trouble storing the first weapon that's equipped via the actual equipment menu in a variable. If I use the change variable via script command and use this script "$gameActors.actor(4).weapons()". It will store the entire weapon data into the variable instead of just a number. And if I try to change equipment with the variable it will unequip the player's weapon instead, it doesn't give me an error message either.
Is there a script to just store the weapon ID of the currently equipped weapon?
But I'm having trouble storing the first weapon that's equipped via the actual equipment menu in a variable. If I use the change variable via script command and use this script "$gameActors.actor(4).weapons()". It will store the entire weapon data into the variable instead of just a number. And if I try to change equipment with the variable it will unequip the player's weapon instead, it doesn't give me an error message either.
Is there a script to just store the weapon ID of the currently equipped weapon?