<?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%2Fskills</id>
	<title>Manual:DIL Manual/skills - 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%2Fskills"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/skills&amp;action=history"/>
	<updated>2026-11-22T21:19:56Z</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/skills&amp;diff=2849&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/skills&amp;diff=2849&amp;oldid=prev"/>
		<updated>2026-11-14T23:08:40Z</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;= skills =&lt;br /&gt;
'''Field''' (integer, read/write; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.skills[index] : integer&lt;br /&gt;
&lt;br /&gt;
A player's skill, in percent, in the skill with that index. The indexes are the &amp;lt;code&amp;gt;SKI_*&amp;lt;/code&amp;gt; constants in &amp;lt;code&amp;gt;vme/include/values.h&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;SKI_FIRST_AID&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;SKI_SEARCH&amp;lt;/code&amp;gt;, ...), from 0 to &amp;lt;code&amp;gt;SKI_TREE_MAX - 1&amp;lt;/code&amp;gt; (vme.h). Training at a guild raises it; &amp;lt;code&amp;gt;skill_name(index)&amp;lt;/code&amp;gt; gives the skill's name.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Players only. On an NPC, an object, a room or null the field fails; so does an index outside 0 to &amp;lt;code&amp;gt;SKI_TREE_MAX - 1&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Only a program in a zone with access level 0 (the fourth column of &amp;lt;code&amp;gt;vme/etc/zonelist&amp;lt;/code&amp;gt;) can assign it, as basis.zon does to give a new player the starting skills. Elsewhere vmc accepts the assignment, but at run time the program logs &amp;quot;DIL SERIOUS: ... Type error in lvalue assignemt&amp;quot; and stops. Reading works in every zone.&lt;br /&gt;
* Stored as a signed 16-bit number: values outside -32768 to 32767 wrap around.&lt;br /&gt;
* NPCs have no skills of this kind; use [[Manual:DIL Manual/weapons|weapons]] and [[Manual:DIL Manual/spells|spells]] for them.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin integer first_aid_roll(pc : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (pc.type != UNIT_ST_PC)&lt;br /&gt;
      return (FALSE);&lt;br /&gt;
   return (openroll(60, 5) &amp;lt; pc.skills[SKI_FIRST_AID]);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Rolls against a player's first aid skill, as the healing balm in udgaard.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/skill levels|skill_levels]]&lt;br /&gt;
* [[Manual:DIL Manual/skill costs|skill_costs]]&lt;br /&gt;
* [[Manual:DIL Manual/skill points|skill_points]]&lt;br /&gt;
* [[Manual:DIL Manual/skill name()|skill_name()]]&lt;br /&gt;
* [[Manual:DIL Manual/abilities|abilities]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>