Home › Lua API › UnitGreatPerson

Available out of the box. Usable from Lua in the unmodified game.

UnitGreatPerson

11 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Community reference for this object: UnitGreatPerson (Sukrit Tan, external).

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
GetActionCharges UnitGreatPerson:GetActionCharges() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6bebd0 0x6bf150
GetActivationHighlightPlots UnitGreatPerson:GetActivationHighlightPlots(range?: integer) → number[]
✓ exists at runtime (not called)
ui-cache yes ↗ 0x6bec20 0x6bf1a0
GetAreaHighlightPlots UnitGreatPerson:GetAreaHighlightPlots() → number[]
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6bed60 0x6bf2e0
GetClass UnitGreatPerson:GetClass() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6bee70 0x6bf3f0
GetIndividual UnitGreatPerson:GetIndividual() → number
✓ called in the game: 1 value(s) as documented
returns: Key of a row of the GreatPersonIndividuals table: the scripts look it up with GameInfo.GreatPersonIndividuals[result].
ui-cache, gameplay yes ↗ 0x6beec0 0x6bf440
GetIndividualHash UnitGreatPerson:GetIndividualHash() → number
returns: Hash of a database row (compared with row.Hash). (inferred)
gameplay yes ↗ 0x700190 0x7008e0
GetPassiveEffectText UnitGreatPerson:GetPassiveEffectText() → string
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6bef10 0x6bf490
GetPassiveNameText UnitGreatPerson:GetPassiveNameText() → string
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6bef80 0x6bf500
GetUnit UnitGreatPerson:GetUnit() → Unit
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6beff0 0x6bf570
HasPassiveEffect UnitGreatPerson:HasPassiveEffect() → boolean
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6bf030 0x6bf5b0
IsGreatPerson UnitGreatPerson:IsGreatPerson() → boolean
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6bf080 0x6bf600