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