<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.lostsouls.org/w/index.php?action=history&amp;feed=atom&amp;title=Man_belonging</id>
		<title>Man belonging - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.lostsouls.org/w/index.php?action=history&amp;feed=atom&amp;title=Man_belonging"/>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;action=history"/>
		<updated>2026-05-07T13:43:48Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.8.2</generator>

	<entry>
		<id>http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3952&amp;oldid=prev</id>
		<title>Laine: /* Working With Belonging Descriptors */</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3952&amp;oldid=prev"/>
				<updated>2007-06-11T19:08:50Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Working With Belonging Descriptors&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 19:08, 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 105:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 105:&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;their own alternates in turn.&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;their own alternates in turn.&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: #ffa; font-size: smaller;&quot;&gt;=Working With Belonging Descriptors=&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;=&lt;/span&gt;=Working With Belonging Descriptors&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;=&lt;/span&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;To check values in belonging descriptors, #include &amp;lt;belonging.h&amp;gt; and use&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;To check values in belonging descriptors, #include &amp;lt;belonging.h&amp;gt; and use&lt;/td&gt;&lt;/tr&gt;

			&lt;/table&gt;
		</summary>
		<author><name>Laine</name></author>	</entry>

	<entry>
		<id>http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3951&amp;oldid=prev</id>
		<title>Laine: /* Files */</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3951&amp;oldid=prev"/>
				<updated>2007-06-11T19:08:29Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Files&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 19:08, 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 1:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 1:&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;belonging - belonging descriptors&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;belonging - belonging descriptors&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: #ffa; font-size: smaller;&quot;&gt;=Files=&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;=&lt;/span&gt;=Files&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;=&lt;/span&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; /std/autonomon.c&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; /std/autonomon.c&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; /def/descriptor/belonging.c&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt; /def/descriptor/belonging.c&lt;/td&gt;&lt;/tr&gt;

			&lt;/table&gt;
		</summary>
		<author><name>Laine</name></author>	</entry>

	<entry>
		<id>http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3950&amp;oldid=prev</id>
		<title>Laine: /* Description */</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3950&amp;oldid=prev"/>
				<updated>2007-06-11T19:08:03Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Description&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 19:08, 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 14:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 14:&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;with the general behavior of descriptors, as 'man descriptors' describes.&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;with the general behavior of descriptors, as 'man descriptors' describes.&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: #ffa; font-size: smaller;&quot;&gt;&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;*&lt;/span&gt;Fields&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;===&lt;/span&gt;Fields&lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;===&lt;/span&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;The fields of a belonging descriptor that you can use, in order, are:&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;The fields of a belonging descriptor that you can use, in order, are:&lt;/td&gt;&lt;/tr&gt;

			&lt;/table&gt;
		</summary>
		<author><name>Laine</name></author>	</entry>

	<entry>
		<id>http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3949&amp;oldid=prev</id>
		<title>Laine at 19:07, 11 June 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.lostsouls.org/w/index.php?title=Man_belonging&amp;diff=3949&amp;oldid=prev"/>
				<updated>2007-06-11T19:07:11Z</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;belonging - belonging descriptors&lt;br /&gt;
&lt;br /&gt;
=Files=&lt;br /&gt;
 /std/autonomon.c&lt;br /&gt;
 /def/descriptor/belonging.c&lt;br /&gt;
 /lib/descriptors/belonging.h&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Belongings for the belonging system in /std/autonomon.c are specified using&lt;br /&gt;
belonging descriptors, as defined by /def/descriptor/belonging.c and&lt;br /&gt;
/lib/descriptors/belonging.h.  In order to use the macros described below,&lt;br /&gt;
you will need to #include &amp;lt;belonging.h&amp;gt;.  It will be helpful to be familiar&lt;br /&gt;
with the general behavior of descriptors, as 'man descriptors' describes.&lt;br /&gt;
&lt;br /&gt;
*Fields&lt;br /&gt;
&lt;br /&gt;
The fields of a belonging descriptor that you can use, in order, are:&lt;br /&gt;
&lt;br /&gt;
    Belonging_File&lt;br /&gt;
    Belonging_Count&lt;br /&gt;
    Belonging_Usage&lt;br /&gt;
    Belonging_Priority&lt;br /&gt;
    Belonging_Initialize&lt;br /&gt;
    Belonging_Equip&lt;br /&gt;
    Belonging_Unequip&lt;br /&gt;
    Belonging_Alternate&lt;br /&gt;
&lt;br /&gt;
Any of the descriptor specification forms may be used, including implicit&lt;br /&gt;
form; the belonging functions automatically interpret their arguments in&lt;br /&gt;
terms of belonging descriptors.&lt;br /&gt;
&lt;br /&gt;
The meaning of each of the fields is:&lt;br /&gt;
&lt;br /&gt;
Belonging_File: Designates the object constituting the belonging.  May be&lt;br /&gt;
any of the following:&lt;br /&gt;
&lt;br /&gt;
    A string: The usual choice.  The object designated will be cloned or&lt;br /&gt;
    loaded, as appropriate (this being determined by query_unique()), and&lt;br /&gt;
    moved to the character.&lt;br /&gt;
