• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "Repeat"
    Differences between revisions 3 and 4
    Revision 3 as of 2012-10-21 15:25:19
    Size: 1441
    Editor: Inanna
    Comment:
    Revision 4 as of 2012-10-24 01:30:03
    Size: 1337
    Editor: Romulus
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 1: Line 1:
    ||<tablestyle="margin: 1em 1em 1em 0px; background-color: rgb(249, 249, 249); border-style: solid; border-color: rgb(170, 170, 170); color: rgb(0, 0, 0); font-family: sans-serif; font-size: 13px; line-height: 19.5px; text-align: start; " tableclass="wikitable"style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; background-color: rgb(242, 242, 242); ">Usage:||<style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; ">repeat [optional # of times]||
    ||<style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; background-color: rgb(242, 242, 242); ">Example:||<style="border-style: solid; border-color: rgb(170, 170, 170); padding: 0.2em; ">repeat<<BR>>repeat 5 ||
    ||<tablebgcolor="#F9F9F9" tablestyle="margin:1em 1em 1em 0px;border-style:solid;border-color:rgb(170, 170, 170);color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;line-height:19.5px;text-align:start;" tableclass="wikitable"#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">Usage: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">repeat [optional # of times] ||
    ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">repeat<<BR>>repeat 5 ||
    Line 7: Line 7:
     {{{  . {{{
    Line 27: Line 27:
    Line 28: Line 29:
    CategoryControlStructures ----
    Scrip
    tControlStructures

    Usage:

    repeat [optional # of times]

    Example:

    repeat
    repeat 5

    The repeat command will simply repeat the previous line of script the specified number of times. No parameter, or a parameter of 0 (ie - repeat 0), will repeat the previous line indefinitely.

    • //================================
      // Attack 2 targets, then upgrade
      // your cottages first, followed
      // by your barracks
      //================================
      attack 245,325 Bubba arch:25000,warr:25000,t:1000
      attack 222,324 any t:400,b:400
      upgrade cottage
      repeat 12
      upgrade barrack
      repeat 12
      
      //================================
      // Upgrade all of your buildings
      // and resource fields to level 9:
      //================================
      upgrade
      repeat



    ScriptControlStructures

    Repeat (last edited 2012-10-24 01:30:03 by Romulus)