//Tatooine_B state Base { Conditions { if FreePlay == 1 goto NormalUpdate if IAm "C3PO" == 1 and if Message "FoundC3PO" == 0 goto C3PO_Wait if IAm "R2D2" == 1 and if Message "FoundR2D2" == 0 goto R2D2_Wait if FreePlay == 0 goto NormalUpdate } Actions { } } state NormalUpdate { ReferenceScript { Script=GeneralParty Source=Global ReturnState=NormalUpdate Conditions { } } Conditions { } Actions { FollowPlayer "1" } } state C3PO_Wait { Conditions { if Context != -1 goto Found_C3PO if Message "FoundC3PO" == 1 goto Found_C3PO } Actions { SetTaggable "FALSE" NotWithParty CannotDropIn SnapToLocator "name=C3PO" } } state Found_C3PO { Conditions { } Actions { SetTaggable NotWithParty "FALSE" CannotDropIn "FALSE" SetMessage "name=FoundC3PO" "value=1" SetState "NormalUpdate" } } state R2D2_Wait { Conditions { if ObstacleFinished "blow_pos2_blow" == 1 goto Found_R2D2 if Message "FoundR2D2" == 1 goto Found_R2D2 } Actions { SetTaggable "FALSE" NotWithParty CannotDropIn SnapToLocator "name=R2D2" } } state Found_R2D2 { Conditions { } Actions { SetTaggable NotWithParty "FALSE" CannotDropIn "FALSE" SetMessage "name=FoundR2D2" "value=1" SetState "NormalUpdate" } }