I've moved this thread to Learning Ruby and RGSSx. Thank you.
$game_party.has_item?(item)
. For item you need to paste the item object, not the item id.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
It's$game_party.has_item?($data_items[10])
@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.