I have a system in my game where the player will be asked to gift an item in the "hidden item B" catagory every morning, i want to make it so if the player has no item to gift then the game just skips the gifting phase all together, is this possible? Ive looked in the script calls sheet and couldnt find anything
Is it possible to check if the player has any items that fall in the catagory of hidden item B?
RPG Maker MV SupportGoogled it for you (this should work):
That is true, if the party has no hidden items B.
$gameParty.items().filter(item => item.itypeId==4).length==0
That is true, if the party has no hidden items B.
So to do the gifting phase if the player DOES have a hidden type B item, you'd do
Code:
Conditional Branch: Script: $gameParty.items().filter(item => item.itypeId==4).length > 0
do gifting stuff
End
It worked! thank you so much!
Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-check-if-the-player-has-any-items-that-fall-in-the-catagory-of-hidden-item-b.155509/