Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:RevertPlayerVariation

From RoR Wiki

UI Lua API · Appearance functions
Version: WAR 1.4.8

Undoes the appearance preview made with SetPlayerVariation.

RevertPlayerVariation()

Arguments

None.

Returns

Nothing.

Details

  • The client writes back the slot value that the last SetPlayerVariation call saved, then updates the character's look.
  • Only one saved value exists. Calling the function twice writes the same value again.
  • Nothing is sent to the server.
  • The function does nothing if there is no player.

Errors

None.

Example

From ea_characterwindow/source/characterwindow.lua, when the marketing item is taken out of its slot again:

CharacterWindow.marketItemData = nil
CharacterWindow.marketItemDataSlot = -1
local icon = CharacterWindow.TROPHY_EMPTY_ICON
DynamicImageSetTexture( "DyeMerchantMarketingSlotIconBase", icon.texture, icon.x, icon.y )
LabelSetText("DyeMerchantMarketingSlotDescLabel", GetString( StringTables.Default.TEXT_MARKETING_ITEM_SLOT_TIP ) )
CharacterWindow.MarketingMouseOver()
RevertPlayerVariation();

See also