#--------------------------------------------- # Start state #--------------------------------------------- state Base { Conditions { } Actions { Disable MessageWait "KICK_MINOTAURS" "1.0" setState WaitForActivation } } #--------------------------------------------- # Waits until the Minotaur is activated #--------------------------------------------- state WaitForActivation { Conditions { if CheckCreatureFlag "0" == 1 goto EnableMinotaur if Message "KICK_MINOTAURS" == 0.0 goto Base } Actions { Disable } } #--------------------------------------------- # Enables the Minotaur #--------------------------------------------- state EnableMinotaur { Conditions { } Actions { Enable setState ClimbTree } } #--------------------------------------------- # Climbs the tree #--------------------------------------------- state ClimbTree { Conditions { if Message "KICK_MINOTAURS" == 0.0 goto Base if CheckCreatureFlag "0" == 0 goto Base } Actions { } }