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

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
<span id="fields"></span>
 
<span id="fields"></span>
  <h3>'''Fields:'''</h3>
+
  <h3>Fields</h3>
  
 
  The 'extraptr' and 'unitptr' types contain information which is available to
 
  The 'extraptr' and 'unitptr' types contain information which is available to

Latest revision as of 14:12, 29 June 2020


Fields

The 'extraptr' and 'unitptr' types contain information which is available to
you by using fields. For example (self is a unitptr), self.inside is a
unitptr to what is inside the 'self' unit. (Hence '.inside' is the field).
And self.inside.outside is a unitptr to self (assuming that something is
actually inside self, otherwise self.inside would evaluate to null).
Some fields may not be changed by DIL programs directly but must be modified
indirectly using certain procedure calls in DIL. Others may not be changed
at all. All are readable for DIL programs.
The extraptr structure is used for several things. The primary is
extra descriptions for units, and quest data. Keywords in the 'names'
field and the actual description/data in the 'descr' field.
In the following (RW) means the value may be assigned new values by DIL,
while (RO) means the the value only can be read. A (RO) value might be
possible to change through built-in functions/procedures
---~---~---~---~---~---~---~---~---