• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

[Scripting Question] Gifting pokemon with passwords

  • 1
    Posts
    57
    Days
    • Seen Jul 19, 2024
    Im trying to gift the player a pokemon if they put in the correct password, I've managed to get the text box to open and i can give the player the pokemon but I'm struggling with giving the player the pokemon ONLY if they put in the right password, I would love some help also I'm pretty new to scripting and essentials in general so I'm sorry if this is a silly question i just cant find an answer
     
    You should use Mr. Gela's Password script.

    Create a new script above "Main" script in the script editor

    Paste the following inside:
    Spoiler:


    Then, in the event in which you want to give out the pokemon, you should create a Conditional Branch, with the following script as a condition:
    Spoiler:


    Replace the word "Passcode" with the words or numbers you want as the Passcode.
    Replace the phrase "Insert Password" with the phrase with which you ask for the password.
    The following two numbers (0,10) is the minimum and maximum lenght of the password the player is allowed to enter.
    The last word "false" indicates whether the passcode is case-sensitive. If you want the passcode to differentiate between upper and lower cases, change that to "true"

    I hope this helps you, it works for me so you should have no problem.

    PD: I've attached the Conditional Branch for you to look, but I forgot my RPG Maker is in Spanish lol. Hope you understand it tho.
     

    Attachments

    • [PokeCommunity.com] Gifting pokemon with passwords
      Captura de pantalla 2024-07-19 152511.png
      21.3 KB · Views: 1
    • [PokeCommunity.com] Gifting pokemon with passwords
      Captura de pantalla 2024-07-19 152650.png
      6.7 KB · Views: 1
    • [PokeCommunity.com] Gifting pokemon with passwords
      Captura de pantalla 2024-07-19 152700.png
      38.6 KB · Views: 1
    Back
    Top