Skip to main content
About
Features
Administrators
History
Architecture
Osrics
Mudlib
What's what
Articles
About Us
Playing
Getting started
Help
Concepts
Essentials
Commands
Rules
Room help
Item help
Soul commands
More than playing
Player Wiki
Guilds
Assassins
Priests
Thieves
Warriors
Witches
Wizards
Fools
Atlases
Who is online
Bulletin boards
Clubs & families
Newspapers
Newspaper editing
Player councils
Quests
Achievements
Bug replies
My bugs
Playtesting
Introduction
Code of conduct
Applying
Updates
Creating
Applying
Liaisons
Domains
Blogs
Creator Manuals
LPC for dummies 1
LPC for dummies 1, source code
LPC for dummies 2
LPC for dummies 2, source code
Being A Better Creator
Working With Others
LPC basic manual
LPC for dummies old
Bug graphs
Links
Mud links
Discworld links
Player links
Welcome Ero
(
Switch User
)
Play Now
:
*
Browser Client
*
Download Client
string get_help(); get_help is used for supplying help on an object. When a player types help
, there are a number of things that are checked. First, it checks to see if an object is supplied and if not, it lists the standard help files. Next, the mud helps to see if find_match(str,this_player()) returns an object or objects. If it does, help will then write out the strings returned by calling get_help on each of the objects. Basically here is the point at which you would want to use get_help(). inherit "std/object"; void setup() { set_name("test"); set_short("test"); set_main_plural("tests"); set_long("This is the test object. 'help test' for more info.\n"); } string get_help() { return "This is where the extra help goes.\n"; } Now when the player types: help test The mud will respond by printing out the object and the string returned. Do not add_action("???","help") without good reason. With this function, you should never need to. Also adding commands that are added by the player object should be avoided where possible.