(MZ) Multiple number inputs at once

Hello, I was wondering if there is a way for multiple number inputs to appear at once? Specifically 4. For example to write the code for a safe, it is not my case, but it is understandable what I am trying to achieve.
4 different number inputs, all of them with just 1 digit.
Without plugins, there is only 1 number input window available at a time.

For a safe code, I'm not sure why you would want to separate the digits. There is a correct code, e.g. 1234, and all others are incorrect. Maybe give a better example?

You can extract digits of a number using the Div (integer division, /=) and Mod (division remainder, %=) operators of the Control Variables command. E.g. for a correct input 123:
Spoiler: event example
◆Input Number:Input Value, 3 digits ◆If:Input Value = 123 ◆Text:None, None, Window, Bottom : :Correct! ◆ :Else ◆Control Variables:#0002 Check = Input Value ◆Control Variables:#0002 Check /= 100 ◆If:Check ≠ 1 ◆Text:None, None, Window, Bottom : :First digit, \v[2], is wrong. ◆ :End ◆Control Variables:#0002 Check = Input Value ◆Control Variables:#0002 Check /= 10 ◆Control Variables:#0002 Check %= 10 ◆If:Check ≠ 2 ◆Text:None, None, Window, Bottom : :Middle digit, \v[2], is wrong. ◆ :End ◆Control Variables:#0002 Check = Input Value ◆Control Variables:#0002 Check %= 10 ◆If:Check ≠ 3 ◆Text:None, None, Window, Bottom : :Last digit, \v[2], is wrong. ◆ :End ◆ :End
Without plugins, there is only 1 number input window available at a time.

For a safe code, I'm not sure why you would want to separate the digits. There is a correct code, e.g. 1234, and all others are incorrect. Maybe give a better example?

You can extract digits of a number using the Div (integer division, /=) and Mod (division remainder, %=) operators of the Control Variables command. E.g. for a correct input 123:
Spoiler: event example
◆Input Number:Input Value, 3 digits ◆If:Input Value = 123 ◆Text:None, None, Window, Bottom : :Correct! ◆ :Else ◆Control Variables:#0002 Check = Input Value ◆Control Variables:#0002 Check /= 100 ◆If:Check ≠ 1 ◆Text:None, None, Window, Bottom : :First digit, \v[2], is wrong. ◆ :End ◆Control Variables:#0002 Check = Input Value ◆Control Variables:#0002 Check /= 10 ◆Control Variables:#0002 Check %= 10 ◆If:Check ≠ 2 ◆Text:None, None, Window, Bottom : :Middle digit, \v[2], is wrong. ◆ :End ◆Control Variables:#0002 Check = Input Value ◆Control Variables:#0002 Check %= 10 ◆If:Check ≠ 3 ◆Text:None, None, Window, Bottom : :Last digit, \v[2], is wrong. ◆ :End ◆ :End
Thanks for replying, you see, in my project there is a puzzle where you must memorize a numerical pattern, there are 4 bells, and you must tell another character the order that you think is correct so that he can ring them, but I also want that by giving him an incorrect order, the other character will ring the bells anyway, obviously informing you that the order was incorrect after doing so.
It's still not clear why you wouldn't have the player one, 4-digit number, then determine whether it's the correct one.

1705773443314.png
Issue more related to the lore, the bells are behind a blockade, to hit them you have to shoot them, the player tries and fails due to poor aim, this is where the other character comes in, who in the game is the archer of the group, no. It is smart enough to discover the order itself and trusts us to decipher it.
Honestly, this whole thing is to make the interface look more visually attractive, it is not something completely mandatory, I am open to more options, such as each numerical input having a text to differentiate them.
It sounds like you could just use a series of Show Choices, e.g.
  • "Which bell should I shoot first?" -> Show Choices.
  • Cutscene: he shoots, or fails.
  • If correct: "OK, which one next?" -> Show Choices.
  • Etc.
That would also prevent entering a number that doesn't make sense, e.g. 7 if there are only 4 bells.

If you want an alternative to numbering the bells, you could identify them by putting nearby symbols or letters on the wall/floor.
It sounds like you could just use a series of Show Choices, e.g.
  • "Which bell should I shoot first?" -> Show Choices.
  • Cutscene: he shoots, or fails.
  • If correct: "OK, which one next?" -> Show Choices.
  • Etc.
That would also prevent entering a number that doesn't make sense, e.g. 7 if there are only 4 bells.

If you want an alternative to numbering the bells, you could identify them by putting nearby symbols or letters on the wall/floor.
The solution was so simple, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/mz-multiple-number-inputs-at-once.164959/