<?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%3ACharacterSettingsSetActiveUiProfile</id>
	<title>API:CharacterSettingsSetActiveUiProfile - 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%3ACharacterSettingsSetActiveUiProfile"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CharacterSettingsSetActiveUiProfile&amp;action=history"/>
	<updated>2026-10-17T04:19:08Z</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:CharacterSettingsSetActiveUiProfile&amp;diff=30226&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:CharacterSettingsSetActiveUiProfile&amp;diff=30226&amp;oldid=prev"/>
		<updated>2026-10-16T19:41:14Z</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=CharacterSettings}}&lt;br /&gt;
Switches the current character to another UI profile.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
CharacterSettingsSetActiveUiProfile(profile)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;profile : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – The profile to switch to. The stock UI passes the profile &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; for profiles the character owns and the profile &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; for profiles owned by another character (fields from [[API:CharacterSettingsGetData|CharacterSettingsGetData]]).&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The call only stores the request. The client carries out the switch afterwards, outside the Lua call.&lt;br /&gt;
* The stock UI asks the player to confirm first, with a prompt that tells them the interface will reload.&lt;br /&gt;
* Passing an ordinary Lua string raises an &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; error.&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 the argument is not a wide string.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_uiprofileswindow/source/manageuiprofileswindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if( profileData.isOwnedByActiveCharacter )&lt;br /&gt;
then&lt;br /&gt;
    EA_Window_ManageUiProfiles.switchToProfileName = EA_Window_ManageUiProfiles.GetSelectedProfileData().name&lt;br /&gt;
else&lt;br /&gt;
    EA_Window_ManageUiProfiles.switchToProfileName = EA_Window_ManageUiProfiles.GetSelectedProfileData().path&lt;br /&gt;
end&lt;br /&gt;
-- (reload prompt) ...&lt;br /&gt;
&lt;br /&gt;
function EA_Window_ManageUiProfiles.OnSwitchReloadPromptOkay()&lt;br /&gt;
&lt;br /&gt;
    local name = EA_Window_ManageUiProfiles.switchToProfileName&lt;br /&gt;
    EA_Window_ManageUiProfiles.switchToProfileName = L&amp;quot;&amp;quot;&lt;br /&gt;
    CharacterSettingsSetActiveUiProfile(name)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:CharacterSettingsGetData|CharacterSettingsGetData]]&lt;br /&gt;
* [[API:CharacterSettingsImportUiProfile|CharacterSettingsImportUiProfile]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>