How would I do this? I know with an event I can say, do you have X in your inventory, but whats the script call to then say:
do you have X item and X of item? if so do Y, else do Z
do you have X item and X of item? if so do Y, else do Z
var item = $dataItems[n];
if($gameParty.hasItem(item) && $gameParty.numItems(item) >= x) {
do something...
}
else {
do something else...
}
var item = $dataItems[n];
if($gameParty.numItems(item) >= x) {
do something...
}
else {
do something else...
}
Original thread: https://forums.rpgmakerweb.com/threads/if-player-has-item-and-has-x-of-item-do-y.80472/