#--------------------------------------------- # Start state #--------------------------------------------- state Base { Conditions { if LevelValue "Thrw" != 0 goto Activate } Actions { Disable } } #--------------------------------------------- # Activates the character #--------------------------------------------- state Activate { Conditions { if LevelValue "Thrw" == 0 goto Base if LevelValue "Thrw" == 2 goto ThrowAtPlayer } Actions { Enable NoRingSeg "true" PrimeBow } } #--------------------------------------------- # Throw the rock at the player #--------------------------------------------- state ThrowAtPlayer { Conditions { if LevelValue "Thrw" == 0 goto Base } Actions { PressActionButton SetState "Wait" } } #--------------------------------------------- # Waits before picking up the next rock #--------------------------------------------- state Wait { Conditions { if LevelValue "Thrw" == 0 goto Base } Actions { Idle "mintime 100.0" "maxtime 100.0" } }