Hello everyone, this is my first post, and it's a pleasure to be here.
I need a script or a command that disables certain keys (X, Y or Shift for an example), but re-enables it again another time.
Can someone help me please? Thanks 😀
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
I'm not even sure this can be done ... but if it can, it'll be via scripts.
You should explain what you're trying to accomplish.
I'm using a script: Yanfly Engine Ace - Button Common Events v1.00
This script allows usage of the L, R, X, Y, and Z buttons by binding them to common events. When I press a button (example: X) my character changes his graphic (transforms itself into another character), and then, when I press (Example: Y) he turns back to normal. The problem is: He doesn't have this power in the beggining of the game, so, I want to lock those buttons so they can't be used. Or maybe, a whole new script that makes him transform. I apologize for my terrible English, and thanks for everything. 😀
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
That would have been a really helpful clue to give right at the start 😉
Please add a link to the script.
The easiest solution would be to allocate a switch to each button and turn the switches all on at the moment you want those functions enabled (so at the beginning of the game if you want them all from the very start, or at whatever point you want to allow the keys to be used).
Then in the common event, do a Conditional Branch as the very first command, to see if the switch is OFF. If it's off, do an Exit Event Processing command which will skip the rest of the common event.
If the player tries to use those keys before you turn the switches on, they just won't see anything happen, because that conditional branch will see that the switch is off and will skip to the end of the event.
Show me one of your common events - just the start of it if it scrolls to more than a screen.
[IMG]http://i.imgur.com/ZeWNiYv.jpg[/IMG]
I've seen on a tutorial that I have to use this commands, but it doesn't seen to work. I know that there's something wrong there.
Even though Switch 27 is on, and that I press B (which is R, in case) it just doesn't work; the character stays normal.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.