<?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%2Fminv</id>
	<title>Manual:DIL Manual/minv - 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%2Fminv"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/minv&amp;action=history"/>
	<updated>2026-11-23T22:03:23Z</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/minv&amp;diff=2883&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/minv&amp;diff=2883&amp;oldid=prev"/>
		<updated>2026-11-14T23:10:58Z</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;= minv =&lt;br /&gt;
'''Field''' (integer, read/write; units: all).&lt;br /&gt;
&lt;br /&gt;
 u.minv : integer&lt;br /&gt;
&lt;br /&gt;
The unit's wizard invisibility level: only characters of at least this level can see it. 0 means visible to everyone (as far as light and the invisible flag allow). A god's &amp;lt;code&amp;gt;wizinv&amp;lt;/code&amp;gt; sets it on the god; in a zone file it is &amp;lt;code&amp;gt;minv&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Stored as an 8-bit unsigned number: values outside 0 to 255 wrap around.&lt;br /&gt;
* It hides the unit from every character below that level, NPCs included, and from DIL functions that only find what the searcher can see, such as [[Manual:DIL Manual/findunit()|findunit()]] and [[Manual:DIL Manual/visible()|visible()]].&lt;br /&gt;
* Zones use it to keep an object out of sight for a while: death.zon gives a new item &amp;lt;code&amp;gt;minv 200&amp;lt;/code&amp;gt; while it sets it up and 0 when it is ready.&lt;br /&gt;
* Objects with a &amp;lt;code&amp;gt;minv&amp;lt;/code&amp;gt; above 0 cost no rent, and neither does anything inside them.&lt;br /&gt;
* On null it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin set_wizinv(lvl : integer);&lt;br /&gt;
var&lt;br /&gt;
   wl : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   wl := lvl;&lt;br /&gt;
   if (wl &amp;gt; self.level)&lt;br /&gt;
      wl := self.level;&lt;br /&gt;
   if (wl &amp;lt; 0)&lt;br /&gt;
      wl := 0;&lt;br /&gt;
   self.minv := wl;&lt;br /&gt;
   sendtext(&amp;quot;Wizinv level set to &amp;quot; + itoa(wl) + &amp;quot;.&amp;lt;br/&amp;gt;&amp;quot;, self);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Sets a god's invisibility level, never above the god's own level, as the wiz menu in basis.zon does.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/visible()|visible()]]&lt;br /&gt;
* [[Manual:DIL Manual/flags|flags]]&lt;br /&gt;
* [[Manual:DIL Manual/level|level]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>