The leader 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)

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.