1. SEQ: Root
1.1. PAR: gob
1.1.1. SEQ:Update Variables
1.1.1.1. Timer: 1 second
1.1.1.2. hunger = clamp(hunger + 2, 0, 100)
1.1.1.3. exhaustion = clamp(exhaustion + 1, 0, 100)
1.1.1.4. paranoia = 100
1.1.2. SEQ:Score and Choose
1.1.2.1. SEQ: Score Actions
1.1.2.1.1. eat = clamp(hunger - 25, 0, 100) + clamp(exhaustion + 10, 0, 100) + danger + paranoia
1.1.2.1.2. sleep = hunger + 0 + danger + paranoia
1.1.2.1.3. hide = hunger + clamp(exhaustion + 10, 0, 100) + 0 + paranoia
1.1.2.1.4. watch = hunger + exhaustion + danger + 0
1.1.2.2. SEQ: Choose Action
1.1.2.2.1. minScore = eat; currentAction = "eat"
1.1.2.2.2. SEL: Choose Sleep
1.1.2.2.3. SEL: Choose Hide
1.1.2.2.4. SEL: Choose Watch
1.1.3. SEQ:Execute Watch
1.1.3.1. if (currentAction != "hide")
1.1.3.1.1. Condition: currentAction == "watch"
1.1.3.1.2. Assign: currentAction == "watch"
1.1.3.1.3. Detect:
1.1.3.1.4. Variable: danger = 100
1.1.4. SEL: Execute
1.1.4.1. SEQ: Execute Eat
1.1.4.1.1. precondition: currentAction != "hide"
1.1.4.2. SEQ: Execute Sleep
1.1.4.2.1. Preconditiion: currentAction != "hide"
1.1.4.3. SEQ: Execute Hide
1.1.4.3.1. Condition: currentAction == "hide"
1.1.4.3.2. Detect: Hiding Spot
1.1.4.3.3. Move: hidingtarget
1.1.4.3.4. Timer: 3 seconds
1.1.4.3.5. Variable: danger = 0; exhaustion = clamp(exhaustion + 10, 0, 100)
1.2. SEQ: Initialize
1.2.1. Variable: Hunger=0; Exhaustion=0; Paranoia=0; Danger=0
1.2.2. Variable: miniScore=0; currentAction="nothing"