<?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%2Fpcflags</id>
	<title>Manual:DIL Manual/pcflags - 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%2Fpcflags"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/pcflags&amp;action=history"/>
	<updated>2026-11-22T19:45:44Z</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/pcflags&amp;diff=2852&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/pcflags&amp;diff=2852&amp;oldid=prev"/>
		<updated>2026-11-14T23:08:49Z</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;= pcflags =&lt;br /&gt;
'''Field''' (integer, read/write; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.pcflags : integer&lt;br /&gt;
&lt;br /&gt;
A player's option and status bits. Test them with &amp;lt;code&amp;gt;isset()&amp;lt;/code&amp;gt; and change them with &amp;lt;code&amp;gt;set()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;unset()&amp;lt;/code&amp;gt;. The bits are defined in &amp;lt;code&amp;gt;vme/include/vme.h&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Constant !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| PC_BRIEF || Brief room descriptions&lt;br /&gt;
|-&lt;br /&gt;
| PC_PK_RELAXED || Has chosen player killing&lt;br /&gt;
|-&lt;br /&gt;
| PC_INFORM || Is told when players enter the game&lt;br /&gt;
|-&lt;br /&gt;
| PC_COMPACT || Compact display&lt;br /&gt;
|-&lt;br /&gt;
| PC_NOWIZ || Doesn't hear the wiz channel&lt;br /&gt;
|-&lt;br /&gt;
| PC_SPIRIT || Is a dead player's spirit&lt;br /&gt;
|-&lt;br /&gt;
| PC_EXPERT || Gets details about the point system&lt;br /&gt;
|-&lt;br /&gt;
| PC_PROMPT || Prompt on&lt;br /&gt;
|-&lt;br /&gt;
| PC_ECHO || Sees its own communication echoed&lt;br /&gt;
|-&lt;br /&gt;
| PC_EXITS || Sees the exits of rooms&lt;br /&gt;
|-&lt;br /&gt;
| PC_NOSHOUTING || May not shout (a god's punishment)&lt;br /&gt;
|-&lt;br /&gt;
| PC_NOTELLING || May not tell (a god's punishment)&lt;br /&gt;
|-&lt;br /&gt;
| PC_NOSHOUT || Doesn't hear shouts&lt;br /&gt;
|-&lt;br /&gt;
| PC_NOTELL || Doesn't hear tells&lt;br /&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.&lt;br /&gt;
* Any zone can assign it.&lt;br /&gt;
* Stored as an unsigned 16-bit number: bits above &amp;lt;code&amp;gt;0x8000&amp;lt;/code&amp;gt; are lost.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin toggle_nowiz(pc : unitptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (pc.type != UNIT_ST_PC)&lt;br /&gt;
      return;&lt;br /&gt;
   if (isset(pc.pcflags, PC_NOWIZ))&lt;br /&gt;
   {&lt;br /&gt;
      unset(pc.pcflags, PC_NOWIZ);&lt;br /&gt;
      sendtext(&amp;quot;You now hear the wiz channel.&amp;lt;br/&amp;gt;&amp;quot;, pc);&lt;br /&gt;
   }&lt;br /&gt;
   else&lt;br /&gt;
   {&lt;br /&gt;
      set(pc.pcflags, PC_NOWIZ);&lt;br /&gt;
      sendtext(&amp;quot;You no longer hear the wiz channel.&amp;lt;br/&amp;gt;&amp;quot;, pc);&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Turns the wiz channel off or on for a player, as &amp;lt;code&amp;gt;wiz -&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;wiz +&amp;lt;/code&amp;gt; do in commands.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/isset()|isset()]]&lt;br /&gt;
* [[Manual:DIL Manual/set()|set()]]&lt;br /&gt;
* [[Manual:DIL Manual/unset()|unset()]]&lt;br /&gt;
* [[Manual:DIL Manual/charflags|charflags]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>