I dont think it would make much sense to link the whole capx as its pretty complicated, and would take a long time to go through.
But here are some screenshots of the ones that works and the ones that doesn't.
This one fine.
Pic 1 - Working
This one doesn't.
Pic 2 - Not working
To explain what it is suppose to do, to make it a bit easier to understand. When the player right click an item that can be equipped, and the slot where its going to be equipped is empty, it will spawn an item and move it to the correct equipment slot, in this case "hands".
What the generate item function does, is simply to create an item, based on the input, and drop it at player.x player.y position, then the idea is to store the item that was generated in the "Last_generated_item" variable. And then select it afterwards and do whatever it have to do. In this case it should move it to the equipment slot.
However it wont do that, and just drop the item at the player position.
In the first picture, its the same, except the item is moved to the player inventory, and that works fine. The trigger for that, is a left mouse click on a sprite button.
I tried to add a global variable and store some kind of action here like "Equip_item_in_hands" and then in the on create function of the item, check if that variable is that, and then move it. But that doesn't work.
So how you would create an object when you mouse right click, and then make it do something I cant figure out. So frustrating how picking objects works I think, I don't trust it <img src="smileys/smiley19.gif" border="0" align="middle">