API:SetBraggingRightsCard
From RoR Wiki
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 asidin 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
slotis outside 1–6, or when the connection is not ready. slotis 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
GetBraggingRightsintoTomeWindow.braggingRightsCardsbut 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 )
