//DeathStarRescue_A state Base { Conditions { } Actions { SetState "Walk" } } state Walk { Conditions { if Timer > 1 and if Random < 0.1 goto SetLocator } Actions { ResetTimer FollowPath "Walk" } } state SetLocator { Conditions { if GotLocator == 1 goto GoToLocator if GotLocator == 0 goto Walk } Actions { GetLocatorFromGroup "name=idle" "random" } } state GoToLocator { Conditions { } Actions { GoToLocator "Walk" "mintime=10" "maxtime=30" ReleaseLocator SetState "Walk" } } state BeenKilled { Conditions { } Actions { SetMessage "name=NumGrabbed" "increment=1" AddGameMsgCount "mypos" "messageval=NumGrabbed" "Total=10" "Red=255" "Green=0" "Blue=0" } }