Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Hunger and thirst system

matheusfr27
Registered User
Quote
2019-08-16 18:11:58

I am trying to create the hunger and thirst system, but every time I feed the character the food exceeds 100%. would there be a method to never be overcome that 100% hunger and thirst?


just_in_case
Moderator
Quote
2019-08-17 09:06:53

use variables when a variable for example "hunger" has a value bigger than 100 set it back to 100 (hundred) simple as that...


mutan_gaming
Registered User
Quote
2019-08-17 20:15:10

That method can also be applied to health and medkit

Example: 1 Medkit = +20 Health
Your health: 90
If you use medkit, then your health would be 110
In this case, @just_in_case's method will take care of it


doomtucan
Registered User
Quote
2019-08-21 16:26:22

okay so how would i overtime loose hunger from not eating?


just_in_case
Moderator
Quote
2019-08-21 21:09:26

simply decrease the hunger variable by a value.. subtract it....


matheusfr27
Registered User
Quote
2019-08-26 00:13:14

Thank you very much, you gave me a light at the end of the tunnel! :D


doomtucan
Registered User
Quote
2019-08-26 00:29:19

thank you @just_in_case your help has made it so i can do what i need to do!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact