• 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

    Usage:

    loadgoals [goal set number]

    Example:

    loadgoals
    loadgoals 3

    This script command will allow you to load a set of goals to be ran by the bot.

    An example of a use for this would be in a city used for trebbing. You could tell the bot to load goal set 1, where you have your npc farming and hero movement and such disabled, perform all the treb hits via scripts, and then reload your regular goal set 0 where you have npc farming and such enabled when the treb hits are done. A script doing this could be like so:

    • //Trebbing Session
      gosub TrebSession
      
      label BeginHere
      ifgoto ( m_city.cityManager.resource.stone.amount < 5b ) OuttaStone
      ifgoto ( m_city.cityManager.fortification.rockfall < 10500 ) Rebuildwall
      goto BeginHere
      
      label Rebuildwall
      setmayorbyname Queen
      walldefense tre 11k build
      sleep 15
      goto BeginHere
      
      label OuttaStone
      echo "Getting Low On Stone!"
      loadgoals 0
      stop
      
      label TrebSession
      loadgoals 1
      walldefense tra 50000 demo
      walldefense ab 50000 demo
      walldefense at 50000 demo
      walldefense r 50000 demo
      walldefense tre 50000 demo
      gosub BeginHere


    ScriptControlStructures ScriptCity

    LoadGoals (last edited 2013-08-07 17:58:28 by Inanna)