The leader object

From Scenario League Wiki
Revision as of 20:13, 26 January 2019 by Prof. Garfield (talk | contribs) (Added to category lua resources)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Back To TOTPP Functions


id (get)

leader.id -> integer

Returns the id of the leader.


name (get/set)

leader.name -> string

Returns the name of the leader.


female (get/set)

leader.female -> boolean

Returns whether or not the leader is female.


attack (get/set)

leader.attack -> integer

Returns the "attack" value of the leader's personality. Ephemeral.


expand (get/set)

leader.expand -> integer

Returns the "expand" value of the leader's personality. Ephemeral.


civilize (get/set)

leader.civilize -> integer

Returns the "civilize" value of the leader's personality. Ephemeral.


color (get/set)

leader.color -> integer

Returns the leader's color. Ephemeral.


cityStyle (get/set)

leader.cityStyle -> integer

Returns the leader's city style. Ephemeral.