Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
FranklinX

Unlock a door

Question

HI everyone! I need to learn how to make key system. I have a map with a locked door. The player needs to find 3 keys to unlock the door. How do I make this event?

 

Thanks

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

You set up an even to make it so where "three" keys are required in order for the door to be unlocked.

 

If you want, I can set up an example project :)

 

EDIT:

Assuming this is for VX, you need to make a new Variable and call it "Key" or "3 Keys" or whatever you want. This is how I do it, seems neater to me.

 

With your new variable make your events where the player finally gets the keys, so three separate events in your case. Within the events, select the "CHANGE ITEMS" command and give a key once per event. You also need to add the variable you created, "Key" to the end of each event "+1" for each key. So an event should look like this:

 

 

33b20c9.jpg

 

 

And then the door to check for "3" keys:

 

 

bisaog.jpg

 

 

Hope that helps! If not, just say so and I'll get into better detail :)

Edited by CrimsonInferno

Share this post


Link to post
Share on other sites
  • 0

This shouldn't be to hard I never used vx but if its like xp like it should be it wont be hard.

Key 1,2,3 are items that have basically no use.

For the door just do:

Conditional Branch Player Item Has: Key 1

-Conditional Branch Player Item Has: Key 2

--Conditional Branch Player Item Has : Key 3

---Control Switch: Door Open

For else cases just put a message telling the player they dont have all the keys or something.

(I dont know how fancy your doing your doors but if you use move route you can have a little animation with the door opening)

Page 2 Set control switch door open to be activated then just have the open door image.

 

For keys just put Add Item Key 1,2,3 for each different one

Then have a self switch after that for each key.

Then ofc a second blank page.

 

That should do it.

Note the variable thing would work 2. Just showing a different way.

Edited by Dragon324

Share this post


Link to post
Share on other sites
  • 0
And then the door to check for "3" keys:

 

 

bisaog.jpg

 

 

 

You can just have the 1st event page blank and set the 2nd event page's conditions to if the Key variable is 3 or above, also.

Edited by Materia

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...