How to enable Dash/Stamina Bar on RMMZ?

I found SilverDash's Stamina plugin, but I cant seem to get it to work.

I had tried:



but could only make it work with an action button...

Is it possible to make it auto run / with common events?
That links to an MV demo. In case it helps, I posted an MZ demo later in that thread:
There's probably some plugin for it, too, but I don't know of one off the top of my head.
that's what i've been using, but i can't seem to get it to work without having to click the npc and enabling it? I've been trying to run it when entering new maps or starting a new game... hmm... I tried the demo, but it required me to enable it first?
Oh, I see. Yes, you can just make a map event on the starting map, with 2 pages:
  1. Trigger: Autorun, Condition: (None), Contents:

    ◆Control Switches:#0001 Game Started = ON
  2. Trigger: Player Touch, Condition: Switch 1 is ON, Contents: (None).
Page 1 runs first (automatically because it's set to Autorun) and turns on the switch. That makes it change to page 2, which does nothing. This means it is effectively a "do once" event.

The default dash system can be disabled on a per-map basis by checking the "Disable Dashing" box in the properties window for each map.
I can make the bar go down, when on shift dash; although, the regen speed of when the bar goes back to 300 = var stamina is pretty fast.(?). If i added wait (e.g. 60 frames), it goes down without the bar regen-ing up back to full. once it reaches the limit of (60 frames), the whole bar goes to 300 stamina (max value/full) again. If i did 6 frames on wait , and 6 frames on duration + 6 frames wait. the bar just flickers down slowlllllly.... somewhat depleting... but not smoothly
  • The speed of stamina use/regen is entirely dependent on the Stamina System common event: it subtracts/adds values to the Stamina variable based on whether the player is standing (+5), walking (+2), or dashing (-8). These are relative to the maximum stamina value, which I arbitrarily chose to be 300.

  • The Stamina System event is a loop, timed to smoothly update over 6-frame intervals. It looks smooth because it scales the picture over duration = 6 frames, which is exactly the same as the wait time between loops.

    Move speed 5 travels 1 tile every 8 frames, so I wouldn't recommend a loop interval of longer than 6~7 frames. If you need it to be very accurate (e.g. for ABS or something) I'd suggest an interval of 1 frame. Otherwise it's possible to get free stamina by dashing between variable updates.
The Stamina System event breaks into several parts:
  • Check if player is moving.
  • Check if "out of breath" has worn off.
  • Update stamina based on current motion (stand/walk/dash).
  • Apply min/max stamina (apply "out of breath" at minimum).
  • Rescale the stamina gauge picture.
There are comments in my demo's events to help explain things; if that's not clear enough then I'm not sure I'll be able to explain it any better. 😴

Maybe someone else knows of an MZ-compatible plugin for this? Actually...did you try Silver's Dash Stamina with FOSSIL? That might work.
I mean is it possible to activate it without having to talk to the npc or do the event?

[This means it is effectively a "do once" event.] <- does that mean i have to do it first/talk to the npc?

Is it possible that it's been auto completed when startup?



// ok I figured it out!

Thank you for the MZ version of your script! 🙂
Great! Happy RPG Making~ 👋

Original thread: https://forums.rpgmakerweb.com/threads/how-to-enable-dash-stamina-bar-on-rmmz.155101/