How to make doors locked with a password

Status
Not open for further replies.

Vampak3r

Villager
Member
Joined
Aug 12, 2012
Messages
7
Reaction score
0
Primarily Uses
Hello there. Well, as the title says, how do I make a Passworded door where you can open it by entering the right password.....

Thanks.

I experimented through this but I still cannot make a password door. Maybe through script? If you can help me, then thanks
 

Domin0e

Like a leaf in the wind
Member
Joined
Mar 13, 2012
Messages
516
Reaction score
18
First Language
German
Primarily Uses
You could use the "Input Name" Command for characters for the password.

You'd need a "dummy character" who serves as input.

Then, you can simply use a conditional branch to check if his name is the password. If it is, unlock the door. If it's not, at least tell your player. ;)

At the end of the Event you change the dummy's name back to whatever you named him.

No scripts needed for this.

visualization, if needed.
 

Vampak3r

Villager
Member
Joined
Aug 12, 2012
Messages
7
Reaction score
0
Primarily Uses
There's still something wrong. I did exactly what you said but the door won't open and just goes to "Else" statement.

Let's say my character name is Daichi. I go to door and I choose the "dummy character" called Miwa. and characters 4.

Conditional branch I clicked on number 2 and Actor, then chose Name instead of In the party, "Lolz"

I did exactly what u did but I dunno what is wrong. It keeps going to Else.
 

Des

timefantasy.net
Veteran
Joined
Mar 2, 2012
Messages
1,371
Reaction score
510
First Language
American
Primarily Uses
N/A
show us a screenshot of the event.
 

Des

timefantasy.net
Veteran
Joined
Mar 2, 2012
Messages
1,371
Reaction score
510
First Language
American
Primarily Uses
N/A
in the future, use .png. bmp is a terrible image format.

anyway, it should be working. i just tested it myself and had no problems. this is what I did.



and it works just fine.

are you sure that you're putting in the correct password when you test in-game? case matters.
 
Last edited by a moderator:

Vampak3r

Villager
Member
Joined
Aug 12, 2012
Messages
7
Reaction score
0
Primarily Uses
It's not working with me, I have even did yours. What the hell is wrong?

Am I entering the wrong password? or what.... o-o

welp

Edit:

Shouldn't the password be in my case "lolz" while yours is "lol" while the first reply would be "Opendoor"

Right? I'm entering them in each test well, whatever "Name "X" applied"

or it does have something to the Actor I'm playing with? I'm playing with somebody called Daichi Miwa, the main actor. Or should I play with the "Dummy character" or what?
 
Last edited by a moderator:

Des

timefantasy.net
Veteran
Joined
Mar 2, 2012
Messages
1,371
Reaction score
510
First Language
American
Primarily Uses
N/A
do you have any scripts installed? usually when the program doesn't work the way it should, there is some kind of script that is interfering.
 

Vampak3r

Villager
Member
Joined
Aug 12, 2012
Messages
7
Reaction score
0
Primarily Uses
I just built a new project and it worked. It seems the script did something as you said. or I did something. Anwyays. Thank you guys :D !
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
You can try using this if you don't want to change your actor's name.

http://db.tt/EZa6FeAz

It's just something I threw together in some minutes because I wanted a way to input text and send the output to a variable that I can reference later.

You just need to use a script call



Code:
enter_text
It accepts 3 arguments



Code:
enter_text(text_display, variable_id, max_char)
Where the text display is just a message that is shown, kind of like reminding the user what they're doing

An example usage is the following event, assuming you're storing it in variable 12



Code:
Show Text: "enter something"
enter_text("Writing something")
Show Text: "You wrote: \v[12]"
 
Last edited by a moderator:

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Vampak3r, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
 

mike_your_bro

Veteran
Veteran
Joined
Aug 5, 2012
Messages
105
Reaction score
6
First Language
English
Primarily Uses
hey, you may or may not have this figured out, but if you wanted, then you could do this:

make 2 variables. one named something like 'password' and the other as something like 'password attempt',

if you want to set the password permanently you can use 'set variable = xxxx'

or you could have the password customizable by the character by having a number input processing window pop up to allow you to set the password variable,

THEN to see if the password is correct or incorrect, have a number input processing appear so the player can set the 'password attempt' variable, then have a conditional branch saying if 'password attempt' = 'password' then, else 'wrong password'.
 
Last edited by a moderator:

mike_your_bro

Veteran
Veteran
Joined
Aug 5, 2012
Messages
105
Reaction score
6
First Language
English
Primarily Uses
What if he wanted to use letters?
then your method is probably best, i was simply providing an alternative, not trying to steal your thunder here. your script seems pretty nice and honestly i may try it out myself
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Just re-read the OP. I thought he specifically wanted to use letters, since most of the replies were talking about using name input and all.
 
Last edited by a moderator:

mike_your_bro

Veteran
Veteran
Joined
Aug 5, 2012
Messages
105
Reaction score
6
First Language
English
Primarily Uses
you're right, though the original post was just asking about a password, domino3 brought up the character to use a word, which i have done before, like i said, just thought i'd throw out another option. anyways, i hope OP got the answers he wanted, regardless.
 

Vampak3r

Villager
Member
Joined
Aug 12, 2012
Messages
7
Reaction score
0
Primarily Uses
@Celianna, Ok sorry, I'll read them right now :D !

@Tsukihime: Thanks, I'll probably be using this. And I wanted a "password" really. I didn't say Letters or numbers. Thanks again :D !

@mike_your_bro: I still did not get introduced to the variables but I'll get on it after reading the rules.

Sorry for late reply, was mapping my game.
 

demmozero

Veteran
Veteran
Joined
Aug 12, 2012
Messages
41
Reaction score
0
First Language
English
Primarily Uses
What I ended up having to do was combine show choices with fork conditions in order to password a door. say the password was k n i g h t then i would put k as one of the choices and random letters/numbers for the other choices, then set a condition to where if the choice k is made it would display the next set of choices so on and so forth until the complete password was entered.
 

SoulPour777

Crownless King
Veteran
Joined
Aug 15, 2012
Messages
1,093
Reaction score
104
First Language
English
Primarily Uses
N/A
Wait, could you tell me the exact functions of your request one by one? this is doable in events though, but I wanted an exact thing so I could work on it. Please, and thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top