[RESOLVED] [Request] Door Combination?

Started by nerissya, February 27, 2008, 03:49:02 pm

Previous topic - Next topic

nerissya

February 27, 2008, 03:49:02 pm Last Edit: February 28, 2008, 06:16:51 pm by nerissya
Hello. How do i make it so that some doors need a code to be put in in order to open it? Thanks you. =)


Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<

winkio

February 27, 2008, 07:23:55 pm #1 Last Edit: February 27, 2008, 07:26:19 pm by winkio
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...

nerissya

February 28, 2008, 06:10:23 am #2 Last Edit: February 28, 2008, 06:20:05 am by nerissya
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. =)


Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<

winkio

Good.  Make sure to change title to [Resolved] then.

nerissya



Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<

Blizzard

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".
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nerissya

Yeah i noticed, but dont post in my locked topic. >= )


Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<