Using key on doors.

● ARCHIVED · READ-ONLY
Started by RPGVeir 4 posts View original ↗
  1. Hello, I've made a bunch of common events for using key item from menu while standing in front of doors. What I need now is some way to seperate every key so they wont work for every locked door in the game. I'm pretty sure I can get this by creating XY map coordinates variable for every door in the game but is there any other way? Something easy perhaps?

    I'm attaching screens events below.

    upload_2018-9-6_18-16-54.pngupload_2018-9-6_18-17-10.pngupload_2018-9-6_18-17-24.png
  2. the best way would not be using common events at all, but have the door event ask for a key by select key item command when the player tries to open the door.
    that way you can make each door react to only a specific key from your item list and have noo need to check coordinates at all.
  3. I dont think thats possible since im using different means of using items. I think its on Luna Engine though im complete noob at this so I may be wrong. #Edit Nevermind You are right, however I prefer to stay with player using items by himself since its imo better gameplay wise.
  4. then there are several other possibilities.
    if you want to use key-specific doors with each key only opening one door, then you'll have to make different common events checking different XY coordinates.
    If you have a limited number of keys, then you can region-ID the doors. Have the common event for the key determine the door coordinates based on player coordinates and player facing, then use get location info to read the region ID under the door event. if it is the correct ID, open the door.