How do you use a variable input to flip a self switch?

Discussion in 'RPG Maker MV' started by Sauteed_Onion, Feb 6, 2018.

  1. Sauteed_Onion

    Sauteed_Onion Mmm Tasty Veteran

    Messages:
    554
    Likes Received:
    3,658
    Location:
    Perhaps on a steak or cheeseburger
    First Language:
    English
    Primarily Uses:
    RMMV
    Ok, basically I would like to know how to have a variable code input set up so it asks for me to input a code, and if successful it activates a self switch. What I have so far is wrong.. I can put the code in incorrectly and it just flips the self switch anyways. Meow, please help and thank you for looking at my thread.
    IMG_20180205_170223.jpg
     
    #1
  2. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,509
    Likes Received:
    955
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    You need to move the Input Number command outside of the conditional branch. Here is an example:

    2018-02-05 19_32_29-ID_006 - Event Editor.png

    Also, you can press Alt-PrtSc to take a screenshot rather than with your phone :)
     
    #2
    Llareian and Sauteed_Onion like this.
  3. Sauteed_Onion

    Sauteed_Onion Mmm Tasty Veteran

    Messages:
    554
    Likes Received:
    3,658
    Location:
    Perhaps on a steak or cheeseburger
    First Language:
    English
    Primarily Uses:
    RMMV
    Thanks meow, I will try it out and see what happens. Thanks for the tip about the print screen too, it might help people receive more information. Right now I am not around an internet source for my computer so I put a band-aid style solution on it so to speak. Any other tips you want to add please feel free. I am still trying to grasp the fundamental basics but doing unusual things I wouldn't have thought of before. Meow.
     
    #3
  4. Andar

    Andar Veteran Veteran

    Messages:
    28,132
    Likes Received:
    6,372
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Follow the link "starting point" in my signature to the variables guide - that is a tutorial game that explain how to use variables.
     
    #4
    Sauteed_Onion and Llareian like this.
  5. Llareian

    Llareian Jack of All Trades, Master of None Veteran

    Messages:
    603
    Likes Received:
    1,400
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    If you get to the Input Number part, you must have also set up your condition incorrectly.
    Make sure in your conditional branch that you're checking if the Variable (named 55618...might help to put a word or letter in front to let yourself know that's a variable and not a number) is equal to CONSTANT 55618. Right now I'm thinking you must have it set up to check if the Variable is equal to the Variable.
     
    #5
    Sauteed_Onion likes this.
  6. Sauteed_Onion

    Sauteed_Onion Mmm Tasty Veteran

    Messages:
    554
    Likes Received:
    3,658
    Location:
    Perhaps on a steak or cheeseburger
    First Language:
    English
    Primarily Uses:
    RMMV
    It was kind of a weird thing to do I suppose. But, @Aloe Guvner knocked it out of the park for me. +2 brownie points for that one meow.
     
    #6

Share This Page