Vlue 271 Posted October 14, 2012 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. 4 Share this post Link to post Share on other sites
Nate The Great 10 Posted October 14, 2012 Vlue, I can see the use for development and testing... very nice. What would be some uses for a player? (I honestly can't think of any right now, but if you have some ideas, posting them may draw more attention to this little snippet!) Just thinking out loud... 1 Share this post Link to post Share on other sites
Vlue 271 Posted October 14, 2012 Increasing a variable by button press for mini games. Switch toggling huds or similar game mechanics. Using the switch toggle feature to activate common events. (My original goal for making this) Keybinds for custom or original scenes. i.e. opening the menu with m, or a journal script with j Plenty I think :3 Share this post Link to post Share on other sites
Must 1 Posted October 14, 2012 Really nice addition It may be helpful for some minigames 1 Share this post Link to post Share on other sites
Nate The Great 10 Posted October 15, 2012 Hmm, I see everything your saying in my head... and its spawning new ideas. I see the value to the player as well as the developer now! Very nice! I'll start testing keys in the next day or two... i'll let you know if anything goes wonky. 1 Share this post Link to post Share on other sites
Geekman 3 Posted March 22, 2013 What are the terms for commercial? Share this post Link to post Share on other sites
Vlue 271 Posted March 22, 2013 What are the terms for commercial? Credit given. Don't use it to enslave the world. That's all. Share this post Link to post Share on other sites
AeghtyAteKees 11 Posted May 7, 2013 Thank you so much. 1 Share this post Link to post Share on other sites
efeberk 84 Posted May 8, 2013 Nice script but in variable section, you can add other operations and player can set like that : Symbol => [:var, 5, 3, :add] Share this post Link to post Share on other sites
AeghtyAteKees 11 Posted May 29, 2013 (edited) I have a question for you! I have a keybind set to activate a common event, and I can press the key during any scene (including message windows) and the event will run once the scene is closed. Also, if a key is pressed before the script call sets the keybind, the common event will be called as soon as the keybind is set. How can I fix these things? Edited May 29, 2013 by AeghtyAteKees Share this post Link to post Share on other sites
Vlue 271 Posted May 29, 2013 Whoo, that was a stumper. Pastebin has been updated, keybinds should only work on maps now. (It should've in the first place, man.. bleh) As for the keybind being called immediately after being set, just declare it in the script before hand like... :N5 = [:script, ""] Nothing will happen when that button is pressed and when you set it, it won't immediately run. Share this post Link to post Share on other sites
AeghtyAteKees 11 Posted May 29, 2013 Oh yeah! Thanks for the help. 1 Share this post Link to post Share on other sites
UtauGaming 0 Posted September 28, 2013 i'm trying to have it to where when you press the L button the player pulls out a lamp without having to go into the items menu, how would i do that? Share this post Link to post Share on other sites
Vlue 271 Posted September 29, 2013 Make an autorun common event, and then set the L button to turn on the switch for that common event, and have that same common event turn the switch off when it's done so it doesn't repeat itself. Share this post Link to post Share on other sites
Wren 179 Posted October 5, 2013 This one is really cool! How did I miss this script, I slink around the completed script forum probably 85% of the time I'm on here now, hah! Thanks for this one Vlue! 1 Share this post Link to post Share on other sites
Cairyn 0 Posted June 21, 2014 I'm probably asking stupid questions, but this is my very first experiment involving scripting. Does this script override standard keybinds from the game? I find the game's controls confusing for new people, and they aren't automatically set a certain way when you export a game. It makes it hard to put instruction into the game of what each button does, when it resets for every person that downloads it. I hope that's understandable? I'm not great with words. I understand how to use the script to bind keys; I bound a key to activate a switch, and it's all working as intended. But I've been looking through the standard scripts of the game, and I can't find the standard controls. I suppose I just don't recognise it. Could you help me out? I'm sorry if I'm not very clear, I don't know how to phrase it. Share this post Link to post Share on other sites
Vlue 271 Posted June 23, 2014 It doesn't override the standard keybinds. They are handled through the Input module. This is just in addition. Share this post Link to post Share on other sites
Fallun 0 Posted April 2, 2015 Hey Vlue sorry for asking this annoying question but i was just wondering if this script is for non commercial only? It says you can use for both commercial and non commercial on header Share this post Link to post Share on other sites
n03113 0 Posted March 9, 2021 If you use the variable command with only 2 variables available, will it just change between the two instead of increasing the variable? Share this post Link to post Share on other sites