Disabling Button Input Temporarily

● ARCHIVED · READ-ONLY
Started by Dymdez 8 posts View original ↗
  1. Hi all,

    Is there a quick way in which we can disable a certain button input temporarily?
  2. It's possible... How to do it would depend on where you wanna do it, and whether you have custom input scripts or not
  3. Alright well it does have to deal with a custom input script but no one ever helps with those in my year of experience here, so I'll just work it out some other way.
  4. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    then post a link to the script. We can't help you if we don't know what you have to work with.


    And to be fair, how many people have asked for help with custom input scripts? I don't recall seeing too many. And even if there were some, and they weren't resolved, doesn't mean yours won't be. Saying "I know you're not going to help me with a script, so I'm not even going to ask" kind of puts the blame back on you when you can't get it working. If the best place to disable it is in the script, why would you want to take a different approach that might not work as well, just because some other script request made by some other person went unfulfilled? I can show you hundreds of script requests that WERE taken care of.
  5. Most of those scripts have their own methods for checking a button press (modifying the hidden default one), so I think it will be a matter of adding a check to it so that it wouldn't return true for that button when you want it (possibly using a switch or variable)


    And you also still haven't answered the other thing, where/when would you want it disabled? Is it on the map, a menu etc?


    Because we can also just disable the button press handler of the specific scene or scenes regardless of what script ur using
  6. What are you trying to accomplish?
  7. After playing his demo game, I know exactly what is he trying to do, and it is reasonable.


    No idea why Falcao did not do this by default...


    So, you can open the quick tool selection menu even at your cut-scenes.


    This is what you want to disable, right?


    Easy enough, here is what you need to do:


    At the "Pearl Battler Settings" script search for 'if PearlKey.trigger?(Key::QuickTool)' line. By default it is on line 240.


    Just after this line insert this:

    return if $game_switches[id] == trueReplace 'id' with the ID of the switch you want to reserve for disabling the quick tool selection menu.
    After this, every time you want to disable the quick tool menu, simply turn ON that switch in your game and the player will not be able to call the menu.


    I hope this is what you wanted. :)
  8. Haha, sorry I had to act like a baby to get what I wanted. It's just that I ran into a series of really discouraging bugs and felt overwhelmed - I'm just one person with no scripting knowledge trying to make a game -- it can be a bit much at times. Thanks guys, esp. Sixth! Works perfectly!