Spoiler: A while loop (Open)
Spoiler: An if statement (Open)Both have the same results, that rocket boxes keep spawning no matter how much ammo I have.
Spoiler: A while loop (Open)
Spoiler: An if statement (Open)Both have the same results, that rocket boxes keep spawning no matter how much ammo I have.
Besides bumping the topic after the problem was solved:jdagenet wrote: I haven't tested this but would this work?Code: Select all
script 1 enter { While (TRUE) { if (CheckInventory("RocketAmmo") < 5) { SpawnSpot ("RocketBox", 5, 0, 0); Delay (200); } } }
Code: Select all
script 1 enter
{
if (CheckInventory("RocketAmmo") < 5)
SpawnSpot ("RocketBox", 5, 6, 0);
Delay(200);
restart;
}
Code: Select all
script 1 enter
{
if (CheckInventory("RocketAmmo") < 5 && !ThingCount(T_NONE, 6))
{
SpawnSpot ("RocketBox", 5, 6, 0);
Delay (200);
}
else
Delay(1);
restart;
}