//MosEisley_D state Base { Conditions { if FreePlay == 1 goto NormalUpdate if IAm "C3PO" == 1 goto DroidUpdate if IAm "R2D2" == 1 goto DroidUpdate if AlwaysTrue == 1 goto NormalUpdate } Actions { } } state NormalUpdate { ReferenceScript { Script=GeneralParty Source=Global ReturnState=NormalUpdate Conditions { if InMiniCut == 0 and if PlayerUsingForce "gate_wheel_1a" == 0 and if PlayerUsingForce "gate_wheel_1b" == 0 and if PlayerUsingForce "gate_wheel_2a" == 0 and if PlayerUsingForce "gate_wheel_2b" == 0 } } Conditions { if InMiniCut == 1 and if GotOpponent == 1 goto MiniCutSquareUp if PlayerUsingForce "gate_wheel_1a" == 1 goto UseForceWheel1B if PlayerUsingForce "gate_wheel_1b" == 1 goto UseForceWheel1A if PlayerUsingForce "gate_wheel_2a" == 1 goto UseForceWheel2B if PlayerUsingForce "gate_wheel_2b" == 1 goto UseForceWheel2A } Actions { ClearTakeOverTarget FollowPlayer "1" } } state DroidUpdate { Conditions { if InMiniCut == 0 and if Message "HangarSpawnCount" > 0 goto DroidStandOutOfWay if InMiniCut == 0 and if NumInSetAlive "10" > 0 goto DroidStandOutOfWay } Actions { ClearTakeOverTarget FollowPlayer "1" } } state DroidStandOutOfWay { Conditions { if Message "HangarSpawnCount" == 0 and if NumInSetAlive "10" == 0 goto DroidUpdate } Actions { GetLocatorFromGroup "name=OutOfWay" GoToLocator } } state UseForceWheel1a Conditions { if PlayerUsingForce "gate_wheel_1b" == 0 goto NormalUpdate } Actions { GoToLocator "name" "ratforce" "0.5" UseForce "name=gate_wheel_1a" } } state UseForceWheel1b { Conditions { if PlayerUsingForce "gate_wheel_1a" == 0 goto NormalUpdate } Actions { GoToLocator "name" "ratforce" "0.5" UseForce "name=gate_wheel_1b" } } state UseForceWheel2a Conditions { if PlayerUsingForce "gate_wheel_2b" == 0 goto NormalUpdate } Actions { GoToLocator "name" "ratforce" "0.5" UseForce "name=gate_wheel_2a" } } state UseForceWheel2b { Conditions { if PlayerUsingForce "gate_wheel_2a" == 0 goto NormalUpdate } Actions { GoToLocator "name" "ratforce" "0.5" UseForce "name=gate_wheel_2b" } } state MiniCutSquareUp { Conditions { if InMiniCut == 0 goto NormalUpdate } Actions { KeepWeaponOut FaceOpponent } } state RestOfParty { Conditions { } Actions { SetTaggable "FALSE" CannotDropIn NotWithParty SnapToLocator "name=EndTest" } } ///Take Over Cnx Stuff... state TakeOverJump { Conditions { } Actions { SetTakeOverTarget "type=dewback" SetState "Move" } } state Move { Conditions { if HasTakeOverTarget == 0 goto Base if TakeOverRange < 1 goto TakeOver if TakenOver "TakeoverTarget" == 1 goto Base if TakenOver == 1 goto Base //if already has taken something over } Actions { FollowCharacter "TakeOverTarget" "RUN" "ignore_radius" "can_go_off_path" } } state TakeOver { Conditions { } Actions { TakeOver SetState "NormalUpdate" } }