- Joined
- Jun 14, 2016
- Messages
- 9
- Reaction score
- 0
- First Language
- Finnish
- Primarily Uses
- RMMV
I hope this is the right place to post this.
I'm total newbie with coding, so I might be totally lost with this one.
The problem I'm having is failing to find a script based command for using an item with ID X in RPG Maker MV.
What I'm trying to do with this:
My best guess is at the moment something like this:
$gameActors.actor(0).useItem($dataItems[$gameVariables.value(141)], 1);
OR
$gameParty.useItem($dataItems[$gameVariables.value(141)], 1);
'$gameVariables.value(141)' being the ID X of an item as mentioned earlier.
Thanks for the tips and help. ^^
PS As a bonus: if somebody knows how to draw an icon of a state or item for example as a picture of floating image, I would appreciate learning that too.
The problem I'm having is failing to find a script based command for using an item with ID X in RPG Maker MV.
What I'm trying to do with this:
I'm making some quick slots for my game, so that instead of going to item menu player could use selected items by pressing dedicated keys. I have managed to make a common event to select an item and bind its ID to a variable. And tried to use items with that variable. I have managed to use it to reduce the number of the items with a script command, but not yet find a way to actually use/activate them.
This should work on a map rather than in a battle.
This should work on a map rather than in a battle.
My best guess is at the moment something like this:
$gameActors.actor(0).useItem($dataItems[$gameVariables.value(141)], 1);
OR
$gameParty.useItem($dataItems[$gameVariables.value(141)], 1);
'$gameVariables.value(141)' being the ID X of an item as mentioned earlier.
Thanks for the tips and help. ^^
PS As a bonus: if somebody knows how to draw an icon of a state or item for example as a picture of floating image, I would appreciate learning that too.

