GlobalAnomaly commented on a Page, Loop Demonstration  -  Sep 02, 2009

Nice description of it, and example. But I know a few people would prefer "smaller" code, even though it could kill readability.. Anyways.

alias Loop { var %i = 1 | while (%i < 1000) { echo -a Looped #= %i | inc %i } }

I decided to add to this, to possibly show more (or a different) way loops could work. It's a fun little mass shoot thing, but I'd suggest only doing it in your own channel.

alias mshoot { var %x = 1 | while (%x <= 5) { describe $active shoots $nick(#,$r(1,$nick(#,0))) dealing $r(1,1000) damage! | inc %x  } }
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.