Stamina

hello, so, i wanted to do stamina, using MP bar.
when it reaches 0, you cant run.

i even made a hud with SRD Hud maker, i searched everywhere but no results.

could you guys help me?
You might want to check this out, it seems to be similar to what you're looking for.

How to check if the player is dashing
You might want to check this out, it seems to be similar to what you're looking for.

How to check if the player is dashing
EXACTLY! thanks, dude!
This might help
This might help
This is basically what i want to do, but i wanted to use MP as stamina, and the script that gtoff sent didn't work for me...
This is basically what i want to do, but i wanted to use MP as stamina, and the script that gtoff sent didn't work for me...
You can modify that script to take the variable references of CurrentMP/MaxMP/MPcost or use something like http://www.yanfly.moe/wiki/Map_Select_Skill_(YEP)
You can modify that script to take the variable references of CurrentMP/MaxMP/MPcost or use something like http://www.yanfly.moe/wiki/Map_Select_Skill_(YEP)
no need, i think i found what i want
You can modify that script to take the variable references of CurrentMP/MaxMP/MPcost or use something like http://www.yanfly.moe/wiki/Map_Select_Skill_(YEP)
i got another problem, i did everything right, when i dash it costs MP, but now i cant find ANYWAY to disable dashing.

i already tried like, 10 times.

any help?
We don't know what you did to enable it in the first place since you just declared you found a solution without clarifying what it was.
We don't know what you did to enable it in the first place since you just declared you found a solution without clarifying what it was.
i found how to use MP Bar as stamina, but when it reaches 0, the player can still dash.
i found how to use MP Bar as stamina
And how would that be? So you have a script that deducts a certain amount of MP per frame while the player is dashing, but you need an additional script to disable dashing if (presumably the leading character's) MP is zero.

You will need something like Caethyril's script
And how would that be? So you have a script that deducts a certain amount of MP per frame while the player is dashing, but you need an additional script to disable dashing if (presumably the leading character's) MP is zero.

You will need something like Caethyril's script
i already looked that, i looked almost everywhere.

basically, every sprinting step you lose 1 MP.
i already looked that, i looked almost everywhere.
Ok, so what about it didn't work? What does your script look like?
Ok, so what about it didn't work? What does your script look like?
i am brazillian, so... dont mind my rpg maker
1684439484399.png
1684439470075.png
i am brazillian, so... dont mind my rpg makerView attachment 262219View attachment 262218
Your $gameSystem._dashEnabled is true whether the player is dashing or not? Why do you keep setting it true under both child conditions when you already set it to true under the parent condition? Where do you define MP de PLAYER? Is this in a parallel process?
Your $gameSystem._dashEnabled is true whether the player is dashing or not? Where do you define MP de PLAYER? Is this in a parallel process?
the variable STAMINA is MP.
i did the $gameSystem._dashEnabled just to guarantee

and yes, it is in parallel, i can record a video showing it working
Your $gameSystem._dashEnabled is true whether the player is dashing or not? Why do you keep setting it true under both child conditions when you already set it to true under the parent condition? Where do you define MP de PLAYER? Is this in a parallel process?
hello???
I think MP of Player is the max Player MP, not the current MP because when I tried your script in my project the player MP decreased but the value of the control variable Stamina never decreased.

edit: Never mind, it is the current Player MP. It wasn't updating because of the label positioned below defining the variable.
I think MP of Player is the max Player MP, not the current MP because when I tried your script in my project the player MP decreased but the value of the control variable Stamina never decreased.
i will record a video for you
I think MP of Player is the max Player MP, not the current MP because when I tried your script in my project the player MP decreased but the value of the control variable Stamina never decreased.
here

Original thread: https://forums.rpgmakerweb.com/threads/stamina.157606/