//Tatooine_D state InActive { Conditions { if FreePlay == 1 goto Activate if IAm "C3PO" == 0 and if IAm "R2D2" == 0 goto Activate if IAm "C3PO" == 1 and if Message "FoundC3PO" == 1 goto Activate if IAm "R2D2" == 1 and if Message "FoundR2D2" == 1 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate ;Activate starts the creature. Will be started at position calculated in AllocatedPickup } } state Base { Conditions { if FreePlay == 1 goto Update if IAm "C3PO" == 1 and if Message "Place_C3PO_By_Gap" == 1 goto C3PO_FromA if IAm "R2D2" == 1 and if Message "Place_R2D2_By_Gap" == 1 goto R2D2_FromA if AlwaysTrue == 1 goto Update } Actions { } } state Update { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Update Conditions { } } Conditions { } Actions { FollowPlayer "1" } } state C3PO_FromA { Conditions { } Actions { SetMessage "name=Place_C3PO_By_Gap" "value=0" SnapToLocator "name=C3PO_From_A" SetState "Update" } } state R2D2_FromA { Conditions { } Actions { SetMessage "name=Place_R2D2_By_Gap" "value=0" SnapToLocator "name=R2D2_From_A" SetState "Update" } }