The tech object

From Scenario League Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.