//Vader B state Base { Conditions { } Actions { CanAttack CanSeeBehind SetState "Update" } } //==============Intro state Intro { Conditions { } Actions { SnapToLocator "name=Start" "indexed" Idle } } state Update { Conditions { if Message "ShowHearts" == 1 goto Fight } Actions { FollowPlayer "0.75" } } state Fight { Conditions { } Actions { AttackOpponent "range 0.5" } } state Winner { Conditions { } Actions { FaceCamera "1" "look_at_camera" PressJumpButton FaceCamera "look_at_camera" } } state Loser { Conditions { } Actions { FaceCamera "look_at_camera" } } state SnapToPuzzleArea { Conditions { } Actions { SetHitPoints "4" SetLocator "indexed" "name=Step2" SnapToLocator } }