//CloudCityEscapeA state Base { Conditions { if OffScreenTimer > 5 goto Kill if Random < 0.2 goto ChooseNewLocator if AlwaysTrue == 1 goto Talking } Actions { SetSide "neutral" } } state ResetToTalk { Conditions { if OffScreenTimer > 5 goto Kill } Actions { KeepWeaponOut "FALSE" SetSide "neutral" SetState "Talking" } } state Talking { Conditions { if OffScreenTimer > 5 goto Kill if Timer > 10 and if Random < 0.5 goto Talking if Timer > 10 goto ChooseNewLocator } Actions { ResetTimer "mintime=0" "maxtime=5" Idle } } state ChooseNewLocator { Conditions { if OffScreenTimer > 5 goto Kill if GotLocator == 1 goto GoToLocator if AlwaysTrue == 1 goto Talking } Actions { GetLocatorFromGroup "name=MissionSpawn" "random" } } state GoToLocator { Conditions { if OffScreenTimer > 5 goto Kill if CannotReachDestination == 1 goto ChooseNewLocator if PathBlocked == 1 goto ChooseNewLocator } Actions { GoToLocator "Walk" SetState "Talking" } } state StartBrawl { Conditions { if OffScreenTimer > 5 goto Kill } Actions { //SetSide "goodiebaddie" "range=6" "type=cloudcitycitizen" ResetTimer "minTime=0" "maxTime=5" SetState "Brawl" //SetStateArea "range=6" "State=Brawl" "type=cloudcitycitizen" } } state Brawl { ReferenceScript { Script=CitizenFight Source=Global ReturnState=ResetToTalk Conditions { if Timer < 20 and if OffScreenTimer < 5 } } Conditions { if OffScreenTimer > 5 goto Kill if AlwaysTrue == 1 goto ResetToTalk } Actions { } } state BeenKilled { Conditions { } Actions { SetSide "goodiebaddie" "range=6" "type=cloudcitycitizen" SetStateArea "range=6" "State=StartBrawl" "type=cloudcitycitizen" } } state Kill { Conditions { } Actions { Kill } }