0 votes
by (200 points)
retagged by
I think I have seen this question before, but I couldn't find it now. How can I set a vaue as a max value to adding to it such as (set: $stamina to it +30) if stamina is already at say 80, I don't want it to go over the max 100 when sleeping or eating.

1 Answer

0 votes
by (63.1k points)
selected by
 
Best answer

See this question

by (200 points)

Awsome thx. Iv also just found a similar thing like with $stamina, to use $max_stamina. now with this:

(set: $stamina to 100)
(set: $max_stamina to 100)

(if: $stamina > $max_stamina)[(set: $stamina to $max_stamina)]

Its a simple adjustable max value keep as a check, also to allow for in increase due to leveling up.

...