How do you reset the password to the door? RPG maker mz.

Hello!
How do you reset the password I want the player to always enter that password again when the player returns to that door?
Hi @Yun43, would you mind posting a picture of the event you are talking about? And maybe what you are seeing?
It would really help.
I´m new in rpg mmz..
Hi @Yun43, would you mind posting a picture of the event you are talking about? And maybe what you are seeing?
It would really help.
I wish I could but I don't know how to make that event. That's why I ask here.
The thing is, doors by default don't have passwords, at least the "quick event" doors don't, so it depends entirely on what sort of password you actually need here. Rather than asking us how to do a vague nebulous thing, tell us what you want in terms of the gameplay experience, and we can go from there on how you can implement it.
I don't know how to start.
My game is about helping a king. There is a password on the gate. When you come back to the gate, you must rewrite the password
When the player touches that gate, it sounds like there an event that happens asking a player to enter a password?

Could you post a picture of what you are seeing? Or the picture of the code/event which runs when the player interacts with the gate?
When the player touches that gate, it sounds like there an event that happens asking a player to enter a password?
It is so clear that it was an event. I meant to remove the name post after players go through that gate.
Hi Yun43,

You are new to RPGMaker, and you do not know yet how to create an event. Is this correct? In that case, please go through the tutorial first, as it is impossible to help you if you do not have the most basic knowledge.

Regarding your "password-locked door", there are a few considerations:

1. a mechanism to randomize the password
2. a variable to store the password
3. a way for the player to view the password (for example is there an NPC that will tell the player the password?)
4. a variable to store the player input
5. a mechanism that will open the door when the player input is equal to the entered password

I'm not sure where to start. You have so far not posted a single screenshot, nor answered key questions asked by the others. We very much would like your RPGMaker experience to be as enjoyable as possible, but please help us help you.

Spoiler: sampe map
1691889753831.png
Spoiler: sample of how to generate random password
1691889450630.png
Spoiler: sample of how to password-lock the door
1691889568216.png
Spoiler: contents of password-locked door
◆Input Number:PasswordAttempt, 4 digits
◆If:Password = PasswordAttempt
◆Play SE:Chime2 (90, 100, 0)
◆Wait:60 frames
◆Play SE:Open1 (90, 100, 0)
◆Set Movement Route:This Event (Wait)
: :◇Direction Fix OFF
: :◇Turn Left
: :◇Wait:3 frames
: :◇Turn Right
: :◇Wait:3 frames
: :◇Turn Up
: :◇Through ON
◆Play SE:Move1 (90, 100, 0)
◆Set Movement Route:Player (Skip, Wait)
: :◇1 Step Forward
◆If:Player is facing Up
◆Transfer Player:CASTLE (2,5)
◆
:Else
◆Transfer Player:CASTLE (2,7)
◆
:End
◆Set Movement Route:This Event (Wait)
: :◇Turn Right
: :◇Wait:3 frames
: :◇Turn Left
: :◇Wait:3 frames
: :◇Turn Down
: :◇Through OFF
: :◇Direction Fix ON
◆
:Else
◆Wait:60 frames
◆Play SE:Buzzer2 (90, 100, 0)
◆
:End

I hope this helps.
yes ok thanks for all the help. Sorry I'm not brand new, I haven't used rpg maker mz much.
That's no problem! I've included some samples in the SPOILER tags. If this is not what you wanted, please shout.
When players have entered the solution word name input should be cleared when players have gone through the gate, that's what I wanted. And later when player has to write again when he comes back to the gate. Is it possible to do that?
So, if I'm understanding you correctly, you have set up your password event so that you use the event command 'Name Input Processing' and you have made a "fake actor slot" for the password? And then you have an if-statement, that if that actor IDs name is XYZK, then the door opens?

You can "reset" it by using the 'Change Name' event command to change that actor's name to AAAA at the end of your door event. That seems kind of pointless though, because you'd anyway have to write something again when interacting with the door? Unless your event is set up somehow differently, or flips to a different page when it's entered correctly for the first time, but we can't know about that, since you won't show a pic how you've made it.
My best guess for what you're looking for on the basis of your posts so far is the input for your password resetting to blank so that the player can enter a new string, and I'm assuming you're doing this using a dummy actor and "input name". If that's the case, as rpgLord69 says, you can change the password actor's name to "" after the name input check.
Ok thanks for all the help, I've got ideas.

Have a good day.🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-reset-the-password-to-the-door-rpg-maker-mz.160240/