while() loops will run as long as their statements are true(1). Since you are using a while(1), it will continuaously run, because it will always be true(1).
If you replace the (1) with a variable, then you could simply set that variable to false(0) to end the loop. while(my.skill1 > 0) will run as long as the entities first skill (skill1) is larger than 0.
Last edited by xXxGuitar511; 03/16/07 16:11.