API:GetNumAssignedBearers
From RoR Wiki
UI Lua API · Guild functions
Version: WAR 1.4.8
Returns the number of assigned guild standard bearers, as stored in the client's guild record.
count = GetNumAssignedBearers()
Arguments
None.
Returns
- count
number– Number of assigned standard bearers.
Details
- The function returns a value from the client's guild record; it does not contact the server.
- The stock UI never calls this function. Its roster tab keeps its own
GuildWindowTabRoster.numAssignedBearers, which starts at 0, and compares it withnumberStandardBearersUnlockedfrom GetGuildAdvancementData.
Errors
None.
Example
A minimal call built from the signature:
local assigned = GetNumAssignedBearers() local maxBearers = GetGuildAdvancementData().numberStandardBearersUnlocked
