I don't think you need to know Java Script to implement reduce energy through walking with events. You can link the reduction in your energy to a number of things, such as passage of time or, maybe more appropriate to your earlier description, to the number of steps taken. Number of steps is game data that is available.
You could use a Parallel event to keep track of something that reduces and restores energy without a plugin.
At least I would give that a try by experimenting.