• 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

    Upload page content

    You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

    File to load page content from
    Page name
    Comment

    callScript()

    This function allows you to send a line of script to another city.

    Usage:

    Dummy = cities[x].cityManager.script.callScript("")

    Example:

    x = 0
    Dummy = cities[x].cityManager.script.callScript("echo 'bob'")

    In this example, the first city (time-stamp of 0) will run the script "Echo 'bob'". If this is run in city that has the same timestamp it will not work.

    Script inputs:

    Scripts can be input into callScript() like so:

     callScript("renamecity bob")

    You can also add more lines to the script using: \n

    callScript("levy 1 \n echo city.resource.support")


    CategoryFunctions CategoryFunctions