<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3AZone_Manual%2FThe_Objects_Section%2FBuilding_your_first_object</id>
	<title>Manual:Zone Manual/The Objects Section/Building your first object - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3AZone_Manual%2FThe_Objects_Section%2FBuilding_your_first_object"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Objects_Section/Building_your_first_object&amp;action=history"/>
	<updated>2026-06-25T08:59:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Objects_Section/Building_your_first_object&amp;diff=208&amp;oldid=prev</id>
		<title>Nove at 11:33, 26 May 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Objects_Section/Building_your_first_object&amp;diff=208&amp;oldid=prev"/>
		<updated>2020-05-26T11:33:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:33, 26 May 2020&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-l190&quot; &gt;Line 190:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 190:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	we will go over a debugging example and then all the special DIL functions made&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	we will go over a debugging example and then all the special DIL functions made&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	for objects.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;	for objects.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'&amp;gt;[[Manual:Zone_Manual/The_Objects_Section/Object_macros|Previous: Object macros]]&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&amp;lt;div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'&amp;gt;[[Manual:Zone_Manual/The_Objects_Section/Compiling_and_Debugging_your_first_object|Next: Compiling and Debugging your first object]]&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nove</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Objects_Section/Building_your_first_object&amp;diff=126&amp;oldid=prev</id>
		<title>Nove: Created page with &quot;=== Building your first object ===  	Now that you have learned how to make rooms and NPCs its time to 	make the objects for your little world. 	In the last couple of sections...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:Zone_Manual/The_Objects_Section/Building_your_first_object&amp;diff=126&amp;oldid=prev"/>
		<updated>2020-05-25T14:25:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Building your first object ===  	Now that you have learned how to make rooms and NPCs its time to 	make the objects for your little world. 	In the last couple of sections...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Building your first object ===&lt;br /&gt;
&lt;br /&gt;
	Now that you have learned how to make rooms and NPCs its time to&lt;br /&gt;
	make the objects for your little world.&lt;br /&gt;
	In the last couple of sections you have looked&lt;br /&gt;
	through the fields.  In this section we are going to make a nice easy&lt;br /&gt;
	object.  There is really not that much new from what you have learned&lt;br /&gt;
	with rooms and NPCs so this should be a real quick section.  As always&lt;br /&gt;
	we will start with something I like which as you remember is dragons.&lt;br /&gt;
	So the first object we will make is a dragon head.  I didn't say I liked&lt;br /&gt;
	them alive now did I?  Anyway this will be a nice simple object that&lt;br /&gt;
	your player can pick up and carry around.&lt;br /&gt;
&lt;br /&gt;
	When making objects you create the zone source file first as shown&lt;br /&gt;
	in (Link to ch-02).  If you only have objects you do not need the&lt;br /&gt;
	%reset, %mobiles, and %rooms fields.  For the examples in this chapter we&lt;br /&gt;
	will use the zone we created in (Link to ch-04) and add the&lt;br /&gt;
	%objects section where we will put all the object definitions.  At the end&lt;br /&gt;
	of this chapter, in (Link to roomnpcobjzone), we will bring it&lt;br /&gt;
	all together with the rooms and NPCs we have defined already.&lt;br /&gt;
&lt;br /&gt;
	The first part of all object definitions is the symbolic name it is good&lt;br /&gt;
	to always pick a name that will match the name of the object so it&lt;br /&gt;
	will be easy to load the object.&lt;br /&gt;
	The reason the symbolic and name should match is when you use the&lt;br /&gt;
	command '''wstat''' it will only show you a&lt;br /&gt;
	list of the objects by symbolic name for example if you type '''&lt;br /&gt;
	wstat zone dragon objects''' You will get the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	List of objects in zone Dragon:&lt;br /&gt;
	claw info_board dragon_head&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
If you didn't make it clear what the object was by the symbolic name&lt;br /&gt;
	it might look like this:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	List of objects in zone Dragon:&lt;br /&gt;
	obj1 a_obj2 o3&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
While this might be great when you first start imagine trying to&lt;br /&gt;
	remember each object if you have over 30 of them.&lt;br /&gt;
