Special Keybinds

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Vlue, Oct 15, 2012.

    Tags:
  1. Vlue

    Vlue Talent Extraordinaire Member

    Messages:
    589
    Likes Received:
    370
    Location:
    Canada
    First Language:
    English
    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.
     
    #1
    Fallun, Bodro, Dr.Yami and 2 others like this.
  2. The Stranger

    The Stranger The Faceless Friend Veteran

    Messages:
    2,668
    Likes Received:
    14,317
    Location:
    Birmingham, England
    First Language:
    English
    Primarily Uses:
    RMMV
    This looks like an awesome little script! Just the thing I was looking for.

    Thank you for making this.
     
    Last edited by a moderator: Oct 15, 2012
    #2
    Vlue likes this.
  3. NO!

    NO! Adventurer Member

    Messages:
    221
    Likes Received:
    10
    Location:
    Caerdydd
    First Language:
    Cymraeg
    This is amazing. Cheers, good fellow!
     
    #3
    Vlue likes this.
  4. Bob Saget

    Bob Saget Veteran Veteran

    Messages:
    66
    Likes Received:
    2
    First Language:
    English
    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!
     
    #4
  5. ArcaneEli

    ArcaneEli Mage of Thunder Veteran

    Messages:
    205
    Likes Received:
    34
    First Language:
    English
    http://www.nodiatis.com/personality.htm'>[​IMG]


    http://www.nodiatis.com/personality.htm'>[​IMG]
     
    #5
  6. Mr. Bubble

    Mr. Bubble Makes stuff. Member

    Messages:
    853
    Likes Received:
    161
    Location:
    Portland, Oregon
    ArcaneEli, you have been warned for spam.
     
    #6
  7. Vlue

    Vlue Talent Extraordinaire Member

    Messages:
    589
    Likes Received:
    370
    Location:
    Canada
    First Language:
    English
    Possibly, hypothetically, maybe! Check out the newer version. Should work!
     
    #7
    Bob Saget likes this.
  8. Bob Saget

    Bob Saget Veteran Veteran

    Messages:
    66
    Likes Received:
    2
    First Language:
    English
    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!

    [​IMG]
     
    #8
  9. Vlue

    Vlue Talent Extraordinaire Member

    Messages:
    589
    Likes Received:
    370
    Location:
    Canada
    First Language:
    English
    Should work with script calls like this:

    Code:
    $ki_keybinds[:N1] = [:scene, Scene_Title]$ki_keybinds[] = [:switch, 25]$ki_keybinds.delete()
     
    #9
  10. Bob Saget

    Bob Saget Veteran Veteran

    Messages:
    66
    Likes Received:
    2
    First Language:
    English
    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!
     
    Last edited by a moderator: Mar 18, 2013
    #10
    Vlue likes this.
  11. Fallun

    Fallun Villager Member

    Messages:
    26
    Likes Received:
    1
    First Language:
    Danish
    Hey Vlue thanks for thi awesome script. :D

    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
     
    Last edited by a moderator: Mar 21, 2015
    #11
  12. sjmorgan86

    sjmorgan86 Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    English
    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.
     
    #12
  13. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,272
    Likes Received:
    751
    First Language:
    English
    I tried copy and pasting the kitty picture in my game and it didn't work. Plz halp!
     
    #13
  14. AeghtyAteKees

    AeghtyAteKees Nyctopheliac Veteran

    Messages:
    30
    Likes Received:
    2
    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. ;_;   
     
    #14

Share This Page