Player doesn't receive weapon when buying

Hi guys, I have a small problem.

I made a shop in my game, and added items etc. etc. - Everything should be working as it worked before, but people don't get the weapon when they bought it. Here's a preview of how I set up the event and such:

[IMG]http://i.imgur.com/3xLnRPt.png[/IMG]

Shop Setup

[IMG]http://i.imgur.com/Ben8QXV.png[/IMG]

A weapon

What have I done wrong? It worked before and it should now too.
Check your scripts.
Also, double check that the items in the shop list haven't changed. If you changed the number of the weapon it might have lagged the updating and be giving you another, unnamed item instead. Maybe? >.<;

But yeah, the first thought that jumped into my head was "Something to do with scripts?" Check what scripts you have, which ones affect either the shop or weapon functions and try taking them out to see if that changes anything.
Check your scripts.
If those are the ones I've added, I don't think Khas' Light Effects and a simple splash screen menu can affect it. I tried removing them too and it didn't work.
Also, double check that the items in the shop list haven't changed. If you changed the number of the weapon it might have lagged the updating and be giving you another, unnamed item instead. Maybe? >.<;

But yeah, the first thought that jumped into my head was "Something to do with scripts?" Check what scripts you have, which ones affect either the shop or weapon functions and try taking them out to see if that changes anything.
The weapon ID's are fine too, they are still the same ones as I added them.
Try it in a new project.
Realtime Games, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


How do you KNOW they're not getting the weapon? Are you expecting it to be equipped on the character as soon as you buy it? Are you expecting it to be available in their list of weapons to equip when you go into the equip screen?


When you purchase an item (including weapons and armor), it will first show up when you go to Items in the menu (unless you've modified the script so weapons/armor don't show up). You then have to equip it on your character. This requires that the actor (or the actor's class) has a features slot allowing them to equip the weapon type (in this case, anyone you wanted to equip the cutting knife would need to have Sword in their features list).


So it's not just the weapon setup and the shop setup that needs to be correct, but also the actor/class allows that type of weapon to be equipped.


And then, of course, you need to actually go into the menu and equip the weapon after you've bought it.

Original thread: https://forums.rpgmakerweb.com/threads/player-doesnt-receive-weapon-when-buying.25234/