<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_getGroupsByAttribute</id>
		<title>MIST getGroupsByAttribute - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_getGroupsByAttribute"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getGroupsByAttribute&amp;action=history"/>
		<updated>2026-04-25T00:56:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.hoggitworld.com/index.php?title=MIST_getGroupsByAttribute&amp;diff=13680&amp;oldid=prev</id>
		<title>Grimes: Created page with &quot;{{Mission Scripting  |fName= mist.getGroupsByAttribute|  |vNum = Mist 4.5  |desc= Iterates the mist database and the passed attributes table to find groups matching those para...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_getGroupsByAttribute&amp;diff=13680&amp;oldid=prev"/>
				<updated>2021-08-16T08:10:00Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Mission Scripting  |fName= mist.getGroupsByAttribute|  |vNum = Mist 4.5  |desc= Iterates the mist database and the passed attributes table to find groups matching those para...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Mission Scripting&lt;br /&gt;
&lt;br /&gt;
|fName= mist.getGroupsByAttribute|&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 4.5&lt;br /&gt;
&lt;br /&gt;
|desc= Iterates the mist database and the passed attributes table to find groups matching those parameters. Consider it to be an alternative of mist.makeUnitTable. &lt;br /&gt;
   typeName&lt;br /&gt;
   country&lt;br /&gt;
   coalition&lt;br /&gt;
   skill&lt;br /&gt;
   category&lt;br /&gt;
&lt;br /&gt;
Optional value matches determines how many of those entries must match. Defaults to 1. For instance if you pass 2, then any 2 of the above list must be present within a given group. &lt;br /&gt;
&lt;br /&gt;
Optional boolean value of id will if present return the groupId instead of group names. &lt;br /&gt;
&lt;br /&gt;
|rtnType= table&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= attributes&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|reqName2= &lt;br /&gt;
&lt;br /&gt;
|reqType3= &lt;br /&gt;
&lt;br /&gt;
|reqName3= &lt;br /&gt;
&lt;br /&gt;
|reqType4= &lt;br /&gt;
&lt;br /&gt;
|reqName4= &lt;br /&gt;
&lt;br /&gt;
|reqType5= &lt;br /&gt;
&lt;br /&gt;
|reqName5= &lt;br /&gt;
&lt;br /&gt;
|optType1= number&lt;br /&gt;
&lt;br /&gt;
|optName1= matches&lt;br /&gt;
&lt;br /&gt;
|optType2= boolean&lt;br /&gt;
&lt;br /&gt;
|optName2= id&lt;br /&gt;
&lt;br /&gt;
|optType3= &lt;br /&gt;
&lt;br /&gt;
|optName3= &lt;br /&gt;
&lt;br /&gt;
|optType4= &lt;br /&gt;
&lt;br /&gt;
|optName4= &lt;br /&gt;
&lt;br /&gt;
|optType5= &lt;br /&gt;
&lt;br /&gt;
|optName5= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|varExamples= Valid attributes: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   typeName       : a string of any unit type&lt;br /&gt;
   country        : a string of the country name&lt;br /&gt;
   coalition      : a string of the coalition name&lt;br /&gt;
   skill          : a string of the skill&lt;br /&gt;
   category       : a string of the category&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= &lt;br /&gt;
&lt;br /&gt;
|example= The following would return a table of ids for all blue clients&lt;br /&gt;
&lt;br /&gt;
   local list = mist.getGroupsByAttribute({skill = 'Clients', coalition = &amp;quot;blue&amp;quot;}, 2, true)&lt;br /&gt;
&lt;br /&gt;
|notes= &lt;br /&gt;
|funcs= {{ListOfMistGeneralPurposeFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|getGroupsByAttribute]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>