• 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 "Return"
    Differences between revisions 6 and 7
    Revision 6 as of 2012-10-24 20:24:08
    Size: 1057
    Editor: Romulus
    Comment:
    Revision 7 as of 2012-10-24 20:28:39
    Size: 1035
    Editor: Romulus
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 2: Line 2:
    ||<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;">gosubreturn ||
    ||<#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;">gosubreturn ||
    ||<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;">return ||
    ||<#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;">return ||
    Line 15: Line 15:
    gosubreturn return
    Line 20: Line 20:
    gosubreturn return
    Line 24: Line 24:
    gosubreturn return

    Usage:

    return

    Example:

    return

    Used with Gosub at the end of a subroutine to return to the line that called it, and proceed from there.

    • gosub medalfarm
      gosub trainarch
      gosub upgradecot
      loop 0
      label medalfarm
      attack 123,300 !Bubba,!Xavier,any t:400,b:400
      return
      //
      label upgradecot
      upgrade house
      repeat 2
      return
      //
      label trainarch
      train arch:2500 Hero
      return



    ScriptControlStructures

    Return (last edited 2012-10-24 20:30:00 by Romulus)