Items that give other items

Is there an alternate way to make an item give the player another item?

I tried to use common events, but when I use an item that heals an actor from the main menu, the item window closes, I think calling a common event causes this.
Events work only on the map, not in menues - but that is usually not a problem, because no actor can own any item, it's the party that owns the items. And there is absolutely no problem with having the common event add items to the party.


If you want something else, you need to describe it better...
I made an item that recovers HP and calls a common event.

Normally, in the item menu window, I can use the item as many times I want or until I run out of it.

However, when I add the "common event" action to the item, the item menu window closes, this does not happen if the item does not have the "common event" action.
It might be better to make it a key item. That way you can't use it and then it's gone. If it draws any comparisons, the Poke Flute in Pokemon is a key item that basically lets you wake up your Pokemon for free. Maybe try going that route. Like @Andar said, you need to show us more (i.e. screenshots) to let us help you better.
I do think running common events does take you out of the menu... But you could always use a simple script call on your common event to bring ypu back...

Try something like

SceneManager.call(Scene_Item)

Or SceneManager.return
by default... when you use item that call common event... it will return to Scene_Map. because common event can only be executed from there...

this script make you able to call common event directly in the scene without exiting the menu.

http://himeworks.com/2013/03/scene-interpreter/
@Adiktuzmiko I tried both script calls and both of them have an issue. 

SceneManager.call(Scene_Item) is useful in the menu, it takes me back to the Item scene. However, in battle, when I use the items with this script call

in a common event, it opens the item scene as if it was in the overworld, closing the item scene takes me out of the battle.
I fixed this with a switch that turns on at the beginning of a battle, and a conditional branch that checks if the switch is OFF, then runs the script call.


SceneManager.return, somehow, closes the game, I don't know why.

@estriole: That script is very useful since it does what I wanted, but while searching, I found this one:
http://himeworks.com/2013/08/transform-use-items/

Now I can get an item after consuming another just with tags, this is what I was looking for.

Thanks everyone for your help.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/items-that-give-other-items.44169/