• 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

    Revision 1 as of 2012-09-05 13:21:55

    Clear message

    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