Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:SetBraggingRightsCard

From RoR Wiki
Revision as of 19:48, 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 · Social functions
Version: WAR 1.4.8

Sets one of the player's six bragging-rights card slots.

SetBraggingRightsCard(slot, cardValue)

Arguments

slot
number – Card slot, 1–6.
cardValue
number – Value to store in the slot. It is returned as id in the second table of GetBraggingRights.

Returns

Nothing.

Details

  • The client stores the value in its own list right away, fires SystemData.Events.SOCIAL_BRAGGING_RIGHTS_UPDATED, and then sends the slot and value to the server.
  • Nothing is sent to the server when slot is outside 1–6, or when the connection is not ready.
  • slot is not range-checked before the local store. Passing a slot outside 1–6 writes outside the card list in client memory.
  • The function needs at least two arguments and only reads the last two.
  • The stock UI never calls this function. It reads the card list with GetBraggingRights into TomeWindow.braggingRightsCards but does not use it further.

Errors

None besides the generic Invalid Parameters message when an argument is not a number.

Example

A minimal call built from the signature:

SetBraggingRightsCard( 1, cardValue )

See also