• 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
    • Diff for "hasTech"
    Differences between revisions 1 and 2
    Revision 1 as of 2014-11-15 03:07:13
    Size: 1020
    Editor: Inanna
    Comment:
    Revision 2 as of 2014-11-15 03:07:28
    Size: 1020
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 3: Line 3:
    ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">city.hasTech(2,8) || ||<#F2F2F2 style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">Example: ||<style="border-style:solid;border-color:rgb(170, 170, 170);padding:0.2em;">city.hasTech(2,5) ||

    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

    hasTech (last edited 2014-11-15 03:07:28 by Inanna)