Simple, wel once you have it figured out atleast, heh.
take this;
for (i=0; i<20; i++) {
x = i;
sleep .5;
}
it starts by setting the variable 'i' to 0,
then it does the enclosed script, (setting the npc's x to i, and sleeping so the progress can be watched) then
it adds 1 to i and repeats, it will repeat operating this way untill
the flag, i<20, is not true. Meaning it will stop when the npc's x is 20. There are quite a number of things that the for command can be used for, most common is going through indexes. If you want to know about that, just ask, I may even forget the service charge
