• 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 "Gosub"
    Differences between revisions 1 and 2
    Revision 1 as of 2012-09-05 13:21:55
    Size: 1159
    Editor: Inanna
    Comment:
    Revision 2 as of 2012-09-05 13:22:25
    Size: 1159
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 26: Line 26:
    Do not forget to add the gosubreturn at the end of each subroutine to avoid errors. Do not forget to add the GosubReturn at the end of each subroutine to avoid errors.

    Usage:

    gosub label

    Example:

    gosub medalfarm

    Allows you to jump to a subroutine.

    • 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

    Do not forget to add the GosubReturn at the end of each subroutine to avoid errors.


    CategoryAllScripts CategoryFunctionScripts

    Gosub (last edited 2012-10-24 20:31:07 by Romulus)