beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { SetNumLives(1); //ExcTargetType(0xffffffff); //IncTargetType(0x2); EndFrame(); goto Start; } EndFrame(); goto Wait; label Start: SetVar(0,Rnd()); // Weapon select % SetVar(0,Rnd()); // Attack % label AttackAI: if (GetVar(0) >= 125) { IncludeGTarget(2); SelectWeapons(1,0,0); WaitForTime(20); SetVar(0,Rnd()); } else { IncludeGTarget(2); SelectWeapons(0,1,0); WaitForTime(20); SetVar(0,Rnd()); } EndFrame(); goto AttackAI; label End: EndFrame(); goto End; endscript; $