• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Event with a Password

  • 6
    Posts
    8
    Years
    • Seen Jan 13, 2017
    Hello guys,

    I've a short question.
    I want to implent a lift which only works with a password.
    How can I set up an event where the player needs to enter the correct code to get through?

    Thank you!
     
    Something like this should work. It stores whatever the player writes in variable 1.
    2 and 7 are the minimum and maximum lengths allowed.

    pbSet(1,pbEnterText("Password?"),2,7))
    Conditional Branch: $game_variables[1]=="What the password should be"

    Then whatever should happen if the password is right.
     
    Last edited:
    There's bit of a meta problem with that approach vs say, the Trick Master's way of doing it:
    Players can skip sections by just looking it up online.
    I guess you could randomise it for each game, but then you might as well just do it like the Trick Master.
     
    Something like this should work. It stores whatever the player writes in variable 1.
    2 and 7 are the minimum and maximum lengths allowed.

    pbSet(1,pbEnterText("Password?"),2,7))
    Conditional Branch: $game_variables[1]=="What the password should be"

    Then whatever should happen if the password is right.

    Thank you HarmonyConcept! It works perfectly.
     
    Can someone help me? I'm a newbie, can someone send me the image of how to do it like mine? Where am I going wrong?[PokeCommunity.com] Event with a Password
     
    I want to put the password 1234, how can you send an image of what it would look like?
     
    I want to put the password 1234, how can you send an image of what it would look like?

    There's a built-in command to prompt the user to input a number instead of text and store it in a variable in rpg maker. Idk how well it works with essentials, but maybe you could try that instead.
     
    Back
    Top