Hi B........ I have put some comments in your code. Frankly its a mess .
When you wright a script look at each line to see what it does how it effect the next line and what values you are looking for, look at the next then the next, when you get to the end start at the top and go through it again just as the computer would and you will see if it makes any sense.
If it doesn't make sense then it wrong the computer is not going to make sense of it if you can't.
Script writing can be very difficult but most of us check our code this way.
n_iron
void Main()
{
if (count < 200)
{
iPrint ("count :" + count, 8,10, OBJ_132);
iObjectShow (OBJ_44);
iObjectShow (OBJ_66);
iObjectShow (OBJ_88);
iObjectShow (OBJ_110);
OUT_44 = iFloatRand (0,5); // Opacity Sprite 1
OUT_66 = iFloatRand (0,2); // Opacity Sprite 2
OUT_88 = iFloatRand (0,3); // Opacity Sprite 3
OUT_110 = iFloatRand (0,4); // Opacity Sprite 4
OUT_0 = iFloatRand (0,4); // Counter Object
count++; // why are you counting here and your using the count object
}
if (count == 200)
{
iObjectStop(OBJ_0); // Stop Counter Object
}
// Show Sprite 1
if (OUT_0 == 1) // shouldn't this be IN_0 you can't read OUT_## same as the following lines
{
iObjectHide (OBJ_66);
iObjectHide (OBJ_88);
iObjectHide (OBJ_110);
}
// Show Sprite 2
if (OUT_0 == 2)
{
iObjectHide (OBJ_44);
iObjectHide (OBJ_88);
iObjectHide (OBJ_110);
}
// Show Sprite 3
if (OUT_0 == 3)
{
iObjectHide (OBJ_44);
iObjectHide (OBJ_66);
iObjectHide (OBJ_110);
}
// Show Sprite 4
if (OUT_0 == 4)
{
iObjectHide (OBJ_44);
iObjectHide (OBJ_66);
iObjectHide (OBJ_88);
}
}