Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Reishadowen on April 24, 2006, 04:48:07 PM
-
Since I can't find anything here, or at GW, and the search button here keeps crashing me, How do you change key configuration, or add additional keys to do extra actions? My RPG will require extra buttons, and the cancel/accept are'nt enough. Any help?
-
Switch from RM2K to RM2K3. 2K3 has more key input commands, hence more assignable actions.
And before you ask: read this. (http://charas-project.net/forum/showthread.php?threadid=16014&forumid=22&catid=8)
-
Originally posted by Warxe_PhoenixBlade
And before you ask: read this.
What the heck did that do?
-
Bluhman
What the heck did that do?
Proved that i'm an idiot. >_<
Link fixed
-
Warxe an idiot? Since when? O_o My speech has been downsized to single words.
-
Originally posted by Warxe_PhoenixBlade
Switch from RM2K to RM2K3. 2K3 has more key input commands, hence more assignable actions.
And before you ask: read this.
Ok, first off, I'm already using 2003 version. Second, I don't know about any of that illegal translation of posting stuff, I just want to know how to make customizable keys, and add keys for more in-game commands and such. I've looked over the 2003 version, and either I don't know what I'm looking for, or it does'nt exist. Can anyone help me?
-
Nevermind about that link, then.
In order to create new keys, you'll have to use a Key Input Process command (might also be called Password). Open up the Database, and go to Common Events. Create a new event, name it what you like, and set it to Parallel Process (putting a switch on is optional). In the code, create a Key Input/Password (it's on page 3 of the Event Commands list), with the keys that you want to use checked. Make sure you set the variable to something you won't use later.
After that, create a Conditional Branch/Fork Condition, checking if the variable is equal to a certain number. For example, if you want Shift to trigger something in-game, use the branch to check if the variable is 7. Inside the branch, insert the code that you want to trigger.
If more clarification is needed, please post again.
-
Originally posted by Warxe_PhoenixBlade
Nevermind about that link, then.
In order to create new keys, you'll have to use a Key Input Process command (might also be called Password). Open up the Database, and go to Common Events. Create a new event, name it what you like, and set it to Parallel Process (putting a switch on is optional). In the code, create a Key Input/Password (it's on page 3 of the Event Commands list), with the keys that you want to use checked. Make sure you set the variable to something you won't use later.
After that, create a Conditional Branch/Fork Condition, checking if the variable is equal to a certain number. For example, if you want Shift to trigger something in-game, use the branch to check if the variable is 7. Inside the branch, insert the code that you want to trigger.
If more clarification is needed, please post again.
Ok, now, does the variable instantly return to zero once the key is'nt depressed any more, or will it stay at 7 even after I let go of the shift key? If so, how do I get it to reset? Is there a simple solution or will I have to program like five different events for it or something? Also, thanks for the help.
-
You'll have to reinitialize the variable yourself. Also keep in mind that if you want the user to tap a key you'll have to check if the prevous keypress was the same to prevent that the user can simply hold down the key.