<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=GetMaxInventory</id>
	<title>GetMaxInventory - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=GetMaxInventory"/>
	<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=GetMaxInventory&amp;action=history"/>
	<updated>2026-12-03T08:09:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://eternity.youfailit.net/index.php?title=GetMaxInventory&amp;diff=6491&amp;oldid=prev</id>
		<title>Printz: Created page with &quot;{{ACSFunction|description=Returns the maximum amount that the player can hold of a given item or power. |usage=&#039;&#039;int&#039;&#039; &#039;&#039;&#039;GetMaxInventory&#039;&#039;&#039;(&#039;&#039;int tid&#039;&#039;, &#039;&#039;str itemname&#039;&#039;) |parameters= *&#039;&#039;tid&#039;&#039;: TID of thing to check. Only works with players. *&#039;&#039;itemname&#039;&#039;: name of item or power to check. |return=Maximum amount |notes= This only works with players. If name is invalid, it returns 0.  For &#039;&#039;&#039;Power...&#039;&#039;&#039; names, if it&#039;s &#039;&#039;&#039;PowerStrength&#039;&#039;&#039;, it returns -1 (since i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=GetMaxInventory&amp;diff=6491&amp;oldid=prev"/>
		<updated>2026-05-10T06:47:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ACSFunction|description=Returns the maximum amount that the player can hold of a given item or power. |usage=&amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;GetMaxInventory&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;int tid&amp;#039;&amp;#039;, &amp;#039;&amp;#039;str itemname&amp;#039;&amp;#039;) |parameters= *&amp;#039;&amp;#039;tid&amp;#039;&amp;#039;: &lt;a href=&quot;/wiki/TID&quot; title=&quot;TID&quot;&gt;TID&lt;/a&gt; of thing to check. Only works with players. *&amp;#039;&amp;#039;itemname&amp;#039;&amp;#039;: name of &lt;a href=&quot;/wiki/Item&quot; class=&quot;mw-redirect&quot; title=&quot;Item&quot;&gt;item&lt;/a&gt; or &lt;a href=&quot;/wiki/Power&quot; title=&quot;Power&quot;&gt;power&lt;/a&gt; to check. |return=Maximum amount |notes= This only works with players. If name is invalid, it returns 0.  For &amp;#039;&amp;#039;&amp;#039;Power...&amp;#039;&amp;#039;&amp;#039; names, if it&amp;#039;s &amp;#039;&amp;#039;&amp;#039;PowerStrength&amp;#039;&amp;#039;&amp;#039;, it returns -1 (since i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ACSFunction|description=Returns the maximum amount that the player can hold of a given item or power.&lt;br /&gt;
|usage=&amp;#039;&amp;#039;int&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;GetMaxInventory&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;int tid&amp;#039;&amp;#039;, &amp;#039;&amp;#039;str itemname&amp;#039;&amp;#039;)&lt;br /&gt;
|parameters=&lt;br /&gt;
*&amp;#039;&amp;#039;tid&amp;#039;&amp;#039;: [[TID]] of thing to check. Only works with players.&lt;br /&gt;
*&amp;#039;&amp;#039;itemname&amp;#039;&amp;#039;: name of [[item]] or [[power]] to check.&lt;br /&gt;
|return=Maximum amount&lt;br /&gt;
|notes=&lt;br /&gt;
This only works with players. If name is invalid, it returns 0.&lt;br /&gt;
&lt;br /&gt;
For &amp;#039;&amp;#039;&amp;#039;Power...&amp;#039;&amp;#039;&amp;#039; names, if it&amp;#039;s &amp;#039;&amp;#039;&amp;#039;PowerStrength&amp;#039;&amp;#039;&amp;#039;, it returns -1 (since it can never be given finite, unlike other powers). Otherwise it returns 1.&lt;br /&gt;
&lt;br /&gt;
For health, armor, ammo items, it returns the maximum possible amount.&lt;br /&gt;
&lt;br /&gt;
For power items, if it&amp;#039;s permanent, it returns -1. Otherwise, it returns the given duration in tics.&lt;br /&gt;
&lt;br /&gt;
For weapon givers, it usually returns 1 (one weapon available max).&lt;br /&gt;
|id=-93}}&lt;/div&gt;</summary>
		<author><name>Printz</name></author>
	</entry>
</feed>