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: sample of how to generate random password
Spoiler: sample of how to password-lock the door
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.