• Hey! Register here to create your account, engage with the community, and talk about what is new!

I'm having trouble creating a thirst system.

zoomneon

New member
Overlord
Joined
Nov 20, 2021
Messages
17
Reaction score
3
I have a survival game and I want to make a thirst system, but I cant seem to figure out a practical way how.
The thirst bar has 9 - (like hearts) but I'm not sure how to make a good system, right now I've tried having 9
variables each of them being called (t1, t2 and so on) but it's not very practical.

Any ideas?

2022-04-02_12.11.28.png

2022-04-02_12.10.18.png
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,253
Reaction score
351
you can use 2 variables and a repeat multiple times.
first, name a variable to something like %default thirst and set it to the player's thirst, then in a loop, name the 2nd variable to something like %default thirst text and place a repeat multiple times and put the first variable inside, now place a Set Variable: set to text and put the second variable in the first and the second slot and put a text of your choice in the third slot (that text will be display), and then display the thirst, after the repeat purge the second variable and you should be done.
 
Top Bottom