How do I store a key in a variable since the option have been remove in rpg maker mv (the option : key input processing)
Store a key in a variable
RPG Maker MV SupportI don't know why would you do that to be honest. There's a script called Input.isKeyPressed(key). You can find out more inside rpg_core.js, search for Input prototype.
I want to do that because im following an old tutorial for a picture event title screen. I dont really like using a lot of plugins. Last time i used rpg maker it been like 12 years and it was 2003...
In that case use the Input.isTriggered("ok") as a condition for an if.
Ok if I store a key in a script and the tutorial is like this exemple, how do I do the same thing in mv I mean to recreate the exact thing:
Key input process [Appuie Touche] (By the way the key down = 4 in 2003 and the key up = 1)
Branch if Variable [Appuie Touche] is 1
Play Se
Variable Oper: [Appuie Touche] Set 0
Branch if Variable [Appuie Touche] is 4
Play Se
Variable Oper: [Appuie Touche] Set 0
Key input process [Appuie Touche] (By the way the key down = 4 in 2003 and the key up = 1)
Branch if Variable [Appuie Touche] is 1
Play Se
Variable Oper: [Appuie Touche] Set 0
Branch if Variable [Appuie Touche] is 4
Play Se
Variable Oper: [Appuie Touche] Set 0
You just use conditional branch - script - Input.isTriggered ("down") or up.
Hold on are you wanting to store a code in a "variable"?
Or do something like you find a "key" but you just increase a variable and deduct from the key variable when you use .. the key?
Cause I can help you with both.
Or do something like you find a "key" but you just increase a variable and deduct from the key variable when you use .. the key?
Cause I can help you with both.
Its for my custom menu and title screen and for other stuff I need.
Yes I want to store a code in a variable like in rpg maker 2003 with the input key processing.
Look at first picture on my first message this is the option and on the second this is the tutorial.
i want to store the key in a variable so when I press up or down my cursor will go up or down.
Yes I want to store a code in a variable like in rpg maker 2003 with the input key processing.
Look at first picture on my first message this is the option and on the second this is the tutorial.
i want to store the key in a variable so when I press up or down my cursor will go up or down.
Hmm, I'm not sure I understand, but I set up an event in my own project, that requires a password to be entered to unlock a door somewhere else..
And if you're looking for something like that, the set up is here in these following screen shots.
Maybe you're looking for something similar?
You'll need to set a variable aside for the "input number thing" and do a conditional branch that sets the rest of it up.
And if you're looking for something like that, the set up is here in these following screen shots.
Maybe you're looking for something similar?
You'll need to set a variable aside for the "input number thing" and do a conditional branch that sets the rest of it up.
ill try the two solution 🙂
Meow, let me know if this helps, if not I'll make a video or something. It's a pleasure to help return what people helped me learn here meow.
@Sauteed_Onion No. Key input processing is unique for rpg makers 2k and 2k3. It stores keys you press in a variable while they're being pressed and sets the variable back to 0 when it's released. RMXP doesn't have key input processing anymore, because we now have access to the game's scripts and can therefore do it via scripting.
Therefore you don't save it to variable, but directly use the piece of code I provided as a condition for conditional branch.
Therefore you don't save it to variable, but directly use the piece of code I provided as a condition for conditional branch.
Oh, so it's a meowing feature? Cool, thanks for the inputs. Meow.
Original thread: https://forums.rpgmakerweb.com/threads/store-a-key-in-a-variable.97102/