RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How do you make button press events?

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 86
My question is, how would one make an event call trigger when the player presses a key, say, "H"?

An example: Player press "H" to call an event, $scene = Scene_Open_Menu.new

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
isn't there an event option for button input?
Watch out for: HaloOfTheSun

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Conditional Branch: Button Pressed

Also, Button Input Processing: Conditional Branch: Variable


They can each be used for different situations. Regardless, you will probably want a parallel process common event to do it.

*
Rep:
Level 87
that's only useful if you want to use the predefined buttons.  I have no idea if H is one.

There's a script somewhere around for button input.  Have a bit of a search in the scripts database - I'm almost certain I got it from here.
Always remember you're unique.
Just like everybody else.