How to make Passwords in game?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
thecrimsondm
Slime
Posts: 21
Joined: Sun Jun 18, 2017 3:39 am

How to make Passwords in game?

Post by thecrimsondm »

So I have tried looking into this on my own for quite some time now, and if I had only known it was this hard I might have asked sooner. here's the situation.

I want to have a secret area which can only be accessed by the player entering a secret password, words or numbers, or both if I'm feeling particularly mean. But it seems like entering the plotscript for this is confusing at best. I guess I've played too many RPG maker games as everyone uses this kind of thing on those games.

Anyone know of anywhere I can learn to do this easier, or perhaps a premade plotscript I can enter?

Any and all assistance in helping me understand this concept would be very much appreciated. Thank you. XD
User avatar
Feenicks
Metal Slime
Posts: 696
Joined: Tue Aug 10, 2010 9:23 pm
Location: ON THE AIR IN THE AIR
Contact:

Post by Feenicks »

You'll want input string() and string compare().

Failing that, just try using this script:

Code: Select all

plotscript,secretinput,begin
$1 = "secret" #put the secret code you want here
input string (2, 10, false, true) #or whatever max length you want
if(string compare(1,2)) then(
#whatever you want to happen when the code is input correctly
)
else(
#whatever you want to happen when the code isn't input correctly
)
Post Reply