The "for" command is a very good command. Used for indexes, etc., or hell,it can be used for just about anything.
Here is what the basic for command looks like:
NPC Code:
for (var=integer;var<othervaroninteger;var++) {}
The first little section thing (for (HEREPEOPLE;.;.) {}) does what it says there, then for the middle section, every time it performs what is inside the {} brackets, it checks to see if var is less than, equal to, or more than the other integer or variable. If it is, it does what is in the brackets, then does what is in the 3rd section/column. I know it's a sloppy explanation, but it is understandable.