beginscript; label Wait: if (GetGlobalVar(1) == 1 && GetVar(0) != 1) { SpawnUnit(); WaitForTime(10); ExcTargetType(0x2); IncTargetType(0x1); IncludeGTarget(3); SetFollowWaypoint(97,0,0); BreakWptsOnAttack(); SetVar(0,1); } if (GetGlobalVar(1) == 201 && GetVar(0) != 2 && UnitDead()) { TeleportUnit(TP1, Rnd()/4, Rnd()/4); SpawnUnit(); WaitForTime(10); ExcTargetType(0x2); IncTargetType(0x1); IncludeUTarget(0x7401); SetFollowWaypoint(160,0,0); BreakWptsOnAttack(); SetVar(0,2); } else if (UnitDead() != 1 && GetGlobalVar(1) == 201) { SetVar(0,2); } if (GetGlobalVar(1) == 3 && GetVar(0) != 3 && UnitDead()) { TeleportUnit(TP2, Rnd()/4, Rnd()/4); SpawnUnit(); WaitForTime(10); ExcTargetType(0x2); IncTargetType(0x1); ExcludeUTarget(0x7401); IncludeGTarget(3); SetFollowWaypoint(100,0,0); BreakWptsOnAttack(); SetVar(0,3); } else if (UnitDead() != 1 && GetGlobalVar(1) == 3) { SetVar(0,3); } if (GetGlobalVar(1) == 4 && GetVar(0) != 4 && UnitDead()) { TeleportUnit(TP3, 0, 0); SpawnUnit(); WaitForTime(10); ExcTargetType(0x2); IncTargetType(0x1); IncludeGTarget(3); SetFollowWaypoint(103,0,0); BreakWptsOnAttack(); SetVar(0,4); } else if (UnitDead() != 1 && GetGlobalVar(1) == 4) { SetVar(0,4); } //if (UnitDead()) //{ // WaitForTime(20); //} EndFrame(); goto Wait; label End: EndFrame(); goto End; endscript; $