Special Keybinds

Special Keybinds v1.0

By V.M. of D.T.

​

Introduction

This neat little script allows you to bind almost any key on your keyboard to do one of three things in game. Toggle a switch, add a preset amount to a variable, or call a scene.

How to Use

Plug and play and customize as needed~

Details in the script

Script

Convenient little pastebin! Right... here. Not here.

FAQ

None atm.

Credit and Thanks

- By V.M. of D.T.

- Free to use in any non-commercial project

Author's Notes

The hardest part was writing out each constant equivalent for the keys x.x

Every key was not tested, post if a certain one doesn't work.
This looks like an awesome little script! Just the thing I was looking for.

Thank you for making this.
This is amazing. Cheers, good fellow!
This script is very wonderful, but I was wondering if it would be possible for you to add in an addition. Here is what I'm thinking.

A Script Call feature, where in-game, the player can change what is binded to those 3 keys.

For example, if they have 3 different spells binded, but want to change one, we can use the Call Script command to do so, using your script.

Do you think this can be made as an addition? If so, it would make my day!
http://www.nodiatis.com/personality.htm'>
10.jpg


http://www.nodiatis.com/personality.htm'>
10.jpg
ArcaneEli, you have been warned for spam.
This script is very wonderful, but I was wondering if it would be possible for you to add in an addition. Here is what I'm thinking.

A Script Call feature, where in-game, the player can change what is binded to those 3 keys.

For example, if they have 3 different spells binded, but want to change one, we can use the Call Script command to do so, using your script.

Do you think this can be made as an addition? If so, it would make my day!
Possibly, hypothetically, maybe! Check out the newer version. Should work!
Possibly, hypothetically, maybe! Check out the newer version. Should work!
You truly are a Talent Extraordinaire! I'm so excited to use this script, and I firmly believe some sort of donation is in order!

Now, if only I can figure out how to work it...haha.

I read the script, and understand the keybinds and the symbols, however, I keep getting an error when I test out the game.

I have a couple of questions, and I will post screenshots of the errors:

1. How do I set up the in-game script calls? Do I use "N1", ":N1", "0x31", or some other input?

2. Did I not set something up properly in the script itself?

Once again, thank you for taking the time to add this extension in, and I hope I can use your script soon!

2lmtd75.png
Should work with script calls like this:

Code:
$ki_keybinds[:N1] = [:scene, Scene_Title]$ki_keybinds[] = [:switch, 25]$ki_keybinds.delete()
Haven't had time to test this yet - but that will change tonight!

I'll edit this post to let you know if all is well! Thanks again my friend.

EDIT

Plugged in the script calls, and everything works like a charm!

This script is incredible! Thanks so much!
Hey Vlue thanks for thi awesome script. 😀

How do i setup a keybind to conditional branch? If it's possible

Example like this:

Conditional branch: if the button :N1 being pressed down

in Cond branch option

Problem is i there is only those normal buttons available 🙁 and i wanted to use Buttons like N1.

Thanks in advance
Is there any way this script could be updated to not allow special keybinded keys to work while other events are running. (parallel events excluded.) My issue is that people can hit the special keybinded keys during auto run events, dialogue, ect and mess up the flow of things by triggering switches, ect that are meant to only be used when you aren't talking to that npc, looting that chest or going through that cut scene.
I tried copy and pasting the kitty picture in my game and it didn't work. Plz halp!
I'm having the same issue as sjmorgan86, and it's quite significant. In this case, the keys could have the same accessibility as the menu--which won't open during autorun events or during dialogue.

For now, the only tedious and impractical solution is to turn on a switch for anytime your keybind should not be accessible (i.e. anytime there's dialogue, etc), then turning the switch back off. ;_;   

Original thread: https://forums.rpgmakerweb.com/threads/special-keybinds.5511/