Using items from pressing a key.

  I've seen in many games, skills or items that allow you to make things by pressing a key, for example the effects in yume nikki. I want to make a skill that makes you faster when pressing... S, but that spends MP or something per step and a flashlight item that spends battery (also i don't know how to make the battery count) per sec.

  In a different topic, i can't prevent some events from appearing again when i change from map and come back. I appreciate any help and sorry for being so new in this, i feel like you are making this game not me.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


Please post your second question in a new topic (or just do some research on switches and event pages, or go over some beginner tutorials). One theme per thread, particularly as these two belong in different sections of the forum.
http://yanflychannel.wordpress.com/rmvxa/field-scripts/button-common-events/ will let you run a common event with a button press (you still have to edit the event to do what you want to do).

Original thread: https://forums.rpgmakerweb.com/threads/using-items-from-pressing-a-key.25017/