Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:SetGuildStandardScene

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

Sets which banner post the guild standard preview shows.

SetGuildStandardScene(postNumber)

Arguments

postNumber
number – Banner post number, as chosen in the guild window's banner tab. Stored as an 8-bit value.

Returns

Nothing.

Details

  • The call has an effect only while the guild standard preview exists. A postNumber of 0 is ignored.
  • The new post is applied to the preview model at once. Nothing is sent to the server.
  • To change the heraldry shown on the preview, use SetGuildHeraldryScene.

Errors

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

Example

From default/ea_guildwindow/source/guildwindowtabbanner.lua:

function GuildWindowTabBanner.SetRenderPostAndComboBox(postID)
    ComboBoxSetSelectedMenuItem("GWRewardsBannerPostCombo", postID )
    GuildWindowTabBanner.CurrentPostNumber = postID
    SetGuildStandardScene( postID )
    BroadcastEvent( SystemData.Events.UPDATE_GUILDSTANDARD )
    BroadcastEvent( SystemData.Events.UPDATE_GUILDHERALDRY )
end

See also