MZ Preventing Non-Transferring Door from Retriggering [RMMZ]

Ive set an indoor area where a specific door is expected to be passed through twice by the player. Basically, its a non-transfer door. Ill explain a solution Ive made up on the fly, but theres still one small hickup Im unsure how to get around.


Solution to the Above/Below & Trigger: Because Ive edited the door sheet to have only 2 frames—the last one being semi-opened as seen below—Im forced to set it as <below the player> (I want the player character's sprites to appear above it). What I ended up doing to KEEP the <same as the player> priority, is making the door sprites being <closed door> and the 3 other tiles being <empty>. I then use a spot on my Tileset_C sheet as an opened door frame, which I paste on layer 2. Neat! Now theres no layer priority issues and the door triggers correctly. <3

Issue: The door retriggers if you press the action button in front of it. This includes the sound effect. Now, you could set it as <direction fix> through <set movement> (this would lock its animation). However, the sound/SFX still plays if the player presses the action button in front of it! How can I prevent that in a non-permanent way? IE: If the player exits the building or room, the door resets itself. Im hoping to do this without switches (self-switch is ok). (I've deleted my previous profile post on the matter, as it was somewhat incoherent).
if you use a selfswitch it works, but there is a "direction fix" on the side
of the page you can use (non-moveroute).

if its only 2 frames, why not use a normal B tileset? on action => new page
with open door, posible tranfer => if transfer is only one, use condition
or after transfer => new page.

event pages with 2 frames can use B-E tiles, doors are ideal if you use it
multiple times, but there if you want to use that.

close
close
open
open

as animation, next page, keep the door open there.
Would <ERASE EVENT> be simpler? I wrongly assumed it was permanent but apparently its temp. Basically, only things needed to make such an event could boil down to 1. Play SFX and 2. <Erase Event>. E.E. basically removes the given event temporarily, but then respawns it fresh after reloading the zone (after a full transfer). You're correct on the regular <direction fix> being preferable. Escaped my mind as initially had the door with multiple frames (closed, semi-closed, opened — aka it made the door locked to its first frame).

Reason I went with all doors being in an event/character type of sheet was to spare me crucial space on B/C. I tried via multiple pages but couldnt get it right with self switches (its not you, its me).


Unrelated note: I had to look up what were tileset D and E were for. Thats interesting. I was sacrificing 12 tiles on my animation sheets (A1) for waterfalls (1x normal and 1x above all (star)). But "E" seems to have specific rules on layer priority.
Erase event will come back if you re-enter the map again.
if that is what you seek, maybe, but if has pages and transfers,
it would be bad idea to do so.

you said its a non transfer door, so the best way would be self-switches.
if its one time => use selfswitch A (depending what is does).

I don't know if erase event also delete the event (and its sprite), as its
remade on entering the map, so the door would be most likely be closed.

can't tell if the SS will be turned off, but if you can tell the what it should do
and show the current event page, we can try to fix to get your desire effect.
Self switches are permanent (or at least feels that way on my end, but I could be wrong). If I do my event/door sheet as close/close/open/open, keeping the <same as character> priority, the door will always be above. This looks off when moving into it (especially from up > down directions). I tried <below character> but this shifts the door triggers to be the same square as the door, not one square ahead. Thats why I put the open door frame on an actual editor layer (from a "C Tileset"). This enables me to keep the door's setting to be <same as character>. Open > erase, which only displays the fake "opened door" tile below it. At that point its just a cheap trick.


Its probably not ideal, but I dont mind it. If I run into troubles with that, Ill figure out a work-around. The only thing I can foresee, now that you mention it... Lets say you need a key for a door. Press the action button on the door unlocks it with a message saying so. Well... Erasing the event likely will need re-unlocking it again. Guess it would be like if you closed the door behind you after leaving after.
same as character makes it equal, so you can use "through ON" as
that would let the player go "through the door" but you should make
it OFF after that or during transfer or after whatever is needed.

there was something like: $gameMap.event()._priorityType = 0
to set it below the character (temporarly) not permant saved.

I should need to check the scriptcall what the exact call is for it.
or this.character(0)._priorityType = 0 in moveRoute.

this make the effect easier for temporarly use, but you need to
search it as some asked for it (this may be different for MZ though).
but I hope it would be equal as MV.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/preventing-non-transferring-door-from-retriggering-rmmz.181354/