Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:PregameRandomFeatures

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

Gives the character being created random appearance features.

PregameRandomFeatures()

Arguments

None.

Returns

Nothing.

Details

  • The call only works in the pregame state while the character creation data is set up. At any other time it does nothing.
  • All appearance features of the preview character get random values, and the preview is redrawn.
  • Afterwards the client fires SystemData.Events.CHARACTER_CREATE_FEATURES_UPDATED with the updated feature table, as PregameSetFeature does.

Errors

None.

Example

From interfacecore/source/characterselectwindow.lua:

function CharacterSelectWindow.RandomFeatures()
    PregameRandomFeatures()
end

See also