//JabbasPalace_B state InActive { Conditions { if FreePlay == 1 goto Activate if IAm "HanSolo_skiff" == 0 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 LukeUpdate if IAm "C3PO" == 1 and if Message "Rescued_C3PO" == 0 goto C3PO_Wait if IAm "C3PO" == 1 and if Message "Place_C3PO_By_Gap" == 1 goto C3PO_FromA ;if LastLevel "JABBASPALACE_A" == 1 goto C3PO_FromA if IAm "R2D2" == 1 and if Message "Rescued_R2D2" == 0 goto R2D2_Wait if IAm "LukeSkyWalker_Jedi" == 1 goto LukeUpdate if IAm "Chewbacca" == 1 goto ChewyUpdate if AlwaysTrue == 1 goto Update } Actions { } } state GoToUpdate { Conditions { if FreePlay == 1 goto LukeUpdate if IAm "LukeSkyWalker_Jedi" == 1 goto LukeUpdate if IAm "Chewbacca" == 1 goto ChewyUpdate if AlwaysTrue == 1 goto Update } Actions { } } //// state LukeUpdate { ReferenceScript { Script=GeneralParty Source=Global ReturnState=LukeUpdate Conditions { if PlayerOnObject "platform_duo_01" == 0 } } Conditions { if Player2Active == 0 and if PlayerOnObject "platform_duo_01" == 1 goto Lift_Plat1 } Actions { FollowPlayer "1" } } state Lift_Plat1 { Conditions { if PlayerOnObject "platform_duo_01" == 0 goto GoToUpdate } Actions { GoToLocator "name" "force" "0.5" UseForce "platform_duo_01" } } //// state ChewyUpdate { ReferenceScript { Script=GeneralParty Source=Global ReturnState=ChewyUpdate Conditions { } } Conditions { if Player2Active == 0 and if ObstacleAtStart "warden_door" == 1 and if BuildItComplete "buildit2" == 1 and if PlayerInTriggerArea "Plat_Area" == 1 goto GoToCell if Player2Active == 0 and if BuildItComplete "buildit2" == 1 and if PlayerUsingForce "platform_duo_01" == 1 goto GoToCell } Actions { FollowPlayer "1" } } state GoToCell { Conditions { if PlayerUsingForce "platform_duo_01" == 0 and if PlayerInTriggerArea "Plat_Area" == 0 goto GoToUpdate } Actions { GoToLocator "name" "cell_top" GoToLocator "name" "cell_bottom" SetState "GoToUpdate" } } //// FreePlayUpdate state FreePlayUpdate { Conditions { } Actions { } } //// state Update { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Update Conditions { } } Conditions { } Actions { FollowPlayer "1" } } /////////////Droids////////// state C3PO_Wait { Conditions { if ObstacleFinished "C3PO_Plat" == 1 goto C3PO_Rescued } Actions { SetTaggable "FALSE" NotWithParty CannotDropIn SnapToLocator "name=C3PO" } } state C3PO_Rescued { Conditions { } Actions { SetMessage "name=Place_C3PO_By_Gap" "value=0" SetMessage "name=Rescued_C3PO" "value=1" SetTaggable NotWithParty "FALSE" CannotDropIn "FALSE" SetState "GoToUpdate" } } state C3PO_FromA { Conditions { } Actions { SetMessage "name=Place_C3PO_By_Gap" "value=0" SnapToLocator "name=C3PO_From_A" SetState "GoToUpdate" } } //////////// state R2D2_Wait { Conditions { if ObstacleFinished "R2D2_Plat" == 1 goto R2D2_Rescued } Actions { SetTaggable "FALSE" NotWithParty CannotDropIn SnapToLocator "name=R2D2" } } state R2D2_Rescued { Conditions { } Actions { SetMessage "name=Rescued_R2D2" "value=1" SetTaggable NotWithParty "FALSE" CannotDropIn "FALSE" SetState "GoToUpdate" } }