I want to put a mechanic in through out the game where the player can find passwords and then go to a shop and input them in order to unlock areas and items. However i cant find an event command that allows user input. Is there such a command? If not is there any other way i could accomplish this?
Event Command Question
RPG Maker VXAce SupportIf you want the password to be numeric only, there's also the Input Number command (first tab of event commands, under the Message heading).
Please use meaningful titles for your threads. It helps people who have similar questions find your thread more easily. Thank you.
Please use meaningful titles for your threads. It helps people who have similar questions find your thread more easily. Thank you.
Thanks Solomon that worked perfectly my only questions is is it possible to add an other else statement to the branch like an else if in java?
Like lets say:
if Actor password is named x do x
else if Actor password is named y do y
else say wrong password
Something like this.
Like lets say:
if Actor password is named x do x
else if Actor password is named y do y
else say wrong password
Something like this.
You can't have multiple Else statements within a single conditional branch when you're eventing. What you need to do is, inside your Else statement, add a new conditional branch.
So it'll look like this:
It's not as pretty as it'd be if you were coding, but then again using event commands is not coding. Obviously the indenting with each new condition makes it difficult to read if you have too many of them.
So it'll look like this:
Code:
Conditional Branch: <test 1> ... Else Conditional Branch: <test 2> ... Else Conditional Branch: <test 3> ... Else ... Branch End Branch End Branch EndBranch End
Thanks Shaz that's what I thought oh well luckily I only plan on doing two or three pass words per main map.
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.
Original thread: https://forums.rpgmakerweb.com/threads/event-command-question.16499/