<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-new.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_mapobjs_dead_polygon</id>
	<title>MIST mapobjs dead polygon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-new.hoggitworld.com/index.php?action=history&amp;feed=atom&amp;title=MIST_mapobjs_dead_polygon"/>
	<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=MIST_mapobjs_dead_polygon&amp;action=history"/>
	<updated>2026-10-23T14:21:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki-new.hoggitworld.com/index.php?title=MIST_mapobjs_dead_polygon&amp;diff=14595&amp;oldid=prev</id>
		<title>Grimes at 08:58, 8 November 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=MIST_mapobjs_dead_polygon&amp;diff=14595&amp;oldid=prev"/>
		<updated>2023-11-08T08:58:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:58, 8 November 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot;&gt;Line 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 67:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|r1D= is a table of map points that defines the polygon shape (indexed numerically).  See  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|r1D= is a table of map points that defines the polygon shape (indexed numerically).  See  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[pointInPolygon]] for a good explanation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MIST_pointInPolygon|&lt;/ins&gt;pointInPolygon]] for a good explanation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|r2D= is the flag number that will be set true if the conditions are met&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|r2D= is the flag number that will be set true if the conditions are met&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Grimes</name></author>
	</entry>
	<entry>
		<id>https://wiki-new.hoggitworld.com/index.php?title=MIST_mapobjs_dead_polygon&amp;diff=1088&amp;oldid=prev</id>
		<title>Grimes at 23:22, 13 April 2018</title>
		<link rel="alternate" type="text/html" href="https://wiki-new.hoggitworld.com/index.php?title=MIST_mapobjs_dead_polygon&amp;diff=1088&amp;oldid=prev"/>
		<updated>2018-04-13T23:22:01Z</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.flagFunc.mapobjs_dead_polygon&lt;br /&gt;
&lt;br /&gt;
|vNum = Mist 1.0&lt;br /&gt;
&lt;br /&gt;
|desc= Sets a flag true when the a required number of world objects are dead within the specified zones.&lt;br /&gt;
&lt;br /&gt;
|rtnType= nothing&lt;br /&gt;
&lt;br /&gt;
|reqType1= table&lt;br /&gt;
&lt;br /&gt;
|reqName1= vars&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= &lt;br /&gt;
&lt;br /&gt;
|optName1= &lt;br /&gt;
&lt;br /&gt;
|optType2= &lt;br /&gt;
&lt;br /&gt;
|optName2= &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;
|varExamples= {{varsTable&lt;br /&gt;
&lt;br /&gt;
|r1T= table&lt;br /&gt;
|r1N= zone&lt;br /&gt;
&lt;br /&gt;
|r2T= number/string&lt;br /&gt;
|r2N= flag&lt;br /&gt;
&lt;br /&gt;
|r3N=&lt;br /&gt;
&lt;br /&gt;
|o1T= number/string&lt;br /&gt;
|o1N= stopFlag&lt;br /&gt;
&lt;br /&gt;
|o2T= number &lt;br /&gt;
|o2N= req_num&lt;br /&gt;
|o3N=&lt;br /&gt;
&lt;br /&gt;
|r1D= is a table of map points that defines the polygon shape (indexed numerically).  See &lt;br /&gt;
[[pointInPolygon]] for a good explanation.&lt;br /&gt;
|r2D= is the flag number that will be set true if the conditions are met&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|o1D=  is an optional variable that allows you to specify a flag number that, if set true, will &lt;br /&gt;
stop the process.   &lt;br /&gt;
|o2D=  is an optional variable that allows you to specify the minimum number of units that &lt;br /&gt;
must be in one (or more) of the zones before flag is set true. &amp;lt;ins&amp;gt; If req_num is not specified, it &lt;br /&gt;
defaults to 1. &amp;lt;/ins&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
|rtnExamples= nothing&lt;br /&gt;
&lt;br /&gt;
|example= &amp;lt;code&amp;gt;&lt;br /&gt;
do&lt;br /&gt;
  mist.flagFunc.mapobjs_dead_polygon{  &lt;br /&gt;
    zone = { &lt;br /&gt;
        [1] = mist.DBs.unitsByName[&amp;#039;NE corner&amp;#039;].point, &lt;br /&gt;
        [2] = mist.DBs.unitsByName[&amp;#039;SE corner&amp;#039;].point,  &lt;br /&gt;
        [3] = mist.DBs.unitsByName[&amp;#039;SW corner&amp;#039;].point, &lt;br /&gt;
        [4] = mist.DBs.unitsByName[&amp;#039;NW corner&amp;#039;].point &lt;br /&gt;
    }, &lt;br /&gt;
    flag = 151, &lt;br /&gt;
    req_num = 15, &lt;br /&gt;
  } &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
  mist.flagFunc.mapobjs_dead_polygon{  &lt;br /&gt;
    zone = mist.getGroupPoints(&amp;#039;Russia group&amp;#039;),  &lt;br /&gt;
    flag = 90, &lt;br /&gt;
    req_num = 50, &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|notes= Once this function is run, it will start a continuously evaluated process that will set flag flag true  &lt;br /&gt;
if map objects (such as bridges, buildings in town, etc.) die (or have died) in a mission editor &lt;br /&gt;
zone (or set of zones).  This will only happen once; once the flag flag is set true, the process &lt;br /&gt;
ends&lt;br /&gt;
&lt;br /&gt;
Mist 3.5 allows for strings to be used to define flags. &lt;br /&gt;
&lt;br /&gt;
|funcs= {{listOfMistFlagFuncs}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
[[Category: MIST|mapobjs_dead_polygon]]&lt;/div&gt;</summary>
		<author><name>Grimes</name></author>
	</entry>
</feed>