#--------------------------------------------- # Start state #--------------------------------------------- state Base { Conditions { if LevelValue "Stat" != 0 goto Activate } Actions { Disable } } #--------------------------------------------- # Activates the character & chooses the state #--------------------------------------------- state Activate { Conditions { if LevelValue "Stat" == 0 goto Base if LevelValue "Stat" == 1 goto Wander } Actions { Enable } } #--------------------------------------------- # Performs the combat for the creture #--------------------------------------------- state Wander { Conditions { if LevelValue "Stat" != 1 goto Activate } Actions { Followpath "WALK" } }