Escape point, rest, energy progression systems

Hello everyone, now my game has reached a certain level. But that also brings me to another problem.
As seen in the picture Right now I'm working on a chapter where the players have to survive the darkness.
The ghosts will try to drag the player into hell. And you will have to try to climb up the steep cliff..

--question--
I want my game to have this system.

- (Stamina) If you run out of energy, you lose.
-
(Rest) will increase energy. But reduce the escape points
-
(Escape Progress) If it's 100 percent, you win.
It will be counted as a percentage/point. The standard value is 50 percent.
And in addition, players still have to read what the enemy is doing. And how should the players react?

I don't even know anything about writing these things. The only thing I have is an idea. Besides that, I'm trying to find a way. But none of it turned out the way I wanted it to.
(1)
Screenshot 2024-05-03 174008.png


(2)
Screenshot 2024-05-03 174016.png


(3)
Screenshot 2024-05-03 174021.png


Thank you very much in advance. For helping.
Based on what you have explained, this seems like it can be implemented with pretty straight forward Eventing using Variables to track the values, conditional branches, and Show Choices. Not counting the visuals needed.

I'm not sure what exactly you need to know or what experience with Eventing you already have.

It would probably be good to show screenshots of what you have already tried and why it isn't working as you want.
Well make 3 variables, Stamina, Rest, Escape Progress.
Set them all to 50 or whatever.
Then in your choice selections you use control variables to add or subtract.

Then you have conditionals:
if stamina <= 0 -> game over
if escape progress >= 100 -> turn switch ON to a page to proceed event
Based on what you have explained, this seems like it can be implemented with pretty straight forward Eventing using Variables to track the values, conditional branches, and Show Choices. Not counting the visuals needed.

I'm not sure what exactly you need to know or what experience with Eventing you already have.

It would probably be good to show screenshots of what you have already tried and why it isn't working as you want.
Well make 3 variables, Stamina, Rest, Escape Progress.
Set them all to 50 or whatever.
Then in your choice selections you use control variables to add or subtract.

Then you have conditionals:
if stamina <= 0 -> game over
if escape progress >= 100 -> turn switch ON to a page to proceed event
I'm so sorry. I'm really not good at languages. What I mean is.. I don't know what this kind of system is called. So I can't find any information about it.

I would like to thank you for the advice. Now what I need to try first are variables. Maybe I need to understand about it first.
If there are any problems Or if I succeed I will update later and comment on this post again.

If possible, I'd like some help about the exact example as well, Thank you so much.
Just some small advice, if you are just learning, you probably should do some tutorials first to learn about the basics of MZ before working on a specific game project. The basics of Variables, Switches, Self-Switches, Conditional Branches, etc. are very important to learn how to use correctly.

Good luck!
OH! I have to admit.. I only watch random videos. When I thought about the basics, I actually skipped a lot. After this, I'll take my time too.

so...how about this before I go, I expect this method should work.
After randomizing the message there will be an option to choose whether to increase or decrease points. Then copy and paste according to the context...this method should work
1714738700666.png

(https://www.rpgmakerweb.com/blog/randomness-in-npc-dialogue)

Thank you for the advice. I have to learn about this and more!
I don’t see anything incorrect with your Event. It will do this every time you interact with the NPC Event.

If you are interested, my 7 oldest tutorials on my YouTube channel are specifically about dialog options and they cover different ways on doing random dialog. Although my tutorials do assume that you already know the basics.
Well make 3 variables, Stamina, Rest, Escape Progress.
Set them all to 50 or whatever.
Then in your choice selections you use control variables to add or subtract.

Then you have conditionals:
if stamina <= 0 -> game over
if escape progress >= 100 -> turn switch ON to a page to proceed event
It work! But...something wrong
I try to decrease more and more...but i can't lose
I would like to know how do I tell my current point stats?
And why can't I lose?


1714751896971.png

1714751922278.png

1714752990496.png


I record video about this problem... I have to use discord to place link
Video I recorded

I'm not sure what I did wrong. please help
OH!!!! SORRY IM SORRY!!
It's my false... I had to use <= but I misread it.
I'm so sorry...and Thank you so much about this

so.. Now only one question left.. I would like to know how do I tell my current point stats?😅
You can use Show Text and put /V[#] where the # is the number of your Variable. So Variable 12 is \V[12] and Show Text will show the value of Variable 12.
You can use Show Text and put /V[#] where the # is the number of your Variable. So Variable 12 is /V[12] and Show Text will show the value of Variable 12.
It work!! Thank you so much... now I can do it!!!
so.. I edited it to become \V[#] and it really work Thank you~
Yup, that was my mistake with the direction of the slash. If you hover over the word Text that is above the Show Text event command you will see an entire list of useful control characters.

Original thread: https://forums.rpgmakerweb.com/threads/escape-point-rest-energy-progression-systems.168299/