Is there anyway to loop for a specific number (rather than for a number of objects)? Basically I am trying to have a line of script repeated for "Global variable X" number of times but I can see no way of doing this. Of course I wouldn't have to be doing this if "stat (num) of (obj): adjust by (num)" actually worked for derived stats...grumble grumble... {2}{My room is dark at night. -Jason}
Run a script condition before it like: If Global Variable <= Y, THEN goto line to be repeated ELSE go somewhere else?
I'm afraid that's no use. (Well actually it is some use but it would involve using 20 condition lines). Basically what I am trying to do is alter the PC's reaction modifier based on his alignment. I divide the aligment by 100, use a condition to separate negative from positive and then use "stat (num) of (obj): adjust by (num)" to adjust reaction accordingly. However since that doesn't work I had to use the effect "beautyreaction +X". I wanted to use a loop so I could bestow the effect as many times as needed e.g. if player has 1000 alignment then he receives "beautyreaction +1" 10 times. However this isn't possible either so I came up with a rather complex solution (bleugh) which selects 1 effect from a list of 20 that I made. {4}{Not all of us can look fine in underwear and no weapon. -Leonard}