API:GetHeraldryCost
From RoR Wiki
UI Lua API · Guild functions
Version: WAR 1.4.8
Returns the cost of saving a new guild heraldry design.
cost = GetHeraldryCost()
Arguments
None.
Returns
- cost
number– The cost, as a money amount.
Details
- The value is stored by the client; the function does not contact the server.
- The stock heraldry editor shows this cost in its confirmation dialog before calling SendHeraldryConfigurationData.
Errors
None.
Example
From default/ea_guildwindow/source/heraldryeditor.lua:
-- Determine heraldry costs
local heraldryCost = GetHeraldryCost()
local currencyText = HeraldryEditor.GetCurrencyText(heraldryCost)
heraldryCost = HeraldryEditor.ConvertMoney(heraldryCost)
dialogText = GetFormatStringFromTable( "guildstrings", StringTables.Guild.DIALOG_CONFIRM_SAVING_HERALDRY, { heraldryCost, currencyText } )
