• 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

    Starting with version 2917, the bot no longer has hardcoded actions it takes when a new city is captured or built. The previous actions have been removed to txt files located in the bot's folder: NewCityGoals.txt and NewCityScript.txt.

    You can edit these files with any text editor like Notepad for example. Place any script you wish the city to perform in the NewCityScript.txt file, and it will be ran when a new city is captured or built, even if you're afk.

    The default NewCityScript.txt file contains the following:

    // DO NOT DELETE!
    // This script is called for any new city that was built or captured
    
    // If there is only town hall, try to build 1 cottage
    // to make sure city is not abandoned on restart
    if city.buildings.length < 2 create cottage
    
    // Set some temporary goals
    @get "NewCityGoals.txt"
    if $error == null goal $result

    If you are also using GlobalGoals, then PrependGoals.txt and AppendGoals.txt will be called before NewCityGoals.txt is loaded.

    See also: NewCityGoals


    CategoryExtras

    NewCityScript (last edited 2014-04-10 21:57:43 by Inanna)