<?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%3AIsPlayerSolo</id>
	<title>API:IsPlayerSolo - 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%3AIsPlayerSolo"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:IsPlayerSolo&amp;action=history"/>
	<updated>2026-10-18T04:53:59Z</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:IsPlayerSolo&amp;diff=30520&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:IsPlayerSolo&amp;diff=30520&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:52Z</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=Group}}&lt;br /&gt;
Returns whether the player has no groupmates, as the number &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
solo = IsPlayerSolo()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;solo : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; if the first groupmate slot is empty, otherwise &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;. Nothing if there is no player object.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The result is a &amp;#039;&amp;#039;&amp;#039;number&amp;#039;&amp;#039;&amp;#039;, not a boolean. In Lua both &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; are true values, so &amp;lt;code&amp;gt;if IsPlayerSolo() then&amp;lt;/code&amp;gt; is always taken. Compare with &amp;lt;code&amp;gt;== 1&amp;lt;/code&amp;gt;, as the stock UI does.&lt;br /&gt;
* Only the first groupmate slot is tested: the slot counts as empty when its stored level is 0.&lt;br /&gt;
* Warband membership is not looked at separately.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_playerassist/source/ea_playerassist.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local isPlayerSolo = ( IsPlayerSolo() == 1 )&lt;br /&gt;
&lt;br /&gt;
WindowSetShowing( WINDOW_NAME, not isPlayerSolo )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetNumGroupmates|GetNumGroupmates]]&lt;br /&gt;
* [[API:IsWarBandActive|IsWarBandActive]]&lt;br /&gt;
* [[API:IsPlayerMainAssist|IsPlayerMainAssist]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>