Magnetite system from SMT

How can i make a system similar to how magnetite works in game like Shin Megami Tensei?
Could you explain how magnetite works? People won't automatically know what magnetite is, and it would be appreciated if you put some info on what it was for the people who don't know.
Could you explain how magnetite works? People won't automatically know what magnetite is, and it would be appreciated if you put some info on what it was for the people who don't know.
The way it works is that when a actor is active in the party on the field the actor will have a specific magnetite cost and every time the player takes a step, the current amount of magnetite the player has will be reduced by said actor's magnetite cost. If the player as no magnetite left, all actors that needed magnetite to be active in the party will take damage. Hopefully this explanation was good enough.
Bump
Bump

@Earthboundstar123, please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.

This thread shows how to run an event when a player takes a step.


Shaz's answer is the most straightforward.
This thread shows how to run an event when a player takes a step.


Shaz's answer is the most straightforward.
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/magnetite-system-from-smt.133867/