<?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=Get_goals</id>
	<title>Get goals - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Get_goals"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Get_goals&amp;action=history"/>
	<updated>2026-04-30T18:17:18Z</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=Get_goals&amp;diff=8366&amp;oldid=prev</id>
		<title>Bale: r10756</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Get_goals&amp;diff=8366&amp;oldid=prev"/>
		<updated>2014-11-05T06:09:40Z</updated>

		<summary type="html">&lt;p&gt;r10756&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|get_goals}}{{&lt;br /&gt;
#vardefine:return_type|string [int]}}{{&lt;br /&gt;
#vardefine:aggregate|yes}}{{&lt;br /&gt;
&lt;br /&gt;
FunctionPage|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
&lt;br /&gt;
function1={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=This function returns an integer indexed map of all active adventuring goals that have not yet been met.|&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=CodeSample|&lt;br /&gt;
description=Version of {{f|is_goal}} that accepts a stat and return true if it is a goal.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
boolean is_goal( stat gstat ) {&lt;br /&gt;
   matcher stat_goal = create_matcher( &amp;quot;\\d+ &amp;quot; + to_lower_case(gstat), g );&lt;br /&gt;
   foreach i,g in get_goals() &lt;br /&gt;
      if( stat_goal.find() )&lt;br /&gt;
         return true;&lt;br /&gt;
   return false;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}|&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|adventure|add_item_condition|goal_exists|is_goal}}|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Adventuring]]&lt;/div&gt;</summary>
		<author><name>Bale</name></author>
	</entry>
</feed>