Home › Lua API › PlayerGreatPeoplePoints
Available out of the box. Usable from Lua in the unmodified game.
PlayerGreatPeoplePoints
6 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.
Community reference for this object: PlayerGreatPeoplePoints (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 |
| CalculatePointsPerTurn |
PlayerGreatPeoplePoints:CalculatePointsPerTurn(eClass?: integer[GreatPersonClassTypes]) → FixedPointT<8> args: eClass — Index of a row of the GreatPersonClasses table (the value of GameInfo.GreatPersonClasses[...].Index). |
gameplay |
yes ↗ |
0x6f2c50 |
— |
| ChangePointsTotal |
PlayerGreatPeoplePoints:ChangePointsTotal(eClass?: number, xChange?: number) (or nothing) touches (inferred from the code): reads Player::Instance::m_id, Player::Instance::m_bIsAlive, Player::GreatPeoplePoints::m_axPointsTotal |
gameplay |
yes ↗ |
0x6f2c60 |
0x6f33a0 |
| GetPointsPerTurn |
PlayerGreatPeoplePoints:GetPointsPerTurn(arg1?: integer[GreatPersonClassTypes]) → FixedPointT<8> args: arg1 — Index of a row of the GreatPersonClasses table (the value of GameInfo.GreatPersonClasses[...].Index). ✓ exists at runtime (not called) |
ui-cache |
yes ↗ |
0x6b08f0 |
— |
| GetPointsTotal |
PlayerGreatPeoplePoints:GetPointsTotal(eClass?: integer[GreatPersonClassTypes]) → FixedPointT<8> args: eClass — Index of a row of the GreatPersonClasses table (the value of GameInfo.GreatPersonClasses[...].Index). ✓ exists at runtime (not called) |
ui-cache, gameplay |
yes ↗ |
0x6b0900 |
— |
| IsNoPatronageWith |
PlayerGreatPeoplePoints:IsNoPatronageWith(eYield: integer[YieldTypes]) → boolean args: eYield — Index of a row of the Yields table (the value of GameInfo.Yields[...].Index). The scripts pass its index. touches (inferred from the code): reads Cache::Player::Instance::m_kConstant+0x8 ✓ exists at runtime (not called) |
ui-cache |
yes ↗ |
0x712980 |
0x7131f0 |
| SetPointsTotal |
PlayerGreatPeoplePoints:SetPointsTotal(eClass?: number, xChange?: number) (or nothing) touches (inferred from the code): reads Player::Instance::m_id, Player::Instance::m_bIsAlive, Player::GreatPeoplePoints::m_axPointsTotal |
gameplay |
yes ↗ |
0x6f2d10 |
0x6f3450 |