Hi all, just wanted to confirm that this is a limitation. I have a treasure chest which is placed on a different level but my player can still access it. This is normal right? Any tips or code to prevent this other than redesign the map?
Event is interactable even on different levels
RPG Maker MZ SupportThe problem is that it's not actually a different level -- it's just a different tile made to simulate a different level. An easy fix would be to put the event's content in a conditional: if player is facing left. From any other direction, it should then just do nothing.
there are 3 ways to acces it:
methode 1:
condition if facing is left
open chest as normal
else
nothing happen or tex (I cannot reach it)
end
Methode 2:
use region ID
if regionID == x
open the chest
else
you cannot
end
methode 3:
use UPPER/LOWER switch
if switch x = OFF (lower floor)
open the chest
else
nothing here or text
end
switch ON is higher floor, so this can be used over and over 🙂
ther eare other methodes as well, but those are the basics.
methode 1:
condition if facing is left
open chest as normal
else
nothing happen or tex (I cannot reach it)
end
Methode 2:
use region ID
if regionID == x
open the chest
else
you cannot
end
methode 3:
use UPPER/LOWER switch
if switch x = OFF (lower floor)
open the chest
else
nothing here or text
end
switch ON is higher floor, so this can be used over and over 🙂
ther eare other methodes as well, but those are the basics.
Method 1 is too specific, have to track individual treasure chest. Method 2 and 3 sounds interesting. Thanks both for sharing your ideas.
Original thread: https://forums.rpgmakerweb.com/threads/event-is-interactable-even-on-different-levels.146268/