• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • 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 2014-04-10 21:53:47

    Clear message

    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.

    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

    See also: NewCityGoals


    CategoryExtras