• 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 4 and 5
    Revision 4 as of 2012-10-21 15:25:46
    Size: 1122
    Editor: Inanna
    Comment:
    Revision 5 as of 2012-10-24 01:28:16
    Size: 1019
    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;">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 ||
    Line 7: Line 7:
     {{{  . {{{
    Line 25: Line 25:
    Line 26: Line 27:
    CategoryControlStructures ----
    Scrip
    tControlStructures

    Usage:

    gosubreturn

    Example:

    gosubreturn

    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
      gosubreturn
      //
      label upgradecot
      upgrade house
      repeat 2
      gosubreturn
      //
      label trainarch
      train arch:2500 Hero
      gosubreturn



    ScriptControlStructures

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