• 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

    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

    hasTech(typeId,level)

    Usage:

    city.hasTech(typeId,level)

    Example:

    city.hasTech(2,5)

    This function checks if you have the specified technology researched to at least the specified level. For example to see if you have archery at level 8 or higher:

    • if city.hasTech(14,8) echo "Yup, I have archery level 8+."
      if !city.hasTech(14,8) echo "Nope, my archery is not yet level 8."

    See also: ResearchTypes



    CategoryFunctions