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.
Item Box (Want to put those extra potions somewhere?) Tutorial

0 Members and 1 Guest are viewing this topic.

********
Licks
Rep:
Level 91
Sexual Deviant
Ok, this tutorial is for having an NPC holding an unlimited ammount of one (or more) item(s)
You will need one variable

Lets say there is a box that can hold all your potions for you
It should look like this
Code: [Select]
Text: I could store potions in here (this is not necessary, but what the heck)
Text: Put a potion in?
Show Choices:Yes, No
When [Yes]
Conditional Branch: [Potion] in inventory
Change Items: [Potion], - 1
Control Variables: [Potion Ammount] +=1
Else
Text: I don't have any!
Branch End
When [No]
Text: Want to take one out?
Show Choices: Yes, No
When [Yes]
Conditional Branch: Variable: [Potion Ammount] >=1
Change Items: [Potion], +1
Control Variables: [Potion Ammount] -=1
Else
Text: There's none in there!
Branch End
When [No]
Text: Then what am I doing here?
Branch End

If you want to be able to put multiple items in there, add another choice between those items in the beginning, for money, you could have the player put in like 10 gold at a time rather than one. It would take forever

*****
Rep:
Level 88
Hey, that is pretty neat!

Not sure why... But I get a feeling I saw this somewhere else... :-\

Could have been on another site, so good job!

********
Licks
Rep:
Level 91
Sexual Deviant
Thank you, I keep thinking of event systems to use, so...I'll post another after lunch!

*
A Random Custom Title
Rep:
Level 96
wah
Great! Too bad you need one variable for each item stored and for each item storable, you need a choice on the choice thing. And more choices if you exceed 3.

********
Licks
Rep:
Level 91
Sexual Deviant
Yeah...but thats its done...without scripts...scripts and me is a nono