//SarlaccPit_B state InActive { Conditions { if FreePlay == 1 goto Activate if IAm "PrincessLeia_Slave" == 0 goto Activate if IAm "PrincessLeia_Slave" == 1 and if Message "Met_Leia" == 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 NormalUpdate if IAm "R2D2" == 1 and if Message "Met_Droids" == 0 goto R2D2_Wait if IAm "C3PO" == 1 and if Message "Met_Droids" == 0 goto C3PO_Wait if FreePlay == 0 goto NormalUpdate } Actions { } } state DontShootMe { Conditions { if TakenOver "cannon1" == 0 and if TakenOver "cannon2" == 0 goto NormalUpdate } Actions { GetLocatorFromGroup "name=Safe_Loc" GoToLocator } } state NormalUpdate { ReferenceScript { Script=GeneralParty Source=Global ReturnState=NormalUpdate Conditions { if Message "DiscoComplete" == 0 and if Message "DiscoState" == 0 and if InTriggerArea "Cannon_Fodder" == 0 } } Conditions { ;if ObstacleAtStart "exit" == 1 and if Message "DiscoState" > 0 and if Message "DiscoFloorOpen" == 1 and if EitherPlayerInTriggerArea "Disco" == 1 goto WatchDisco if TakenOver "cannon1" == 1 and if InTriggerArea "Cannon_Fodder" == 1 goto DontShootMe if TakenOver "cannon2" == 1 and if InTriggerArea "Cannon_Fodder" == 1 goto DontShootMe } Actions { ReleaseLocator FollowPlayer "1" } } state WatchDisco { Conditions { ;if ObstacleAtStart "exit" == 0 goto NormalUpdate if Message "DiscoState" == 0 goto NormalUpdate if Message "DiscoFloorOpen" == 0 goto NormalUpdate if EitherPlayerInTriggerArea "Disco" == 0 goto NormalUpdate if IAmPlayer2 == 1 goto HelpWithDisco } Actions { GetLocatorFromGroup "name=WatchDisco" GoToLocator } } state HelpWithDisco { Conditions { ;if ObstacleAtStart "exit" == 0 goto NormalUpdate if Message "DiscoState" == 0 goto NormalUpdate if Message "DiscoFloorOpen" == 0 goto NormalUpdate if EitherPlayerInTriggerArea "Disco" == 0 goto NormalUpdate if IAmPlayer2 == 0 goto WatchDisco if Message "HelpWithDisco" == 1 goto GoToDiscoLocator } Actions { FacePlayer "2" FollowPlayer "1" } } state GoToDiscoLocator { Conditions { if Message "HelpWithDisco" == 0 goto HelpWithDisco if IAmPlayer2 == 0 goto WatchDisco } Actions { SetLocator "name=DiscoHelp" GoToLocator FacePlayer } } state R2D2_Wait { Conditions { } Actions { CannotDropIn NotWithParty SetTaggable "FALSE" SnapToLocator "name=R2D2" } } state C3PO_Wait { Conditions { } Actions { CannotDropIn NotWithParty SetTaggable "FALSE" SnapToLocator "name=C3PO" } }