<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=All_monsters_with_id</id>
	<title>All monsters with id - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=All_monsters_with_id"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=All_monsters_with_id&amp;action=history"/>
	<updated>2026-04-25T03:51:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=All_monsters_with_id&amp;diff=8881&amp;oldid=prev</id>
		<title>Philmasterplus: Created page with &quot;&lt;onlyinclude&gt;{{{{{format|Function2}}} |name=all_monsters_with_id |function1.return_type={{type|boolean}} {{opt|{{type|monster}}}} |function1.description=Returns a map of all m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=All_monsters_with_id&amp;diff=8881&amp;oldid=prev"/>
		<updated>2020-12-23T11:54:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;onlyinclude&amp;gt;{{{{{format|Function2}}} |name=all_monsters_with_id |function1.return_type={{type|boolean}} {{opt|{{type|monster}}}} |function1.description=Returns a map of all m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;onlyinclude&amp;gt;{{{{{format|Function2}}}&lt;br /&gt;
|name=all_monsters_with_id&lt;br /&gt;
|function1.return_type={{type|boolean}} {{opt|{{type|monster}}}}&lt;br /&gt;
|function1.description=Returns a map of all monsters that have a non-zero monster ID.&lt;br /&gt;
|description=This function always retrieves the up-to-date internal list of known monsters. This function is needed because &amp;lt;code&amp;gt;$monsters[]&amp;lt;/code&amp;gt; contains a list of monsters that is fixed when an ASH script begins execution, and does not change while the script is running. (See [https://kolmafia.us/threads/add-monsters-to-the-encyclopedia.17886/post-127385 this post for explanation])&lt;br /&gt;
|code1={{CodeSample&lt;br /&gt;
  |title=Code Samples&lt;br /&gt;
  |description=Show all monsters that drop at least 200 meat.&lt;br /&gt;
  |code=&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;d&amp;quot;&amp;gt;&lt;br /&gt;
foreach mon in all_monsters_with_id()&lt;br /&gt;
{&lt;br /&gt;
   if ( mon.min_meat &amp;gt;= 200 )&lt;br /&gt;
   {&lt;br /&gt;
      print( `{mon}: {mon.min_meat}-{mon.max_meat}` );&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
  |moreinfo=&lt;br /&gt;
}}&lt;br /&gt;
|see_also=&lt;br /&gt;
|cli_equiv=&lt;br /&gt;
|more_info=&lt;br /&gt;
|special=&lt;br /&gt;
|{{{1|}}}&lt;br /&gt;
}}&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
[[Category:Miscellaneous Functions]]&lt;/div&gt;</summary>
		<author><name>Philmasterplus</name></author>
	</entry>
</feed>