
Turtles can remember information about themselves using turtle variables. This information is often referred to as "state".
Can you create a StarLogo program in which turtles gain and lose energy? How might your turtles behave or look differently as their energy level increases or decreases? How does that help you visualize the turtles' changing states?
For examples of turtle "state" programs, see salt diffusion, energy, and slime.
For hints on ways to use variables in StarLogo, check out the documentation on variables and the QuickDoc on turtle variables.