<?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_randomizeGroupOrder</id>
		<title>MIST randomizeGroupOrder - 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_randomizeGroupOrder"/>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_randomizeGroupOrder&amp;action=history"/>
		<updated>2026-04-26T11:18:20Z</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_randomizeGroupOrder&amp;diff=1051&amp;oldid=prev</id>
		<title>Grimes at 23:09, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoggitworld.com/index.php?title=MIST_randomizeGroupOrder&amp;diff=1051&amp;oldid=prev"/>
				<updated>2018-04-13T23:09:40Z</updated>
		
		<summary type="html">&lt;p&gt;&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.spawnRandomizedGroup&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 3.5&lt;br /&gt;
&lt;br /&gt;
|desc= Randomizes the contents of a group for further use in spawning or other purposes a designer could use it for.  The optional variables define which units in the group will not be randomized. The lowerLimit and upperLimit variables respectively define the low and upper limits on which unit indexes can be randomized. The excludeNum table is a table of numbers, in no particular order, of which unit indexes will be ignored. The excludeType table defines the unitType name of units that will be ignored.  &lt;br /&gt;
&lt;br /&gt;
|rtnType= table&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= units&lt;br /&gt;
&lt;br /&gt;
|reqType2= &lt;br /&gt;
&lt;br /&gt;
|optType1= table&lt;br /&gt;
&lt;br /&gt;
|optName1= vars&lt;br /&gt;
&lt;br /&gt;
|optType2=&lt;br /&gt;
&lt;br /&gt;
|varExamples= &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  units = mist.getGroupData(groupName).units&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{varsTable&lt;br /&gt;
&lt;br /&gt;
|r1T= &lt;br /&gt;
|r1N= &lt;br /&gt;
&lt;br /&gt;
|r2T= &lt;br /&gt;
|r2N= &lt;br /&gt;
&lt;br /&gt;
|r3T= &lt;br /&gt;
|r3N= &lt;br /&gt;
&lt;br /&gt;
|r4N= &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|o1T= number&lt;br /&gt;
|o1N= lowerLimit&lt;br /&gt;
&lt;br /&gt;
|o2T= number&lt;br /&gt;
|o2N= upperLimit&lt;br /&gt;
&lt;br /&gt;
|o3T= table&lt;br /&gt;
|o3N= excludeNum&lt;br /&gt;
&lt;br /&gt;
|o4T= table&lt;br /&gt;
|o4N= excludeType&lt;br /&gt;
&lt;br /&gt;
|o5T= &lt;br /&gt;
|o5N= &lt;br /&gt;
&lt;br /&gt;
|r1D= &lt;br /&gt;
|r2D= &lt;br /&gt;
|r3D= &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
|r4D= &lt;br /&gt;
|r5D=&lt;br /&gt;
|r6D=&lt;br /&gt;
&lt;br /&gt;
|o1D= is an optional variable that defines the lower range of which unit indexes will be randomized. &lt;br /&gt;
|o2D= is an optional variable that defines the upper range of which unit indexes will be randomized.&lt;br /&gt;
|o3D= is an optional table that defines unit indexes that will not be randomized. &lt;br /&gt;
|o4D= is an optional table of strings that lists unitTypes that will not be randomized. &lt;br /&gt;
|o5D=&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= units table&lt;br /&gt;
&lt;br /&gt;
|example= &amp;lt;pre&amp;gt;&lt;br /&gt;
  local newGroup = mist.getGroupData('myGroup')  &lt;br /&gt;
  newGroup.units = mist.randomizeGroupOrder(newGroup.units), {lowerLimit = 2, upperLimit = 9})&lt;br /&gt;
  &lt;br /&gt;
  mist.dynAdd(newGroup)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Groups will spawn in the following order with 'r' representing a random position:&lt;br /&gt;
1, 2, r, r, r, r, r, r, 9, 10&lt;br /&gt;
&lt;br /&gt;
|notes= &lt;br /&gt;
 &lt;br /&gt;
|funcs= {{listOfMistGroupData}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|randomizeGroupOrder]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>	</entry>

	</feed>