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)
 
(Setskill: the monster example uses a weapon category, as monsters only have those)
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  
Line 16: Line 16:
  
 
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.
  

Revision as of 01:25, 7 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), and you may shorten it from the end. You are told "New value: <n>".

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}