<?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%3AGetPlayerEnergy</id>
	<title>API:GetPlayerEnergy - 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%3AGetPlayerEnergy"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetPlayerEnergy&amp;action=history"/>
	<updated>2026-10-18T04:53:48Z</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:GetPlayerEnergy&amp;diff=30448&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:GetPlayerEnergy&amp;diff=30448&amp;oldid=prev"/>
		<updated>2026-10-16T19:44:44Z</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=Game}}&lt;br /&gt;
Looks up a named value and returns it as a number.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
value = GetPlayerEnergy(name)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;name : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Name to look up. It must be a wide string.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;value : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – The value stored under that name, or &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; if the name is not found.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The name is converted to a plain string (at most 99 characters) and looked up in a table of named entries held by the client. If an entry is found, its stored value is returned; otherwise the result is &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Passing a plain Lua string raises an &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; error.&lt;br /&gt;
* The stock UI never calls this function, and what the names refer to has not been confirmed. Treat the function as undocumented.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
A minimal example built from the signature:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local value = GetPlayerEnergy( L&amp;quot;SomeName&amp;quot; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetCareerResource|GetCareerResource]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>