Disable button help.

Hello all, I have a Hook shot assigned to Pageup key.. however i want that key disabled until the player gets the Hook shot.
Is there anyway i can disable Pageup thank you.

@Zerothedarklord
I assume you already have either Yanfly Button Common Events or
Himeworks Common Event Buttons.
In that case, you'd need to put conditional branch in the common event for that "Hook Shot".
You can set Hook Shot switch or Hook Shot item as the required condition,
and put the actual Hook Shot event inside that condition.
Leave the else branch blank.
I assume you already have either Yanfly Button Common Events or
Himeworks Common Event Buttons.
In that case, you'd need to put conditional branch in the common event for that "Hook Shot".
You can set Hook Shot switch or Hook Shot item as the required condition,
and put the actual Hook Shot event inside that condition.
Leave the else branch blank.
I do, and thank you this makes sence i fixed it another way, i added a note tag into the Items<Hookshot> and this worked it was a case of understanding a not so English plugin. lol But this also would work as to what you surgested it's still good to know because i was looking how to make Yanfly's Common events buttons disable a key rather then enable ( as intended ). So thank you EpicFILE.

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.

Original thread: https://forums.rpgmakerweb.com/threads/disable-button-help.129887/