<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NanoNewt</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=NanoNewt"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/NanoNewt"/>
	<updated>2026-09-08T20:51:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Get_moods&amp;diff=9519</id>
		<title>Get moods</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Get_moods&amp;diff=9519"/>
		<updated>2026-08-24T20:50:55Z</updated>

		<summary type="html">&lt;p&gt;NanoNewt: changed wording because the cli command does not return the exact same list as the function&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|get_moods}}{{&lt;br /&gt;
#vardefine:return_type|string [int]}}{{&lt;br /&gt;
#vardefine:aggregate|yes}}{{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 list of all currently defined mood names.|&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Samples|&lt;br /&gt;
description=Gives a list of your current saved moods. Also switches to the wiki&#039;s example mood and lists its triggers, if available.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
string[int] moods;&lt;br /&gt;
moods = get_moods();&lt;br /&gt;
print(&amp;quot;A list of all your current moods:&amp;quot;, &amp;quot;blue&amp;quot;);&lt;br /&gt;
foreach it, mood in moods {&lt;br /&gt;
   print(mood);&lt;br /&gt;
   if (mood == &amp;quot;moxieleveling&amp;quot;) {&lt;br /&gt;
      print(&amp;quot;Wiki example mood &#039;MoxieLeveling&#039; detected, switching to it now.&amp;quot;, &amp;quot;blue&amp;quot;);&lt;br /&gt;
      cli_execute(&amp;quot;mood &amp;quot;+mood);&lt;br /&gt;
      print(&amp;quot;It currently has the following triggers:&amp;quot;, &amp;quot;blue&amp;quot;);&lt;br /&gt;
      cli_execute(&amp;quot;trigger list&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
}      &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;|&lt;br /&gt;
moreinfo=&lt;br /&gt;
The wiki example of mood generation can be found on the cli_execute page. &lt;br /&gt;
}}|&lt;br /&gt;
cli_equiv=The CLI command &amp;lt;code&amp;gt; mood listall &amp;lt;/code&amp;gt; will print the same list (except for composite moods) in the CLI.|&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|my_effects|have_effect}}|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[index.php?title=Category:Adventuring]]&lt;/div&gt;</summary>
		<author><name>NanoNewt</name></author>
	</entry>
</feed>