<?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%2Fability_levels</id>
	<title>Manual:DIL Manual/ability 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%2Fability_levels"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/ability_levels&amp;action=history"/>
	<updated>2026-11-23T18:20:47Z</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/ability_levels&amp;diff=2943&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/ability_levels&amp;diff=2943&amp;oldid=prev"/>
		<updated>2026-11-14T23:14:17Z</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;= ability_levels =&lt;br /&gt;
'''Field''' (integer, read/write; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.ability_levels[i] : integer&lt;br /&gt;
&lt;br /&gt;
How many times the player has trained ability &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; since the last level gained. Each session costs half as much again as the one before it (teach.cpp); a second session in a level needs a total race and profession modifier above 0, a third one at least 3. The practice lists show the count as stars. Every level gained sets all the counts back to 0. &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is an &amp;lt;code&amp;gt;ABIL_&amp;lt;/code&amp;gt; constant from vme.h, &amp;lt;code&amp;gt;ABIL_MAG&amp;lt;/code&amp;gt; (0) to &amp;lt;code&amp;gt;ABIL_HP&amp;lt;/code&amp;gt; (7).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Players only. On an NPC, an object, a room or null it fails, and also when &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt; is outside 0 to 7.&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; what counts is the zone of the program running on the unit, not that of a function it calls. 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_stars(pc : unitptr, i : integer);&lt;br /&gt;
var&lt;br /&gt;
   n : integer;&lt;br /&gt;
   s : string;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   n := pc.ability_levels[i];&lt;br /&gt;
   while (n &amp;gt; 0)&lt;br /&gt;
   {&lt;br /&gt;
      s := s + &amp;quot;*&amp;quot;;&lt;br /&gt;
      n := n - 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;
Shows how often a player has trained an ability this level, as stars like the practice list.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/abilities|abilities]]&lt;br /&gt;
* [[Manual:DIL Manual/ability costs|ability_costs]]&lt;br /&gt;
* [[Manual:DIL Manual/ability points|ability_points]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>