//CloudCityEscape_C state Base { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Base Conditions { } } Conditions { if FreePlay == 0 and if IAm "C3PO" == 1 and if InTriggerArea "Start" == 1 and if EitherPlayerInTriggerArea "Start" == 0 goto C3PO_WaitToBePickedUp if FreePlay == 0 and if IAm "R2D2" == 1 and if InTriggerArea "Start" == 1 and if EitherPlayerInTriggerArea "Start" == 0 goto R2D2_WaitToBePickedUp //Lift if FreePlay == 0 and if IAm "C3PO" == 1 and if InTriggerArea "Lift_Bottom" == 1 and if EitherPlayerInTriggerArea "Lift_Bottom" == 0 and if EitherPlayerInTriggerArea "Start" == 0 goto GoToLift if FreePlay == 0 and if IAm "R2D2" == 1 and if InTriggerArea "Lift_Bottom" == 1 and if EitherPlayerInTriggerArea "Lift_Bottom" == 0 and if EitherPlayerInTriggerArea "Start" == 0 goto GoToLift if DoorOpenedByPlayer "conveyor_button" == 1 goto CrossConveyorBelt } Actions { FollowPlayer "1" } } state C3PO_WaitToBePickedUp { Conditions { if EitherPlayerInTriggerArea "Start" == 1 goto Base if InTriggerArea "Start" == 0 goto Base } Actions { GoToLocator "name" "Grab_C3PO" "waittime=9999999999" } } state GoToLift { Conditions { if EitherPlayerInTriggerArea "Start" == 1 goto Base if EitherPlayerInTriggerArea "Lift_Bottom" == 1 goto Base if OnObject "lift_static_up" == 1 goto LiftAtTop } Actions { GoToLocator "name" "Lift_1" "waittime=9999999999" } } state LiftAtTop { Conditions { if Timer > 2 goto Base } Actions { ResetTimer GoToLocator "name" "Lift_Top" "waittime=9999999999" } } state R2D2_WaitToBePickedUp { Conditions { if EitherPlayerInTriggerArea "Start" == 1 goto Base if InTriggerArea "Start" == 0 goto Base } Actions { GoToLocator "name" "Grab_R2D2" "waittime=9999999999" } } state CrossConveyorBelt { Conditions { if DoorOpenedByPlayer "conveyor_button" == 0 goto Base } Actions { GoToLocator "name" "Conveyor_Belt" } }