&lt;br /&gt;
    An object: May be used to directly specify an object base class or a&lt;br /&gt;
    pre-cloned object to use as the belonging.  The Belonging_File field&lt;br /&gt;
    will be converted to the load_name() of the object when the character's&lt;br /&gt;
    belongings are processed.&lt;br /&gt;
&lt;br /&gt;
    A closure: Will be called with arguments of 1) the character and 2) the&lt;br /&gt;
    belonging descriptor, and must return one of the above types, or zero,&lt;br /&gt;
    for which no belonging will be generated.&lt;br /&gt;
&lt;br /&gt;
Belonging_Count: This is the number of clones of the object which you wish&lt;br /&gt;
the character to have.  It defaults to 1, and must be an integer.  Values&lt;br /&gt;
greater than 1 used with unique items will cause errors.&lt;br /&gt;
&lt;br /&gt;
Belonging_Usage: Specifies how and whether the item is to be equipped.&lt;br /&gt;
The possible values for this field are:&lt;br /&gt;
&lt;br /&gt;
    Belonging_Usage_None: Do not equip the item.&lt;br /&gt;
    Belonging_Usage_Hold: Hold the item in a hand, as with wielding a&lt;br /&gt;
        weapon.&lt;br /&gt;
    Belonging_Usage_Wear: Wear the item, as with armour or clothing.&lt;br /&gt;
    Belonging_Usage_Adaptive: Examine the item for the most appropriate&lt;br /&gt;
        mode of usage and equip it in that fashion.  This is the default.&lt;br /&gt;
&lt;br /&gt;
Belonging_Priority: Specifies how important it is to load the item onto&lt;br /&gt;
the character quickly.  Items of higher priority are always loaded before&lt;br /&gt;
items of lower priority.  Note that this mechanism will generally attempt&lt;br /&gt;
to immediately load up as many of the character's belongings as can be&lt;br /&gt;
handled within eval limitations.  The possible values for this field are:&lt;br /&gt;
&lt;br /&gt;
    Belonging_Priority_Low: Low priority.  The character's belonging&lt;br /&gt;
        loading process will be delayed if eval passes below Eval_High.&lt;br /&gt;
    Belonging_Priority_Normal: Normal priority.  The character's belonging&lt;br /&gt;
        loading process will be delayed if eval passes below Eval_High.&lt;br /&gt;
        This is the default.&lt;br /&gt;
    Belonging_Priority_High: High priority.  The character's belonging&lt;br /&gt;
        loading process will be delayed if eval passes below Eval_Medium.&lt;br /&gt;
    Belonging_Priority_Override: Overriding priority.  The character's&lt;br /&gt;
        belonging loading process will only be delayed if eval passes&lt;br /&gt;
        below Eval_Low, and the load deferment mechanism will not defer&lt;br /&gt;
        this item's loading.&lt;br /&gt;
&lt;br /&gt;
Belonging_Initialize: Allows you to manipulate the item as it is loaded.&lt;br /&gt;
This value must be a closure, which will be called with arguments of&lt;br /&gt;
1) the item, 2) the character, 3) the belonging descriptor.  The return&lt;br /&gt;
value is ignored.  Destruction of the item is allowed, though not exactly&lt;br /&gt;
recommended.&lt;br /&gt;
&lt;br /&gt;
Belonging_Equip: Allows you to manipulate the item immediately after it&lt;br /&gt;
is equipped.  This value must be a closure, which will be called with&lt;br /&gt;
arguments of 1) the item, 2) the character, 3) the belonging descriptor.&lt;br /&gt;
The return value is ignored.&lt;br /&gt;
&lt;br /&gt;
Belonging_Unequip: Allows you to manipulate the item immediately after it&lt;br /&gt;
is unequipped.  This value must be a closure, which will be called with&lt;br /&gt;
arguments of 1) the item, 2) the character, 3) the belonging descriptor.&lt;br /&gt;
The return value is ignored.&lt;br /&gt;
&lt;br /&gt;
Belonging_Alternate: An alternate belonging which is used if this one&lt;br /&gt;
is not available.  This is only comes into play with unique items; &amp;quot;not&lt;br /&gt;
available&amp;quot; means the item exists and has an environment other than the&lt;br /&gt;
character, or that it is reserved by the keep system.  The value of this&lt;br /&gt;
field is interpreted as a belonging descriptor itself, specified using&lt;br /&gt;
the exact same rules as any other.  Alternates may be unique items with&lt;br /&gt;
their own alternates in turn.&lt;br /&gt;
&lt;br /&gt;
=Working With Belonging Descriptors=&lt;br /&gt;
&lt;br /&gt;
To check values in belonging descriptors, #include &amp;lt;belonging.h&amp;gt; and use&lt;br /&gt;
the macro Belonging_Query(x, y), where x is the descriptor and y is the&lt;br /&gt;
field (Belonging_File, etc.) you wish to get the value of.  It is not&lt;br /&gt;
recommended to modify the values of belonging descriptors that are in use.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
[[man set belongings|set_belongings(lfun)]], [[man add belonging|add_belonging(lfun)]], [[man query belongings|query_belongings(lfun)]], [[man remove belonging|remove_belonging(lfun)]], [[man descriptors|descriptors(mechanisms)]]&lt;/div&gt;</summary>
		<author><name>Laine</name></author>	</entry>

	</feed>