Chaos Project

RPG Maker => Event Systems => Event System Requests => Topic started by: nerissya on February 27, 2008, 03:49:02 pm

Title: [RESOLVED] [Request] Door Combination?
Post by: nerissya on February 27, 2008, 03:49:02 pm
Hello. How do i make it so that some doors need a code to be put in in order to open it? Thanks you. =)
Title: Re: [Request] Door Combination?
Post by: winkio on February 27, 2008, 07:23:55 pm
Nice and easy, here ya go:

Input Number (variable for number to be stored, number of digits)
Conditional Branch(variable for number to be stored == combination)
  Self Switch A = ON
Else
  Text: Wrong!


Example:

Input (Variable 0051: input, 5)
Conditional Branch(Variable 0051: input == 35794)
  Self Switch A = ON
Else
  Text: Wrong!


In this example, the combo is 35794.  The system asks you to give it a 5 digit number, then checks it against the right number.

Tell me if you need me to explain it more carefully...
Title: Re: [Request] Door Combination?
Post by: nerissya on February 28, 2008, 06:10:23 am
I got it to work.. almost, forgive me but.. how do i make an 'Else' command? o.o Yeah i know, im stupid. o.o

Nvm my rmxp just screwed up. i fixed it. =) Thanks you. =)
Title: Re: [Request] Door Combination?
Post by: winkio on February 28, 2008, 06:14:28 pm
Good.  Make sure to change title to [Resolved] then.
Title: Re: [Request] Door Combination?
Post by: nerissya on February 28, 2008, 06:16:31 pm
Im on it. =)
Title: Re: [RESOLVED] [Request] Door Combination?
Post by: Blizzard on February 29, 2008, 07:20:16 am
If you want to add an "else" branch, simply check the little box in the conditional branch window that says "Set hanlding when conditions do not apply".
Title: Re: [RESOLVED] [Request] Door Combination?
Post by: nerissya on February 29, 2008, 07:47:41 am
Yeah i noticed, but dont post in my locked topic. >= )