Changing weapons with common events

So I was trying to add a common event for a skill that changes the weapon's form, like this,

Change weapons: [name] -1 [Weapon name) include equipment

Change weapons: +1 [New weapon]

Change equipment: [Name] = [new Weapon]

This is supposed to behave like a weapon transformation, however it keeps derping and just removing the original weapon, how should the common event be set, Same with a Common event to reverse it?
Is the actor set up to be able to use that weapon? Does the weapon get added to your inventory?


If those are correct, can you show a screenshot of the common event?
here's the common event layout I have.

wgdbqvw.png
What about the other questions? What is the status after that common event is run?


Does the new weapon appear in inventory after the common event runs?


Is your actor set up to use that weapon/weapon type?


Also, how do you call it - do you use the Call Common Event, or do you have it set to parallel/autorun trigger? (When we ask for a screenshot, we really mean the WHOLE window, not just the bit that contains the code).
What about the other questions? What is the status after that common event is run?Does the new weapon appear in inventory after the common event runs?Is your actor set up to use that weapon/weapon type?Also, how do you call it - do you use the Call Common Event, or do you have it set to parallel/autorun trigger? (When we ask for a screenshot, we really mean the WHOLE window, not just the bit that contains the code).
The character is set to use it, and it's supposed to unequip the weapon quickly, delete it, spawn in the other, then equip it automatically, simply put, and it's a skill the character uses.EDIT: also there's a sibling skill that brings back the original weapon
Again, what about the other questions Shaz asked?


Is the weapon in inventory after the common event?


Can the actor equip the weapon manually, without the event?


We cannot help you if you don't answer our questions, and by that we mean all of them and not only the last one.


If you don't understand a question, then ask us what we want to know but don't ignore the question - and go back to the posts above to see what other questions you still haven't answered.
Maybe if you give us a heap of screenshots, that might help figure things out. Here are the ones that would be useful (remember, full window, don't crop any of it)


- the actor


- the weapon


- the full common event


- the skill that calls the common event


- the Equip screen with the actor visible, after the common event is called


- the Items screen with Weapons selected, after the common event is called


You don't have to attach all of these - you can load them up to photobucket or dropbox or similar, and just post the links. Otherwise if you post them as attachments, you'll use up a fair bit of your attachment allowance.


Also, what scripts have you added? A screenshot or two of your script window, with the names of all the custom scripts visible, should be enough for starters, if you have a lot of them.


And if you do have a few scripts, you could try to set up in a brand new Ace project, where there are NO added scripts, and just see if it works with the same settings on all your database items there.
Maybe if you give us a heap of screenshots, that might help figure things out. Here are the ones that would be useful (remember, full window, don't crop any of it)- the actor- the weapon- the full common event- the skill that calls the common event- the Equip screen with the actor visible, after the common event is called- the Items screen with Weapons selected, after the common event is calledYou don't have to attach all of these - you can load them up to photobucket or dropbox or similar, and just post the links. Otherwise if you post them as attachments, you'll use up a fair bit of your attachment allowance.Also, what scripts have you added? A screenshot or two of your script window, with the names of all the custom scripts visible, should be enough for starters, if you have a lot of them.And if you do have a few scripts, you could try to set up in a brand new Ace project, where there are NO added scripts, and just see if it works with the same settings on all your database items there.
There is no way I'm gonna restart the entire project, some scripts I'm using took too long to configure.
Where did I ask you to restart the entire project? I didn't. I asked you to set up this particular common event in a brand new project without any plugins or any other changes. Doing this will indicate whether it is the common event itself that has the issue, or if it is a side effect of one of your plugins.


You would need to copy your actor and your class, and both weapons, along with the common event. That is all.


If it works in a brand new project, that means the fault isn't with the common event, but with something else. At that point, you need to start disabling the plugins and testing, to see if one of those are causing the issue.

Original thread: https://forums.rpgmakerweb.com/threads/changing-weapons-with-common-events.53420/