#How do I make and Hunger system?

1 messages · Page 1 of 1 (latest)

gritty sedge
#

I wanted to create an hunger system that when time passes the npc gets more hungry using local variables with value=2 for full and 0 for hungry (slime rancher)
if you have another way to do that write that anyways thanks

harsh osprey
#

You can make a custom behavior in the slimes that haves a hunger atribute(Number atribute) with max value = 2 and a single option atribute that would be the state, then you make a "when object is created trigger" and put an infinite loop with if Hunger = 0 set state = Hungry
If hunger = 1 set state = Normal
If hunger = 2 set state = Full

gritty sedge