//Dagobah_E state Base { Conditions { if FreePlay == 1 goto R2D2Update if Message "DagobahTraining" == 1 and if IAm "Yoda" == 1 goto YodaStart if IAm "R2D2" == 1 goto R2D2Update if AlwaysTrue == 1 goto NormalUpdate } Actions { FollowPlayer "1" "add_party_offset" } } state NormalUpdate { ReferenceScript { Script=GeneralParty Source=Global ReturnState=NormalUpdate Conditions { } } Conditions { } Actions { FollowPlayer "1" "add_party_offset" } } state R2D2Update { ReferenceScript { Script=GeneralParty Source=Global ReturnState=R2D2Update Conditions { if InTriggerArea "EndBit" == 0 } } Conditions { // if InTriggerArea "EndBit" == 1 and // if ObstacleAtStart "R2Panel" == 1 goto ActivatePanel } Actions { FollowPlayer "1" "add_party_offset" } } //state ActivatePanel { // Conditions { // if ObstacleAtStart "R2Panel" == 0 goto R2D2Update // if InTriggerArea "EndBit" == 0 goto R2D2Update // } // Actions { // PullLever "name=R2Panel" // } //} state YodaStart { Conditions { } Actions { SetSide "neutral" SetTaggable "FALSE" CannotDropIn Idle "2" SetState "Yoda_ChooseLocator" } } state Yoda_ChooseLocator { Conditions { //Will check for completion of puzzles instead. if ObstacleChainPhase "pad_5" == 2 goto Yoda_SetLocator3 if ObstacleChainPhase "bridge_complete" == 2 goto Yoda_SetLocator2 if AlwaysTrue == 1 goto Yoda_SetLocator1 } Actions { } } state Yoda_SetLocator3 { Conditions { } Actions { ReleaseLocator SetState "NormalUpdate" } } state Yoda_SetLocator2 { Conditions { } Actions { SetLocator "name=Yoda_2" SetState "YodaGoToLocator" } } state Yoda_SetLocator1 { Conditions { } Actions { SetLocator "name=Yoda_1" SetState "YodaGoToLocator" } } state YodaGoToLocator { Conditions { if LocatorOnScreen == 0 goto YodaBigJumpMiniCut if AlwaysTrue == 1 goto YodaBigJump } Actions { } } state YodaBigJumpMiniCut { Conditions { } Actions { SetTaggable "FALSE" CameraCut "use_current_campos" "tgt_character=myself" "FollowTgt" "blend_in_time=0.5" "end_time=10" "no_borders" BigJumpToLocator EndCameraCut "blend_out_time=0.5" "end_time=0.5" SetTaggable SetState "YodaUpdate" } } state YodaBigJump { Conditions { } Actions { BigJumpToLocator SetState "YodaUpdate" } } state YodaUpdate { Conditions { if InContext "GetIn" == 0 and if LocatorRange > 1 goto YodaGoToLocator if CurrentLocatorIs "Yoda_1" == 1 and if ObstacleChainPhase "pad_5" == 2 goto Yoda_ChooseLocator if CurrentLocatorIs "Yoda_1" == 1 and if ObstacleChainPhase "bridge_complete" == 2 goto Yoda_ChooseLocator if CurrentLocatorIs "Yoda_2" == 1 and if ObstacleChainPhase "pad_5" == 2 goto Yoda_ChooseLocator } Actions { FacePlayer } } state ReleasedTakeOver { Conditions { if FreePlay == 1 goto Base if Message "DagobahTraining" == 0 goto Base if IAm "Yoda" == 1 goto Yoda_ChooseLocator if AlwaysTrue == 1 goto Base } Actions { } } state BeenKilled { Conditions { } Actions { SetState "Base" } }