Difference between revisions of "Wizhelp/Set"

From DikuMUD Wiki
Jump to navigation Jump to search
(checked against the code)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
−
= Set =
+
= Set (230) =
  
 
Usage:
 
Usage:
Line 8: Line 8:
 
command will list them, if you just give a unit name. However it is essential,
 
command will list them, if you just give a unit name. However it is essential,
 
that you understand the argument types.
 
that you understand the argument types.
 +
 +
The unit can be room (the room you are in), or anything you can name: in
 +
your inventory or equipment, here, or anywhere in the world. Fields can be
 +
shortened: the first field in the list (as the command shows it) that
 +
starts that way is taken. Some fields need a higher level
 +
than 230; changing another player, or anything they carry or wear, needs
 +
level 245 at least. Money can only be changed at level 255. The command is
 +
logged.
  
 
   <value> : a value. beware not to enter a number out of range.
 
   <value> : a value. beware not to enter a number out of range.
Line 16: Line 24:
 
   <unitpath>: a 'path' to the unit, specifying its zonename and itemname.
 
   <unitpath>: a 'path' to the unit, specifying its zonename and itemname.
 
   <keyword> : a single keyword.
 
   <keyword> : a single keyword.
−
   <direction> : direction can be any of the six: n s e w u d
+
   <direction> : north, east, south, west, up or down (n e s w u d will do),
 +
              or northeast, northwest, southeast, southwest written out.
 
   <bitlist> : a list of bitnames. nothing indicates no set bits.
 
   <bitlist> : a list of bitnames. nothing indicates no set bits.
 
               separate bitnames with a single '|'.
 
               separate bitnames with a single '|'.
Line 22: Line 31:
 
For add-name and xxxdirection info:
 
For add-name and xxxdirection info:
 
   <names> is a comma separated list of values e.g. city guard, guard
 
   <names> is a comma separated list of values e.g. city guard, guard
 +
 +
For dir-to (on a room: makes the exit lead to another room):
 +
  <direction> <room@zone>, or <direction> none to remove the exit.
 +
  The path finder (wpath, monsters finding their way) only learns of a
 +
  new exit at the next reboot.
  
 
For extra data (add-extra, add-info, add-quest):
 
For extra data (add-extra, add-info, add-quest):
Line 30: Line 44:
 
   > set rabbit add-name killer rabbit, carrot muncher
 
   > set rabbit add-name killer rabbit, carrot muncher
 
   > set papi add-info $professions,barbarian,dark knight,necromancer;1,2,3
 
   > set papi add-info $professions,barbarian,dark knight,necromancer;1,2,3
 +
  > set room dir-to north temple@udgaard
 
   > set john del-extra ,    // This example removes the an empty name, i.e. the default description
 
   > set john del-extra ,    // This example removes the an empty name, i.e. the default description
  
Line 35: Line 50:
 
Combinations of the above occur.
 
Combinations of the above occur.
  
−
See also:
+
See Also:
−
  > wizhelp setskill
+
> {Wizhelp Setskill}
−
  > wizhelp wstat
+
> {Wizhelp Wstat}
−
  > wizhelp wstat
+
> {Wizhelp Nset}

Latest revision as of 21:40, 14 November 2026

Set (230)

Usage:

 > set <unit> <field> <arguments>

This is the command you use, if you want to fiddle with individual fields in a unit. As there are a LOT of fields to set, i will not list them here. The command will list them, if you just give a unit name. However it is essential, that you understand the argument types.

The unit can be room (the room you are in), or anything you can name: in your inventory or equipment, here, or anywhere in the world. Fields can be shortened: the first field in the list (as the command shows it) that starts that way is taken. Some fields need a higher level than 230; changing another player, or anything they carry or wear, needs level 245 at least. Money can only be changed at level 255. The command is logged.

 <value> : a value. beware not to enter a number out of range.
 <type> : a type. to list possible types give it an 'X' as type
 <string> : a single string.
    (enter description): this gives you the multi-line editor.
    End with a '@' on a single line.
 <unitpath>: a 'path' to the unit, specifying its zonename and itemname.
 <keyword> : a single keyword.
 <direction> : north, east, south, west, up or down (n e s w u d will do),
             or northeast, northwest, southeast, southwest written out.
 <bitlist> : a list of bitnames. nothing indicates no set bits.
             separate bitnames with a single '|'.

For add-name and xxxdirection info:

  <names> is a comma separated list of values e.g. city guard, guard

For dir-to (on a room: makes the exit lead to another room):

  <direction> <room@zone>, or <direction> none to remove the exit.
  The path finder (wpath, monsters finding their way) only learns of a
  new exit at the next reboot.

For extra data (add-extra, add-info, add-quest):

  <names>;<ints> first a comma separated list of names, optionally a semicolon 
                 followed by a comma separated list of integers.

Examples:

 > set rabbit add-name killer rabbit, carrot muncher
 > set papi add-info $professions,barbarian,dark knight,necromancer;1,2,3
 > set room dir-to north temple@udgaard
 > set john del-extra ,     // This example removes the an empty name, i.e. the default description


Combinations of the above occur.

See Also:

> {Wizhelp Setskill}
> {Wizhelp Wstat}
> {Wizhelp Nset}