<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Man set names - Revision history</title>
		<link>http://wiki.lostsouls.org/w/index.php?title=Man_set_names&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.8.2</generator>
		<lastBuildDate>Wed, 06 May 2026 08:33:30 GMT</lastBuildDate>
		<item>
			<title>Laine: /* See Also */</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_set_names&amp;diff=3923&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See Also&lt;/span&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;Revision as of 16:05, 11 June 2007&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 57:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 57:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;==See Also==&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;==See Also==&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; font-size: smaller;&quot;&gt;set_living_name(efun), set_id(lfun), set_short(lfun)&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;[[man set living name|&lt;/span&gt;set_living_name(efun)&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;]]&lt;/span&gt;, &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;[[man set id|&lt;/span&gt;set_id(lfun)&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;]]&lt;/span&gt;, &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;[[man set short|&lt;/span&gt;set_short(lfun)&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;]]&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;

			&lt;/table&gt;
		</description>
			<pubDate>Mon, 11 Jun 2007 16:05:01 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_set_names</comments>		</item>
		<item>
			<title>Laine at 16:00, 11 June 2007</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_set_names&amp;diff=3921&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;set_names - used to set the ids, short name and living name of an item/monster&lt;br /&gt;
&lt;br /&gt;
==Synopsis==&lt;br /&gt;
varargs void set_names(string *base, string *known) /* /std/item */&lt;br /&gt;
void set_names(string *ids)                         /* /std/autonomon */&lt;br /&gt;
&lt;br /&gt;
==Files==&lt;br /&gt;
    /std/item.c&lt;br /&gt;
    /std/autonomon.c&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Called within the configure() of an item or monster, set_names is used to&lt;br /&gt;
initialize the id array of an item or monster.  Additionally, the function&lt;br /&gt;
sets a few other handy values, depending upon whether it is used within an&lt;br /&gt;
item or monster.&lt;br /&gt;
&lt;br /&gt;
Usage within an item: &lt;br /&gt;
&lt;br /&gt;
set_names is used in place of set_id and set_short to define the identity&lt;br /&gt;
array of the item.  The first member of the array is set as the short&lt;br /&gt;
description of the item.&lt;br /&gt;
&lt;br /&gt;
In conjunction with set_code and set_identify_skills, set_names can be &lt;br /&gt;
given two arrays, *base and *known.  The first is an array of ids which&lt;br /&gt;
are used for item identification by players without the required skills.&lt;br /&gt;
The second array will be used if the player has at least one of the &lt;br /&gt;
required skill levels as defined by set_identify_skills, and is not a&lt;br /&gt;
necessary argument.  The first entry in each array will also be used for&lt;br /&gt;
short descriptions, eliminating the need for a separate set_short call.&lt;br /&gt;
&lt;br /&gt;
Usage within a monster:&lt;br /&gt;
&lt;br /&gt;
Used in place of set_id, set_short, and set_living_name, set_names will&lt;br /&gt;
perform the function of all three.  The entire array will be added to the&lt;br /&gt;
monster's id array, the first entry used as both the short description and&lt;br /&gt;
the string which is added to the hash table of living names.  If you want&lt;br /&gt;
your monster's short description to be different than that used during&lt;br /&gt;
action messages, then you must use set_id and set_short instead.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
&lt;br /&gt;
Usage within an item:&lt;br /&gt;
&lt;br /&gt;
    set_names(({&amp;quot;glowing sphere&amp;quot;, &amp;quot;sphere&amp;quot;, &amp;quot;ND&amp;quot;}));&lt;br /&gt;
    set_names(({&amp;quot;glowing sphere&amp;quot;, &amp;quot;sphere&amp;quot;, &amp;quot;ND&amp;quot;}), ({&amp;quot;Sphere of the Gods&amp;quot;}));&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage within a monster:&lt;br /&gt;
&lt;br /&gt;
    set_names(({&amp;quot;Remedios the Ancient&amp;quot;, &amp;quot;remedios&amp;quot;, &amp;quot;nyad&amp;quot;}));&lt;br /&gt;
    &lt;br /&gt;
    /* alternative method */&lt;br /&gt;
    set_id(({&amp;quot;Remedios&amp;quot;, &amp;quot;remedios&amp;quot;, &amp;quot;nyad&amp;quot;}));&lt;br /&gt;
    set_short(&amp;quot;Remedios the Ancient&amp;quot;);&lt;br /&gt;
    set_living_name(&amp;quot;remedios&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
set_living_name(efun), set_id(lfun), set_short(lfun)&lt;/div&gt;</description>
			<pubDate>Mon, 11 Jun 2007 16:00:22 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_set_names</comments>		</item>
	</channel>
</rss>