<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASetGuildHeraldryScene</id>
	<title>API:SetGuildHeraldryScene - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASetGuildHeraldryScene"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SetGuildHeraldryScene&amp;action=history"/>
	<updated>2026-10-18T06:58:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:SetGuildHeraldryScene&amp;diff=30720&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SetGuildHeraldryScene&amp;diff=30720&amp;oldid=prev"/>
		<updated>2026-10-16T19:49:01Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Guild}}&lt;br /&gt;
Updates the guild heraldry preview, and optionally the guild standard preview, with a heraldry design.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetGuildHeraldryScene(patternId, primaryColor, secondaryColor, emblemId, postNumber, updateStandard)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;patternId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Pattern id. Stored as a 16-bit value.&lt;br /&gt;
;primaryColor : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Primary (base) colour id. Stored as an 8-bit value.&lt;br /&gt;
;secondaryColor : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Secondary (pattern) colour id. Stored as an 8-bit value.&lt;br /&gt;
;emblemId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Emblem id. Stored as a 16-bit value.&lt;br /&gt;
;postNumber : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Banner post number. Stored as an 8-bit value.&lt;br /&gt;
;updateStandard : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to apply the design to the guild standard preview as well.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The heraldry preview is updated whenever it exists. The guild standard preview is updated only when it exists and &amp;lt;code&amp;gt;updateStandard&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
* This only changes the client-side previews. To save a design, the stock heraldry editor uses [[API:SendHeraldryConfigurationData|SendHeraldryConfigurationData]].&lt;br /&gt;
* &amp;lt;code&amp;gt;updateStandard&amp;lt;/code&amp;gt; must be a real boolean.&lt;br /&gt;
* The function needs at least six arguments and only reads the last six.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when an argument has the wrong type.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_guildwindow/source/heraldryeditor.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- Pattern, Primary Color, Secondary Color, Emblem, bUpdateStandard&lt;br /&gt;
SetGuildHeraldryScene(&lt;br /&gt;
                      HeraldryEditor.CurrentPatternID,&lt;br /&gt;
                      HeraldryEditor.CustomColors[HeraldryEditor.COLOR_CHOICE_BASE],&lt;br /&gt;
                      HeraldryEditor.CustomColors[HeraldryEditor.COLOR_CHOICE_PATTERN],&lt;br /&gt;
                      HeraldryEditor.CurrentEmblemID,&lt;br /&gt;
                      GuildWindowTabBanner.CurrentPostNumber,&lt;br /&gt;
                      bUpdateStandard)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:SetGuildStandardScene|SetGuildStandardScene]]&lt;br /&gt;
* [[API:GetHeraldryConfigurationData|GetHeraldryConfigurationData]]&lt;br /&gt;
* [[API:SendHeraldryConfigurationData|SendHeraldryConfigurationData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>