//Tatooine_A ReferenceScript { Script=GeneralParty Source=Global ReturnState=Base Conditions { if TakenOver == 0 } } state InActive { Conditions { if FreePlay == 1 goto Activate if IAm "C3PO" == 0 and if IAm "R2D2" == 0 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate ;Activate starts the creature. Will be started at position calculated in AllocatedPickup } } state Base { Conditions { } Actions { ClearTakeOverTarget FollowPlayer "1" } } state TakeOverJump { Conditions { } Actions { SetTakeOverTarget "type=bantha" SetState "Move" } } state Move { Conditions { if HasTakeOverTarget == 0 goto Base if TakeOverRange < 1 goto TakeOver if TakenOver "TakeoverTarget" == 1 goto Base if TakenOver == 1 goto Base //if already has taken something over } Actions { FollowCharacter "TakeOverTarget" "RUN" "ignore_radius" "can_go_off_path" } } state TakeOver { Conditions { } Actions { TakeOver SetState "Base" } }