//Attack Script state Base { Conditions { if OffScreenTimer > 20 goto Kill if GotOpponent == 1 goto StartAttack } Actions { SetSide "Baddie" BreakFormation } } state StartAttack { Conditions { if OffScreenTimer > 20 goto Kill if GotBlaster == 1 goto Attack if GotBlaster == 0 goto Punch } Actions { KeepWeaponOut } } state Attack { Conditions { if OffScreenTimer > 20 goto Kill if GotOpponent == 0 goto Base } Actions { EngageOpponent "goalrange 1.5" "firerange 3" } } state Punch { Conditions { if OffScreenTimer > 7 goto Kill if GotOpponent == 0 goto Base } Actions { AttackOpponent "range 0.25" } } state Kill { Conditions { } Actions { Kill } }