Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:PregameGetCharacterSelectNumPages

From RoR Wiki
Revision as of 19:47, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Pregame functions
Version: WAR 1.4.8

Returns how many pages of character slots each realm has on the character select screen.

orderNumPages, destructionNumPages = PregameGetCharacterSelectNumPages()

Arguments

None.

Returns

orderNumPages
number – Number of pages for Order.
destructionNumPages
number – Number of pages for Destruction.

Details

  • The names and order of the two values are the ones the stock UI uses.
  • The client counts the pages from the character slot data it has for each realm.
  • Outside the pregame state, or before the character select screen is set up, the function returns nothing.

Errors

None.

Example

From interfacecore/source/characterselectwindow.lua:

-- Update the character page changer
local orderNumPages, destructionNumPages = PregameGetCharacterSelectNumPages()
local bNeedsPageChanger = ( orderNumPages + destructionNumPages > 1 )

See also