API:PregameGetServerRealmBonuses
From RoR Wiki
UI Lua API · Pregame functions
Version: WAR 1.4.8
Returns the realm bonus values stored with PregameSetServerRealmBonuses.
orderBonus, destructionBonus = PregameGetServerRealmBonuses()
Arguments
None.
Returns
- orderBonus
number– The stored Order value.- destructionBonus
number– The stored Destruction value.
Details
- While the character select data is not set up yet, both values are 0.
- Outside the pregame state the function returns nothing.
Errors
None.
Example
From interfacecore/source/characterselectwindow.lua:
-- get the realm bonuses that the server select screen set for us
local iOrderBonus, iDestructionBonus = PregameGetServerRealmBonuses()
-- if there is an order bonus we will set the label text and show the icon
if iOrderBonus ~= 0
then
-- ...
