Erpicci Keyboard Text Input Script Help

Discussion in 'RGSSx Script Support' started by MichaelJ, May 2, 2019.

Thread Status:
Not open for further replies.
  1. MichaelJ

    MichaelJ Villager Member

    Messages:
    5
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    Hi there everyone.

    I recently got this script for my project (which is on VX Ace) https://forums.rpgmakerweb.com/index.php?threads/keyboard-text-input.36828/

    The only problem is, despite reading the posts in the thread, I'm having a hard time understanding something.
    I'm wondering if any of you, could explain in simple terms how to:
    • Make it so that when I input a certain word (Such as 'Amulet') a Show Text comes up saying 'I found it!' followed by a Change Items.
    I'm absolutely stumped. Normally after a while I'm able to solve any problems I encounter in developing my project but right now, I reall need someone to explain this to me clearly.

    Thank you for your time!
     
    #1
  2. Shaz

    Shaz Veteran Veteran

    Messages:
    37,793
    Likes Received:
    11,502
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Something like this might work ...

    Code:
    Script: $game_variables[80] = text_input("Window Title")
    Conditional Branch: Script: $game_variables[80].upcase == 'AMULET'
      Show Text: I found it!
      Change Items: Amulet += 1
    Else
      ... do whatever you want to happen if they don't enter amulet
    End
    Replace "Window Title" with whatever title you want displayed on the input window.

    The .upcase and AMULET in caps will ensure a match, whether they type amulet, AMULET, Amulet, or any variation. If you want them to type it exactly as Amulet, then omit the .upcase and put Amulet as the string to compare.

    And of course, where I've used variable 80, you use whatever you have available (and make sure you name it so you don't accidentally use it for something else)
     
    #2
    MichaelJ likes this.
  3. ZirconStorms

    ZirconStorms VX & VX Ace Scripts Veteran

    Messages:
    332
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMVXA
    upload_2019-5-2_6-48-16.png
    ..Shaz was quicker to reply than I was, lol. Oh well.
     
    #3
    MichaelJ likes this.
  4. MichaelJ

    MichaelJ Villager Member

    Messages:
    5
    Likes Received:
    2
    First Language:
    English
    Primarily Uses:
    RMVXA
    Thank you Shaz and tv.ghost!
    Your help is much appreciated and has allowed me to continue working on my project.
    Having written examples has helped a lot so thanks again for that.
     
    #4
  5. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,925
    Likes Received:
    10,636
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #5
Thread Status:
Not open for further replies.

Share This Page