Is it possible to manipulate a ship from a value in a variable?
whatever = "Ship1%"
float Ship_getHitPoints(whatever)
If true then it could be something like:
FOR Index 1 to 50 DO
Mission_addShip("minelayer, "", "", false, "Mine", IFF_ENEMY, xpos, ypos, zpos, index, "", "", "");
ENDFOR