Difference between revisions of "Manual:DIL Manual/extraptr"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
−
==extraptr==
+
<span id="extra"></span>
−
Extra descriptions, quests structures, etc can be searched and manipulated
+
'''The extraptr has the following fields:'''
−
using variables of this type. There is no way to declare static structures of
 
−
this type in DIL programs. Lists of extra descriptions are easily searched with
 
−
the 'in' operator (See below).  Extraptr variables are 'volatile', and thus
 
−
cleared whenever there is a possibility that they are rendered unusable.
 
  
−
Members:
+
    extraptr:
−
{| class="wikitable"
+
      'names'        :stringlist (RW)
−
|-
+
          names is a list of strings of names, that the extra description matches on.
−
! member !! type !! description
+
      'descr'        :string (RW)
−
|-
+
          descr is the contents of the extra description.
−
| next || extraptr || Points to the next linked extra description. NULL if none
+
      'next'        :extraptr (RO)
−
|-
+
          next is the next extra description in a list.
−
| names || [[Manual:DIL_Manual/stringlist|stringlist]] || Array of names on the extra description. NULL if none
+
      'vals'        :intlist (RW)
−
|-
+
          vals is a list of integer values attached to this extra.
−
| vals || [[Manual:DIL_Manual/integerlist|intlist]] || Array of integers on the extra description. NULL if none
+
 
−
|-
+
---~---~---~---~---~---~---~---~---
−
| descr || [[Manual:DIL_Manual/string|string]] || string of text
+
 
−
|}
+
The unitptr is the key structure in the MUD, containing any kind of the
 +
following subtypes:
 +
 
 +
    object      : a normal object, a sword, a vail, etc.
 +
    room        : a room, location or the like.
 +
    pc          : a playing character.
 +
    npc        : a non playing character (mobile, monster, etc)
 +
 
 +
---~---~---~---~---~---~---~---~---
 +
<span id="eptr"></span>
 +
'''Extraptr:'''
 +
 
 +
  Extra descriptions, quests structures, etc can be searched and manipulated
 +
using variables of this type. There is no way to declare static structures of
 +
this type in DIL programs. Lists of extra descriptions are easily searched with
 +
the 'in' operator (See below).  Extraptr variables are 'volatile', and thus
 +
cleared whenever there is a possibility that they are rendered unusable.
 +
<span id="extra"></span>
 +
'''The extraptr has the following fields:'''
 +
 
 +
    extraptr:
 +
      'names'        :stringlist (RW)
 +
          names is a list of strings of names, that the extra description matches on.
 +
      'descr'        :string (RW)
 +
          descr is the contents of the extra description.
 +
      'next'        :extraptr (RO)
 +
          next is the next extra description in a list.
 +
      'vals'        :intlist (RW)
 +
          vals is a list of integer values attached to this extra.
 +
 
 +
---~---~---~---~---~---~---~---~---
 +
 
 +
The unitptr is the key structure in the MUD, containing any kind of the
 +
following subtypes:
 +
 
 +
    object      : a normal object, a sword, a vail, etc.
 +
    room        : a room, location or the like.
 +
    pc          : a playing character.
 +
    npc        : a non playing character (mobile, monster, etc)
 +
 
 +
---~---~---~---~---~---~---~---~---

Latest revision as of 22:37, 4 December 2025

The extraptr has the following fields:
   extraptr:
      'names'        :stringlist (RW)
         names is a list of strings of names, that the extra description matches on.
      'descr'        :string (RW)
         descr is the contents of the extra description.
      'next'         :extraptr (RO)
         next is the next extra description in a list.
      'vals'        :intlist (RW)
         vals is a list of integer values attached to this extra.
---~---~---~---~---~---~---~---~---
The unitptr is the key structure in the MUD, containing any kind of the
following subtypes:
   object      : a normal object, a sword, a vail, etc.
   room        : a room, location or the like.
   pc          : a playing character.
   npc         : a non playing character (mobile, monster, etc)
---~---~---~---~---~---~---~---~---

Extraptr:
  Extra descriptions, quests structures, etc can be searched and manipulated
using variables of this type. There is no way to declare static structures of
this type in DIL programs. Lists of extra descriptions are easily searched with
the 'in' operator (See below).  Extraptr variables are 'volatile', and thus
cleared whenever there is a possibility that they are rendered unusable.

The extraptr has the following fields:
   extraptr:
      'names'        :stringlist (RW)
         names is a list of strings of names, that the extra description matches on.
      'descr'        :string (RW)
         descr is the contents of the extra description.
      'next'         :extraptr (RO)
         next is the next extra description in a list.
      'vals'        :intlist (RW)
         vals is a list of integer values attached to this extra.
---~---~---~---~---~---~---~---~---
The unitptr is the key structure in the MUD, containing any kind of the
following subtypes:
   object      : a normal object, a sword, a vail, etc.
   room        : a room, location or the like.
   pc          : a playing character.
   npc         : a non playing character (mobile, monster, etc)
---~---~---~---~---~---~---~---~---