I'd like to make chests and doors that can only open when the player has obtained a key. I need help getting that to work and making keys to go to the specific doors and chests. Please help and thank you very much.
How do I get a chest and door to only open with a key
RPG Maker XP SupportFor specific keys to certain chests, I would set a variable or switch when you pick up the particular key. That way, you can just do a conditional branch to check if the player picked up the key already.
Create as many unique keys in your database as you need.
Decide which key will open which particular chest or door..
For the sake of this example, let us say that you want the Bronze Key to open a particular chest.
On the chest event use a conditional to check if the Bronze Key is in the inventory.
If it is, the chest opens
If it's not, then in the 'Else' section, put some message or other telling the player they need a key.
EDIT
Ninja'd by about 2 seconds!
Decide which key will open which particular chest or door..
For the sake of this example, let us say that you want the Bronze Key to open a particular chest.
On the chest event use a conditional to check if the Bronze Key is in the inventory.
If it is, the chest opens
If it's not, then in the 'Else' section, put some message or other telling the player they need a key.
EDIT
Ninja'd by about 2 seconds!
Okay, but how do I create unique keys in the data base?
Open the Database to the items and create them under that. Each entry is a "unique item". So, if you create them as "Keys", then they're "Unique Keys".
Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-a-chest-and-door-to-only-open-with-a-key.86684/