<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://nexusthegame.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://nexusthegame.net/w/index.php?action=history&amp;feed=atom&amp;title=GetFreeSel</id>
		<title>GetFreeSel - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://nexusthegame.net/w/index.php?action=history&amp;feed=atom&amp;title=GetFreeSel"/>
		<link rel="alternate" type="text/html" href="http://nexusthegame.net/w/index.php?title=GetFreeSel&amp;action=history"/>
		<updated>2026-06-14T04:06:51Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>http://nexusthegame.net/w/index.php?title=GetFreeSel&amp;diff=206&amp;oldid=prev</id>
		<title>Arparso at 11:53, 17 June 2009</title>
		<link rel="alternate" type="text/html" href="http://nexusthegame.net/w/index.php?title=GetFreeSel&amp;diff=206&amp;oldid=prev"/>
				<updated>2009-06-17T11:53:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:53, 17 June 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;MyList := GetFreeSel();&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;MyList := GetFreeSel();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Select(MyList, S.device);&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Select(MyList, S.device);&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;==Possible pitfall==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Be careful with this: subsequent calls to GetFreeSel() will '''always''' return the same list ID, unless you used this list inbetween these calls. The following is WRONG:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Be careful with this: subsequent calls to GetFreeSel() will '''always''' return the same list ID, unless you used this list inbetween these calls. The following is WRONG:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Arparso</name></author>	</entry>

	<entry>
		<id>http://nexusthegame.net/w/index.php?title=GetFreeSel&amp;diff=205&amp;oldid=prev</id>
		<title>Arparso: Created page with '&lt;big&gt;'''GetFreeSel''' ''();''&lt;/big&gt;  :It returns a list ID that is empty and that hasn’t been used so far. You can use this, and the DeleteSelect() typically in subroutines to ...'</title>
		<link rel="alternate" type="text/html" href="http://nexusthegame.net/w/index.php?title=GetFreeSel&amp;diff=205&amp;oldid=prev"/>
				<updated>2009-06-17T11:52:01Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;big&amp;gt;&amp;#039;&amp;#039;&amp;#039;GetFreeSel&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;();&amp;#039;&amp;#039;&amp;lt;/big&amp;gt;  :It returns a list ID that is empty and that hasn’t been used so far. You can use this, and the DeleteSelect() typically in subroutines to ...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;big&amp;gt;'''GetFreeSel''' ''();''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:It returns a list ID that is empty and that hasn’t been used so far. You can use this, and the DeleteSelect() typically in subroutines to create and delete our lists.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example: ''creating an empty list and filling it with devices''&lt;br /&gt;
&amp;lt;pre&amp;gt;MyList := GetFreeSel();&lt;br /&gt;
Select(MyList, S.device);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Be careful with this: subsequent calls to GetFreeSel() will '''always''' return the same list ID, unless you used this list inbetween these calls. The following is WRONG:&lt;br /&gt;
&amp;lt;pre&amp;gt;MyFirstList := GetFreeSel();&lt;br /&gt;
MySecondList := GetFreeSel();&lt;br /&gt;
Select(MyFirstList, s.engine);&lt;br /&gt;
Select(MySecondList, s.weapon);&amp;lt;/pre&amp;gt;&lt;br /&gt;
:Both 'MyFirstList' and 'MySecondList' point to the same list, so 'MyFirstList' doesn't contain engines, but weapons instead! This is because after the first call to GetFreeSel(), the list hadn't been used - so the second call to GetFreeSel() actually returns the exact same list ID! The following would have been RIGHT:&lt;br /&gt;
&amp;lt;pre&amp;gt;MyFirstList := GetFreeSel();&lt;br /&gt;
Select(MyFirstList, s.engine);&lt;br /&gt;
MySecondList := GetFreeSel();&lt;br /&gt;
Select(MySecondList, s.weapon);&amp;lt;/pre&amp;gt;&lt;br /&gt;
:Now both 'MyFirstList' and 'MySecondList' point to different list IDs and can be handled seperatedly.&lt;br /&gt;
&lt;br /&gt;
{{ScriptStructureCommands}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Script structure commands]]&lt;/div&gt;</summary>
		<author><name>Arparso</name></author>	</entry>

	</feed>