How?
How to see if an item is in the player's inventory by script?
Learning Ruby and RGSSxI've moved this thread to Learning Ruby and RGSSx. Thank you.
Just use this:
$game_party.has_item?(item). For item you need to paste the item object, not the item id.Please, give me a example of "item object"? ;-;
you might understand this:
if you may know, why did you make this?
because in the conditional branch process there is already this feature
might tell you why you can make things easier
if you may know, why did you make this?
because in the conditional branch process there is already this feature
might tell you why you can make things easier
It's
$game_party.has_item?($data_items[10])É para um script que estou fazendo.
Oh. Thanks, bro!
@KaiNormal , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
Also, all public discussions must be held in English since this is the official RPG Maker English forum. Thank you.
If we have fully answered your question and you have nothing to add to the thread, please report the thread so it can be closed. Click on the "report" button right besides the "edit" button at the bottom of any of your posts in this thread and write "solved" for the reason. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-see-if-an-item-is-in-the-players-inventory-by-script.119794/