• 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

    Revision 1 as of 2015-03-15 08:45:59

    Clear message

    GetTechLevel(typeId)

    Usage:

    city.getTechLevel(typeId)

    Example:

    city.getTechLevel(14)

    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:

    • echo "Yup, I have archery level {city.getTechLevel(14)}"

    See also: ResearchTypes