The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: :) on February 11, 2007, 04:04:49 PM

Title: Wrong key = messup
Post by: :) on February 11, 2007, 04:04:49 PM
How would I set it up by either events or script (but be able to call the script in events) that instead of having button imput have it so you have to press a certain button but if you press the wrong one you fail or something.

thanks
Title: Re: Wrong key = messup
Post by: Blizzard on February 11, 2007, 04:20:51 PM
You can check which button was pressed in the conditional branch part.

Now, you can use a common event, two variables and one switch. Set the first variable to the number corresponding to the "correct" key, check the button pressing and set the other variable according to which button was pressed. Now compare both variables, if they are the same, the correct button was pressed. If not, the wrong one was pressed. The just turn on/off the switch then. All you need to do is to check the switch in the normal event.
I hope I explained that well. (>.<)
Title: Re: Wrong key = messup
Post by: :) on February 11, 2007, 04:34:52 PM
thanks blizz! I will try this as soon as I get out of the eventing hole I made attempting it myself XD
Title: Re: Wrong key = messup
Post by: Blizzard on February 11, 2007, 04:39:05 PM
Lol, no problem. ;8
You help the total n00bs, I help you. ;D
Title: Re: Wrong key = messup
Post by: :) on February 11, 2007, 08:57:02 PM
Lol, no problem. ;8
You help the total n00bs, I help you. ;D

thanks a ton! I think I did it pretty good using your way, I needed this to make an ocarina

http://rmrk.net/index.php/topic,12486.0.html

worked out pretty good for a first try
Title: Re: Wrong key = messup
Post by: Blizzard on February 12, 2007, 09:39:39 AM
Nice idea! ;8
Title: Problem for FAQ
Post by: islandstudios on February 12, 2007, 04:39:25 PM
I have a problem when i want to my game. It say's "Unexpected File Format". I searched
but never there was a solution. I've worked 1 day on the game, the next day it wouldn't open again...

I had this with other games too. But then I had a back-up. Now not...

And also when I open the game itself from the folder (not the project) it say's "?????????".


DOES ANYONE HAVE A SOLUTION FOR THIS ???
Title: Re: Wrong key = messup
Post by: :) on February 13, 2007, 12:20:02 AM
starting your own new topic would help tihs get solved...my say would be to re-install the software..anyways what version you running?

(a mod can split this topic from his reply if they wants)