The tech object: Difference between revisions

From Scenario League Wiki
Jump to navigationJump to search
(Created Page)
 
m (Added to category lua resources)
 
Line 1: Line 1:
[[Category: Resources]]
[[Category:Lua Resources]]
Back To [[TOTPP Functions]]
Back To [[TOTPP Functions]]



Latest revision as of 20:13, 26 January 2019

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.