<?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%3ADIL_Manual%2Fnatural_armour</id>
	<title>Manual:DIL Manual/natural armour - 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%3ADIL_Manual%2Fnatural_armour"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/natural_armour&amp;action=history"/>
	<updated>2026-11-24T03:53:31Z</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:DIL_Manual/natural_armour&amp;diff=2953&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/natural_armour&amp;diff=2953&amp;oldid=prev"/>
		<updated>2026-11-14T23:14:47Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= natural_armour =&lt;br /&gt;
'''Field''' (integer, read/write; units: characters).&lt;br /&gt;
&lt;br /&gt;
 ch.natural_armour : integer&lt;br /&gt;
&lt;br /&gt;
The armour type of a character's own skin, used where no worn armour covers the spot that is hit: an &amp;lt;code&amp;gt;ARM_&amp;lt;/code&amp;gt; constant from vme.h, &amp;lt;code&amp;gt;ARM_CLOTHES&amp;lt;/code&amp;gt; (0), &amp;lt;code&amp;gt;ARM_LEATHER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ARM_HLEATHER&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ARM_CHAIN&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ARM_PLATE&amp;lt;/code&amp;gt; (4). It picks the column of the weapon and spell damage tables. A zone file sets it with &amp;lt;code&amp;gt;armour&amp;lt;/code&amp;gt; in an NPC (&amp;lt;code&amp;gt;NATURAL_DEF&amp;lt;/code&amp;gt; in wmacros.h); for players the natural-armour spells (&amp;lt;code&amp;gt;APF_NATURAL_ARMOUR&amp;lt;/code&amp;gt;) raise it while they last.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* On an object, a room or null it fails.&lt;br /&gt;
* No access level is needed to assign it.&lt;br /&gt;
* Stored as an unsigned 8-bit number, and not checked: assign only 0 to 4. Melee damage logs &amp;quot;Illegal armour type.&amp;quot; and uses &amp;lt;code&amp;gt;ARM_CLOTHES&amp;lt;/code&amp;gt; for anything else, but spell damage uses the value as an index into its table and reads past the end.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin harden_skin(dur : integer);&lt;br /&gt;
var&lt;br /&gt;
   old : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   old := self.natural_armour;&lt;br /&gt;
   if (old &amp;lt; ARM_CHAIN)&lt;br /&gt;
      self.natural_armour := ARM_CHAIN;&lt;br /&gt;
   act(&amp;quot;$1n's skin turns into a bone-like shell.&amp;quot;, A_ALWAYS, self, null, null, TO_ROOM);&lt;br /&gt;
   heartbeat := PULSE_SEC * dur;&lt;br /&gt;
   pause;&lt;br /&gt;
   self.natural_armour := old;&lt;br /&gt;
   act(&amp;quot;$1n's skin is back to normal.&amp;quot;, A_ALWAYS, self, null, null, TO_ROOM);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives an NPC a chain-mail hide for a while.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/attack type|attack_type]]&lt;br /&gt;
* [[Manual:DIL Manual/defensive|defensive]]&lt;br /&gt;
* [[Manual:DIL Manual/addaff()|addaff()]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>