The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: pujeda507 on December 23, 2007, 08:26:25 AM

Title: [RESOLVED] Door that require a key to open
Post by: pujeda507 on December 23, 2007, 08:26:25 AM
how to make a event  if i have no key the door will not open if i have a key the door will open   
Title: Re: (RESOLVED)
Post by: Demonic Blade on December 23, 2007, 09:04:57 AM
Don't worry, that's easy. All you need is 3 events and an item!

Here's how: Create the item. Call it "Key" (for example).
Now create the door. That's a simple event with a door graphic. Then give a Conditional branch. Choose tab 4 and click the circle beside "Item" and choose the "Key". Then you can teleport the player  or whatever happens when the door opens.

For example: If the player doesn't have a key, then when the player presses space in front of the door, it'll say something like; "You need a key to open this door.". Then when the player get's the key, it'll change it's graphic to an open door, and the player will be teleported through. Then change the graphic to a closed door again! Easy as that!
Title: Re: [RESOLVED] Door that require a key to open
Post by: pujeda507 on December 23, 2007, 11:39:42 PM
thank you men
Title: Re: [RESOLVED] Door that require a key to open
Post by: Demonic Blade on December 24, 2007, 09:41:13 AM
np! :D