//FactoryG ReferenceScript { Script=GenericDefend Source=Global ReturnState=Base Conditions { } } state Base { Conditions { if CategoryIs "Jedi" == 1 goto JediUpdate if IAm "R2D2" == 1 goto DroidUpdate if IAm "C3PO" == 1 goto DroidUpdate if PreviousResult == 0 goto NormalUpdate } Actions { } } state JediUpdate { Conditions { if EitherPlayerUsingForce "fun_c2_1" == 0 and if EitherPlayerOnObject "fun_c1_3" == 1 goto UseForceOnColumn } Actions { FollowPlayer "1.5" } } state UseForceOnColumn { Conditions { if EitherPlayerUsingForce "fun_c2_1" == 1 goto JediUpdate if EitherPlayerOnObject "fun_c1_3" == 0 goto JediUpdate } Actions { GoToLocator "name" "force" "0.3" UseForce "fun_c2_1" } } state NormalUpdate { Conditions { } Actions { FollowPlayer "0.75" } } state DroidUpdate { Conditions { } Actions { FollowPlayer "1.5" } }