The tech object

From Scenario League Wiki
Revision as of 22:29, 1 January 2019 by Prof. Garfield (talk | contribs) (Created Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Back To TOTPP Functions

id (get)

tech.id -> integer

Returns the id of the tech.


name (get)

tech.name -> string

Returns the name of the tech.


prereq1 (get/set)

tech.prereq1 -> tech

Returns the first prerequisite of the tech. Ephemeral.


prereq2 (get/set)

tech.prereq2 -> tech

Returns the second prerequisite of the tech. Ephemeral.


aiValue (get/set)

tech.aiValue -> integer

Returns the AI value of the tech. Ephemeral.


modifier (get/set)

tech.modifier -> integer

Returns the modifier to the AI value based on leader personality. Ephemeral.


epoch (get/set)

tech.epoch -> integer

Returns the epoch of the tech. Ephemeral.


category (get/set)

tech.category -> integer

Returns the category of the tech. Ephemeral.


group (get/set)

tech.group -> integer

Returns the group of the tech. Ephemeral.


researched (get)

tech.researched -> boolean

Returns whether or not any tribe has researched the tech.