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.
Taking away items,remembering them & giving them back later.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 80
RMRK Junior
Does anyone know if there's a way to have the game take away items in your inventory, remembering them, then have the game give you those items later. I'm remaking Dragon Warrior 4, which is broken into 5 chapters. I need to have it where it takes all your items away between each character's chapter, then give you the items back when that character joins you again in the 5th chapter. Money is no concern, since it's taken & never given back.

***
Rep:
Level 83
Kidfox70. It happens.
Alright man, I'll try and help yea. At the very end of each Chapter as it seems this is when the Game is going to be reading the Players Inventory, you'll need an Event to have things , to be, Checked and then Removed retropectively. So to get to that point, you'll need some Variables. Adding items to the player will be done normally. The items are easy.Weapons and Armor are a bit more tricky. Make A Variable for each, just like you would for the Items (I'll get to that in a bit). Now EVERY single time the player get's a Iron Sword or a Black Bow you need to add a plus 1 to the repsected Variable. So lets say a player opens a Chest, gets a Glowing Sheild. You have to add the Sheild to the player AND a plus 1 to that Glowing Sheild Variable. That is how every Armor and Weapon will have to be done.

Now at the end of the Chapter and with in the Event, you'll need a Variable (as discussed ealier) set equal to each item. This is going to let the game read what Items you have, and how many. Next you need (this is imporant, other wise the game wouldn't know what to give back) to have the very same Variables set equal to them selfs...I know that sounds crazy, but it works. So, Example, have a Potion Variable set equal to how many Potions are possesed by the player. Under that Event Commmand, have the Potion Variable equal to the Potion Varible, which make it two Event Commands (you'll have a total of three for each item, but only two for Weapons and Armor). Ok, so the rest is pie. (I like Pie!) Go to the Change Item menu, click remove and refferance to the Variable of the Item you want to take from. Useing the Example above, Potion (set as the Item), click remove, set the Refferance Variable to Potion. The game will now take the many Potions the Player has in his Inventory AND store how many potions he had at the end of that Chapter.

Weapons are done in the same fashion, just you don't have to deal with the first part, just the change Weapons and the Defense Menus. The reason being is that the game already knows what you have, because you were manualing telling it, by adding those plus ones to those Variables. Again it will remove the Weapons and Armor AND store the number of how many the player had.

When you want to give the stuff back, aslong as you didn't mess with those Variables and their numbers, you pretty much do the EXACT same thing, but instead, of remove, you add them. Also don't do the first part about the
Quote
have a Potion Variable set equal to how many Potions are possesed by the player.

I hope I helped. Just if you need me to clear things up or you need somethign else.  :)
I don't say bless you when people sneeze, cause i'm not God. Blessing people is his job. Lolo?