Counted Loops

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

This script extends the interpreter by allowing you to create a “counted loop”.
All commands inside a counted loop will repeat until you reach the total loop count.

Download

Script: download here

Usage

Immediately before a loop command, add a comment of the following forms

<loop count: x>
<loop count: v[x]>

For some integer x. You can use a game variable, represented by the v.
The loop will then iterate the specified number of times.

You can do nested loops as well

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax