<Mode change script>
<11/22/09>
SummaryFirst of all I'm sorry that I'm requesting when I have under ten posts here, I realize this is bound to get me a lot of flack. The problem is that my search-fu is either weak or I'm looking in all the wrong places for this. Also after trying to read the ruby guide, I realized that I am NOT cut out to be a scripter just yet.
I'm making a Rpg/adventure game, and I really need a script to do a disgustingly basic thing. When someone presses "1" it turns switch 1 to On, and turns switches 2 and 3 off. when someone presses "2" on the keyboard it does something similar and turns On switch 2 and turns off 1 and 3. I don't think I really need to go into more detail what pressing "3" does.
Also this is optional, since I can make it an event on all the maps, but I'd rather have it floating in the upper left corner on the screen at all times. If possible I'd like an image (hopefully an animated loop/sprite, but I'll take what I can get) that corresponds with the current mode selected. Touch/use mode is a hand, eye/look is an eye, and mouth/speak is a mouth.
Yes, I probably could do this some way with a auto-run/common event somehow, but I'm trying to hog as little memory as possible. Also using events limits me to using the a,b,c keys. Also Yes, I know I can do this with skills, but it's clunky and at the moment requires the player to bring up the main menu, select skills, select their character, and choose the skill. Considering it's a major factor in the gameplay I could see it becoming frustrating and fast.
Thank you so very, very much if anybody wants to help me up with this.
Features Desired- Press keys 1/2/3 to switch between global switches 01 (use), 02 (look), 03 (speak)
- turning on one "mode" turns off the other two switches
- Show in upper-left corner of the screen which mode is active
MockupsAn event that's dependent on the global switches (and indicator in the corner)
Games its been in- Common in adventure games Like Quest for glory, exc.
Did you search?Yes
Where did you search?- On this site/the database
- Google
- Creation asylum
What did you search for?- "press button input switch script ruby" and then "rpg maker xp ruby coding basics"