&lt;br /&gt;
	Now lets get started with our dragon head.  As with the rooms and&lt;br /&gt;
	npcs all that is required to make an object is the symbolic and end fields.&lt;br /&gt;
	That of course will make a NPC with all defaults.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	dragon_head&lt;br /&gt;
	end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Thats it for that dragon head right?  Nope not quite, like before&lt;br /&gt;
	with NPCs, that makes an object with all defaults.  That means this will probably be&lt;br /&gt;
	a very blank spot on the screen with no names and no way your players&lt;br /&gt;
	can interact with it.&lt;br /&gt;
	Now lets start putting the&lt;br /&gt;
	Dragon heads other more interesting fields on.&lt;br /&gt;
&lt;br /&gt;
	Like with rooms and NPCs, the first three things we need are the&lt;br /&gt;
	dragon heads title, description and names.  The description should be what you&lt;br /&gt;
	see when you do a 'look' in the room.  The title should be what you see&lt;br /&gt;
	when the object is in your inventory or you are whacking someone over the&lt;br /&gt;
	head with it.  Since we are not making a weapon though the title is what&lt;br /&gt;
	will be shown when you are picking up or dropping the object.&lt;br /&gt;
	 Finally the names should cover everything&lt;br /&gt;
	in the title and description fields so if your player wants to pick&lt;br /&gt;
	the object up or wear it will be easy to figure out what the names&lt;br /&gt;
	are.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	dragon_head&lt;br /&gt;
&lt;br /&gt;
	title &amp;quot;a gold dragon head&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	descr &amp;quot;A large golden dragon head is laying here looking sad.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	names {&amp;quot;large golden dragon head&amp;quot;,&amp;quot;large gold dragon head&amp;quot;,&lt;br /&gt;
	       &amp;quot;golden dragon head&amp;quot;,&amp;quot;large dragon head&amp;quot;,&amp;quot;gold dragon head&amp;quot;,&lt;br /&gt;
	       &amp;quot;dragon head&amp;quot;,&amp;quot;large head&amp;quot;, &amp;quot;sad head&amp;quot;,&amp;quot;head&amp;quot;}&lt;br /&gt;
	...&lt;br /&gt;
	end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The names, title and description shouldn't be to hard so I don't&lt;br /&gt;
	think its necessary to go into any more description on the subject.&lt;br /&gt;
	Lets move on.  Now we have to take care of what a player sees when he or&lt;br /&gt;
	she looks at an object.  to make the main description of an NPC you place an&lt;br /&gt;
	extra on the NPC with no names in the list.  The blank extra is a&lt;br /&gt;
	special extra that will be shown every time you look at anything in the&lt;br /&gt;
	names list of the object.  So a description of an object would look something&lt;br /&gt;
	like this.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	extra {}&lt;br /&gt;
	&amp;quot;The head is large and beautiful, at least as beautiful as a dead&lt;br /&gt;
	dragon head can be.  There is an extreme look of sorrow on the dragons&lt;br /&gt;
	face and it seems to be for much more than its own death.&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now that you have a main description for the object you need to make&lt;br /&gt;
	any smaller descriptions that you want the player to be able to look at.&lt;br /&gt;
	In this case it may be good to give some secret information if the&lt;br /&gt;
	player looks at the face of the head directly.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	extra {&amp;quot;gold dragon head face&amp;quot;,&amp;quot;dragon head face&amp;quot;,&amp;quot;head face&amp;quot;,&amp;quot;face&amp;quot;}&lt;br /&gt;
	&amp;quot;Looking into the dragons face your eyes are drawn to the eyes of the&lt;br /&gt;
	dead dragon.  Could there be something there?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;eyes&amp;quot;,&amp;quot;eye&amp;quot;}&lt;br /&gt;
	&amp;quot;A world of blue skies and no storms is visible through the eyes and it&lt;br /&gt;
	seems to be moving as if you were watching the world from space.&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now that we have the object all described we only need to give the&lt;br /&gt;
	     object the manipulate flags it needs, weight, height, and maybe&lt;br /&gt;
	     some extras that will make some cool acts when a player picks it up&lt;br /&gt;
	     or drops it.&lt;br /&gt;
&lt;br /&gt;
		 First thing to do though is pick the manipulate flags you&lt;br /&gt;
		want on the object.  This is not a weapon or armour so all the&lt;br /&gt;
		player really needs to be able to do with it is pick it up and maybe&lt;br /&gt;
		hold it if you want and I do.  The flags would then be as follows:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	manipulate {MANIPULATE_TAKE,MANIPULATE_HOLD}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
If you were feeling a little weird you could even make the&lt;br /&gt;
		 person be able to wear the dragon head on his head but that would&lt;br /&gt;
		 just be strange.  of course its always good to know you have&lt;br /&gt;
		 options.&lt;br /&gt;
