//CloudCityTrap_C state Base { Conditions { if FreePlay == 1 goto Update_R2D2 if IAm "R2D2" == 1 goto Update_R2D2 if AlwaysTrue == 1 goto Update } Actions { } } state Update { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Update Conditions { if InTriggerArea "Vader_Fight" == 1 and if Message "VaderPhaseC" == 5 } } Conditions { } Actions { FollowPlayer "1" } } state Update_R2D2 { ReferenceScript { Script=GeneralParty Source=Global ReturnState=Update_R2D2 Conditions { if InTriggerArea "Vader_Fight" == 1 and if Message "VaderPhaseC" > 4 and if BaddyInTriggerArea "VaderSteam" == 0 } } Conditions { ;if BaddyInTriggerArea "VaderSteam" == 1 and if Message "VaderPhaseC" == 8 and if ObstacleChainPhase "lift" > 1 and if ObstacleAtStart "r2_steam" == 1 goto R2DoRightSteam if Message "VaderPhaseC" == 12 and if ObstacleChainPhase "lift" > 1 and if ObstacleAtStart "r2_steam" == 1 goto R2DoRightSteam } Actions { FollowPlayer "1" } } state R2DoRightSteam { Conditions { if Message "VaderPhaseC" != 8 and if Message "VaderPhaseC" != 12 goto Update_R2D2 } Actions { PullLever "name=r2_steam" SetState "Update_R2D2" } }