//CloudCityTrap_B 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 Message "VaderForce" == 0 } } Conditions { if FreePlay == 1 and if Message "VaderForce" == 1 goto GoToSafePos } Actions { FollowPlayer "1" } } state Update_R2D2 { Conditions { if Message "VaderForce" == 1 goto GoToSafePos } Actions { FollowPlayer "1" } } state GoToSafePos { Conditions { if Message "VaderForce" == 0 goto Base } Actions { GoToLocator "name" "safe" } }