<?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%2Fskill_levels</id>
	<title>Manual:DIL Manual/skill levels - 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%2Fskill_levels"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/skill_levels&amp;action=history"/>
	<updated>2026-11-22T21:24:48Z</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/skill_levels&amp;diff=2850&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/skill_levels&amp;diff=2850&amp;oldid=prev"/>
		<updated>2026-11-14T23:08:43Z</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;= skill_levels =&lt;br /&gt;
'''Field''' (integer, read/write; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.skill_levels[index] : integer&lt;br /&gt;
&lt;br /&gt;
How many times the player has trained the skill with that index since gaining the current level. Each training in the same level costs more (teach.cpp), and every level gained sets all of them back to 0. 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;, from 0 to &amp;lt;code&amp;gt;SKI_TREE_MAX - 1&amp;lt;/code&amp;gt;.&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;
* Training a skill can also count up its parent groups in the skill tree.&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. 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 an unsigned 8-bit number: values outside 0 to 255 wrap around.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin string trained_lvl(pc : unitptr);&lt;br /&gt;
var&lt;br /&gt;
   i : integer;&lt;br /&gt;
   s : string;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   s := &amp;quot;&amp;quot;;&lt;br /&gt;
   if (pc.type != UNIT_ST_PC)&lt;br /&gt;
      return (s);&lt;br /&gt;
   i := 0;&lt;br /&gt;
   while (i &amp;lt; SKI_TREE_MAX)&lt;br /&gt;
   {&lt;br /&gt;
      if (pc.skill_levels[i] &amp;gt; 0)&lt;br /&gt;
         s := s + skill_name(i) + &amp;quot;: &amp;quot; + itoa(pc.skill_levels[i]) + &amp;quot;&amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
      i := i + 1;&lt;br /&gt;
   }&lt;br /&gt;
   return (s);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Lists the skills a player has trained since the last level, and how often.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/skills|skills]]&lt;br /&gt;
* [[Manual:DIL Manual/skill costs|skill_costs]]&lt;br /&gt;
* [[Manual:DIL Manual/skill name()|skill_name()]]&lt;br /&gt;
* [[Manual:DIL Manual/spell levels|spell_levels]]&lt;br /&gt;
* [[Manual:DIL Manual/weapon levels|weapon_levels]]&lt;br /&gt;
* [[Manual:DIL Manual/ability levels|ability_levels]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>