• 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 1 and 9 (spanning 8 versions)
    Revision 1 as of 2012-09-05 13:23:05
    Size: 1139
    Editor: Inanna
    Comment:
    Revision 9 as of 2012-10-24 20:30:00
    Size: 1005
    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; ">gosubreturn||
    ||<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; ">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 7: Line 7:
     {{{  . {{{
    Line 12: Line 12:
    Line 14: Line 15:
    gosubreturn return
    Line 19: Line 20:
    gosubreturn return
    Line 23: Line 24:
    gosubreturn return
    Line 25: Line 26:
    Line 26: Line 28:
    CategoryFunctionScripts CategoryAllScripts ----
    ScriptControlStructures

    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)