Difference between revisions of "Wizhelp/Setskill"

From DikuMUD Wiki
Jump to navigation Jump to search
(Setskill: skill/spell/weapon, underscores for spaces, shortening, monsters only spheres and categories, level 245, from modify.cpp do_setskill and search_block_set)
 
(checked against the code)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
  setskill Gnort skill pick_lock 80
 
  setskill Gnort skill pick_lock 80
 
  setskill Gnort spell cure_light 50
 
  setskill Gnort spell cure_light 50
−
  setskill guard weapon long_sword 75
+
  setskill guard weapon category_sword 75
  
 
Sets how well someone knows a skill, a spell or a weapon, anywhere in the  
 
Sets how well someone knows a skill, a spell or a weapon, anywhere in the  
−
world. Write a name of two words with an underscore (pick_lock), and you
+
world. Write a name of two words with an underscore (pick_lock); the
−
may shorten it from the end. You are told "New value: <n>".
+
words may be shortened. A name it doesn't know gets you the list of all
 +
the names. You are told, for example, "Gnort's skill in pick lock is set
 +
to 80."
  
 
Only players have the full tree of spells and weapons, and only players  
 
Only players have the full tree of spells and weapons, and only players  
−
have skills. Monsters have just the spheres and the weapon categories (see  
+
have skills. Monsters have just the spheres and the weapon categories, such as
−
{Help Weapons}): giving a monster a single spell or weapon is refused. It  
+
category_sword (see {Help Weapons}): giving a monster a single spell or  
 +
weapon is refused. It  
 
is logged.
 
is logged.
  

Latest revision as of 21:40, 14 November 2026

Setskill (245)

Usage:

setskill <someone> skill <skill> <value>
setskill <someone> spell <spell> <value>
setskill <someone> weapon <weapon> <value>

Examples:

setskill Gnort skill pick_lock 80
setskill Gnort spell cure_light 50
setskill guard weapon category_sword 75

Sets how well someone knows a skill, a spell or a weapon, anywhere in the world. Write a name of two words with an underscore (pick_lock); the words may be shortened. A name it doesn't know gets you the list of all the names. You are told, for example, "Gnort's skill in pick lock is set to 80."

Only players have the full tree of spells and weapons, and only players have skills. Monsters have just the spheres and the weapon categories, such as category_sword (see {Help Weapons}): giving a monster a single spell or weapon is refused. It is logged.


See Also:

> {Wizhelp Set}
> {Wizhelp Wstat}