RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Condition Branch that Checks for Item Amounts

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 88
As default, you can only check to see if the player has one item. I was wondering if it'd be possible to set it up so I can check to see if they have a specific amount of items.

The idea I'm playing with is a recipe system. If they have a water crystal and three potions, it would make a tonic. Currently, I can't look for three potions. I can only look to see if they've got a single potion in their inventory.

What it is now:
Conditional Branch: [Item] in inventory
@>
: Else
@>
:Branch End

What I want:
Conditional Branch: [Item] in inventory >= 3
@>
: Else
@>
:Branch End
« Last Edit: November 29, 2006, 08:04:14 AM by Blizzard »

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
Just search for Deke's Crafting Script on Dubealex.

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Use the script condition on tab 4. Type:

Code: [Select]
$game_party.item_number(ID) == 1

where ID is the item ID in the database. In this specific case it would return "true" if the party has exactly one item.

Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

**
Rep: +0/-0Level 88
Use the script condition on tab 4. Type:

Code: [Select]
$game_party.item_number(ID) == 1

where ID is the item ID in the database. In this specific case it would return "true" if the party has exactly one item.

Oh sweet. I didn't even see that. o_o Thanks!