&lt;br /&gt;
	Now lets set the height and weight.  Remember you set the height&lt;br /&gt;
	in centimeters and the weight in pounds.  In the future the VME will&lt;br /&gt;
	standardize to one or the other but for now we have to play the&lt;br /&gt;
	conversion game.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	//20 feet  (1 inch = 2.54 cm&lt;br /&gt;
	height 33&lt;br /&gt;
&lt;br /&gt;
	//566 KG (1 lb. = .45359 kg)&lt;br /&gt;
		 weight 50&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The final touch to our little dragon head is some cute acts&lt;br /&gt;
	when the player picks it up or drops it.  If you remember from the extra&lt;br /&gt;
	fields in (Link to objfielddescr), there are some special extras&lt;br /&gt;
	that are made just for this purpose.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	extra {&amp;quot;$get_s&amp;quot;}&lt;br /&gt;
	&amp;quot;You suddenly feel very sad for a world that you don't even know.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;$get_o&amp;quot;}&lt;br /&gt;
	&amp;quot;A strange look of sadness crosses $1ns face.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;$drop_s&amp;quot;}&lt;br /&gt;
	&amp;quot;You feel much happier but you remember a feeling of great sorrow.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;drop_o&amp;quot;}&lt;br /&gt;
	&amp;quot;$1n seems to cheer up a bit.&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
There are other things we could add to this item but I want to&lt;br /&gt;
	keep this first object simple.  The finished head would then look like&lt;br /&gt;
	this:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
	dragon_head&lt;br /&gt;
&lt;br /&gt;
	title &amp;quot;a gold dragon head&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	descr &amp;quot;A large golden dragon head is laying here looking sad.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	names {&amp;quot;large golden dragon head&amp;quot;,&amp;quot;large gold dragon head&amp;quot;,&lt;br /&gt;
	       &amp;quot;golden dragon head&amp;quot;,&amp;quot;large dragon head&amp;quot;,&amp;quot;gold dragon head&amp;quot;,&lt;br /&gt;
	       &amp;quot;dragon head&amp;quot;,&amp;quot;large head&amp;quot;, &amp;quot;sad head&amp;quot;,&amp;quot;head&amp;quot;}&lt;br /&gt;
&lt;br /&gt;
		   extra {}&lt;br /&gt;
	&amp;quot;The head is large and beautiful, at least as beautiful as a dead&lt;br /&gt;
	dragon head can be.  There is an extreme look of sorrow on the dragons&lt;br /&gt;
	face and it seems to be for much more than its own death.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;gold dragon head face&amp;quot;,&amp;quot;dragon head face&amp;quot;,&amp;quot;head face&amp;quot;,&amp;quot;face&amp;quot;}&lt;br /&gt;
	&amp;quot;Looking into the dragons face your eyes are drawn to the eyes of the&lt;br /&gt;
	dead dragon.  Could there be something there?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;eyes&amp;quot;,&amp;quot;eye&amp;quot;}&lt;br /&gt;
	&amp;quot;A world of blue skies and no storms is visible through the eyes and it&lt;br /&gt;
	seems to be moving as if you were watching the world from space.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	manipulate {MANIPULATE_TAKE,MANIPULATE_HOLD}&lt;br /&gt;
&lt;br /&gt;
	height 33&lt;br /&gt;
		 weight 50&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;$get_s&amp;quot;}&lt;br /&gt;
	&amp;quot;You suddenly feel very sad for a world that you don't even know.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;$get_o&amp;quot;}&lt;br /&gt;
	&amp;quot;A strange look of sadness crosses $1ns face.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;$drop_s&amp;quot;}&lt;br /&gt;
	&amp;quot;You feel much happier but you remember a feeling of great sorrow.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	extra {&amp;quot;drop_o&amp;quot;}&lt;br /&gt;
	&amp;quot;$1n seems to cheer up a bit.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	end&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Thats all there is to making regular items.  The rest is just&lt;br /&gt;
	adding functionality to what you already know.  We will get much deeper&lt;br /&gt;
	into what you can do with items in (Link to objcomplex) but first&lt;br /&gt;
	we will go over a debugging example and then all the special DIL functions made&lt;br /&gt;
	for objects.&lt;/div&gt;</summary>
		<author><name>Nove</name></author>
		
	</entry>
</feed>