Charas-Project

Game Creation => RPG Maker => Topic started by: evmaster on January 04, 2015, 06:24:08 PM

Title: Rpg maker vx ace Input Numbers
Post by: evmaster on January 04, 2015, 06:24:08 PM
So I'm trying to make an input number tied with conditional branches and variables. Like a password.

IE: If this xxxxxx is put in, this happens. If xxxxxx is put in, this happens.

I've been doing google searches but I cant find a simple site without them saying they are using a script or something.

It's been awhile since I've made something like this, I really just need a reminder. I think I made one in rpg maker 2003 but trying to figure it out again.

I thought it went something like making a variable with the numbers you want as the password and then making a conditional branch IF the numbers match or else.

If someone would just kindly tell me in what order this all was again that be great. Thanks.
Title: Re: Rpg maker vx ace Input Numbers
Post by: Rahl on January 06, 2015, 05:16:07 AM
What you have to do is this:

Set Variable A = 1111
Set Variable B = 2222
Set Variable C = 3333

Input Varible D (Variable Size 4)

Conditional Branch
           If Variable A = Variable D
                         then; blah blah blah
   <else>
Conditional Branch
           If Variable B = Variable D
                         then; blah blah blah
   <else>
Conditional Branch
           If Variable C = Variable D
                         then; blah blah blah
   <else>
End Event Processing


This will bring up a dialog box with 4 slots for numbers if they input 1111, 2222, 3333 then each corresponding branch will happen, if they put in anything else then nothing will happen (end event processing), or instead you could put something like incorrect password or something along those lines.
Title: Re: Rpg maker vx ace Input Numbers
Post by: evmaster on January 11, 2015, 04:57:48 PM
Thanks. I was able to figure this out before your reply. xD