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.
[XP] Multiple Items for a Collecting Quest.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 75
Newbie
Hi, long time read and browser of the forums, first time poster.

I've been try to work out how your character can pick up multiples of the one object, say [Herbs] or something similar and have the NCP that asked you to collect them reward you only when you have the certain amount.

I've tried using a condition branch to simply check whether or not that player has that item, but usually bugs, because it can only check one at a time.(And if I made a conditional branch inside another one, the character could use the same single item each time.)

Is using CBs the wrong way to go about this and is there a simple way to it thanks!

***
Rep:
Level 82
IT ALL ENDED.
Create a parallel proces-Event the following:
Take Control variables
variable = anything you like
Operation = set
Operand = item<item here > in inventory
This checks the amount of whatever in your inventory.
Put a condition in your guy, variable [xxx] == [number you need] or above
then do what you need to do

**
Rep: +0/-0Level 75
Newbie
Thank you!

This has been such an annoying little block.

EDIT: Quick question regarding the Variable.

If I've assigned a variable to an item, that variable will rise and decrease every time that item is added/ taken out of my inventory? In short terms, Variable will always equal to how many of that specific item I have?
« Last Edit: March 25, 2011, 08:40:10 AM by Hmorris15 »

*
Rep:
Level 82
Because it's a parallel process, it'll constantly run the event as long as that event appears on the screen. So yes, the variable will always contain the current number of that specific item.

If you only need to check the number of said item when you talk to this NPC, you can just integrate that variable setting into the NPC event itself, so that it assigns the variable once and then checks if you have the required amount of the item or not. It just saves on having the system constantly process a variable assignment when it's probably not going to be changed that often.

If that makes sense.
(Why do I always feel like it's the end of the world and I'm the last man standing?)