<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://72.14.177.54/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Hashset Module Documentation - Revision history</title>
		<link>http://72.14.177.54/nwnx/?title=Hashset_Module_Documentation&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Fri, 17 Apr 2026 01:51:17 GMT</lastBuildDate>
		<item>
			<title>Tissa at 00:18, 20 April 2006</title>
			<link>http://72.14.177.54/nwnx/?title=Hashset_Module_Documentation&amp;diff=1496&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&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 valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 00:18, 20 April 2006&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Return TRUE if the current key is not the last one, FALSE otherwise&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Return TRUE if the current key is not the last one, FALSE otherwise&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Documentation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2026-04-17 01:51:17 --&gt;
&lt;/table&gt;</description>
			<pubDate>Thu, 20 Apr 2006 00:18:05 GMT</pubDate>			<dc:creator>Tissa</dc:creator>			<comments>http://72.14.177.54/nwnx/Talk:Hashset_Module_Documentation</comments>		</item>
		<item>
			<title>Dougnoel at 20:04, 19 April 2006</title>
			<link>http://72.14.177.54/nwnx/?title=Hashset_Module_Documentation&amp;diff=1441&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Documentation and program are © by Ingmar Stieger (Papillon). Version 1.0 of 18.12.2003.&lt;br /&gt;
{|&lt;br /&gt;
|__TOC__&lt;br /&gt;
|valign=top|&lt;br /&gt;
{|&lt;br /&gt;
| style=&amp;quot;border: 1px solid #8470FF; padding: .5em 1em; margin: 1em; background-color: #EEEEFF;&amp;quot;|&amp;lt;b&amp;gt;Author:&amp;lt;/b&amp;gt; Papillon&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Source:&amp;lt;/b&amp;gt; [http://nwnx.org/index.php?id=doc_hashset NWNX Site]&amp;lt;br&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
==What does this module do?==&lt;br /&gt;
his modules implements an advanced data structure, combining a hashmap and a set. This means you can set up associations between key - value pairs (hashmap), and also cycle through all stored data (set). You can even use this like an array, although it has much more to offer than just that. Even if it's the first release of this module, it has been in production on Avlis for quite some now and proofed to be very reliable.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Licence&amp;lt;/b&amp;gt;&lt;br /&gt;
This module is distributed unter the terms of the GNU GENERAL PUBLIC LICENSE included in licence.txt.&lt;br /&gt;
&lt;br /&gt;
==Using the module==&lt;br /&gt;
===Importing the erf===&lt;br /&gt;
&lt;br /&gt;
*1. Place the file &amp;quot;hashset_nwnx.erf&amp;quot; into the C:\\Neverwinternights\\NWN\\erf directory.&lt;br /&gt;
*2. In the toolset, open up the module into which you wish to install the scripts.&lt;br /&gt;
*3. Under the File Menu, click Import. A window will pop up.&lt;br /&gt;
*4. Make sure the contents of the C:\\Neverwinternights\\NWN\\erf directory are showing in the window&lt;br /&gt;
*5. Select &amp;quot;hashset_nwnx.erf&amp;quot; from the list.&lt;br /&gt;
&lt;br /&gt;
The following script should now be imported: hashset_nwnx&lt;br /&gt;
&lt;br /&gt;
===Using the HashSet functions===&lt;br /&gt;
The functions below are implemented. Have a look at the script modload in the module &amp;quot;hashset_nwnx.mod&amp;quot; to see how these functions are used.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetCreate(object oObject, string sHashSetName, int iSize = 500)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
create a new HashSet on oObject with name sHashSetName&lt;br /&gt;
iSize is optional&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;void HashSetDestroy(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clear and delete sHashSetName on oObject&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetValid(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
return true if hashset sHashSet is valid&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetKeyExists(object oObject, string sHashSetName, string sKey)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
return true if hashset sHashSet contains key sKey&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetSetLocalString(object oObject, string sHashSetName, string sKey, string sValue)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set key sKey of sHashset to string sValue&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;string HashSetGetLocalString(object oObject, string sHashSetName, string sKey)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Retrieve string value of sKey in sHashset&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetSetLocalInt(object oObject, string sHashSetName, string sKey, int iValue)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set key sKey of sHashset to integer iValue&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetGetLocalInt(object oObject, string sHashSetName, string sKey)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Retrieve integer value of sKey in sHashset&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetDeleteVariable(object oObject, string sHashSetName, string sKey)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Delete sKey in sHashset&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;string HashSetGetNthKey(object oObject, string sHashSetName, int i)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return the n-th key in sHashset&lt;br /&gt;
note: this returns the KEY, not the value of the key&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;string HashSetGetFirstKey(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return the first key in sHashset&lt;br /&gt;
note: this returns the KEY, not the value of the key;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;string HashSetGetNextKey(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return the next key in sHashset&lt;br /&gt;
note: this returns the KEY, not the value of the key;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;string HashSetGetCurrentKey(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return the current key in sHashset&lt;br /&gt;
note: this returns the KEY, not the value of the key;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetGetSize(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return the number of elements in sHashset&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;int HashSetHasNext(object oObject, string sHashSetName)&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return TRUE if the current key is not the last one, FALSE otherwise&lt;/div&gt;</description>
			<pubDate>Wed, 19 Apr 2006 20:04:01 GMT</pubDate>			<dc:creator>Dougnoel</dc:creator>			<comments>http://72.14.177.54/nwnx/Talk:Hashset_Module_Documentation</comments>		</item>
	</channel>
</rss>