Where are all the functions I'm used to in an LPC MUD? set_long, set_items, query_short, etc?

Asked by emsenn

I'm a developer from another MUD, and I can't find any of the functions I'm used to using when I make a room. set_short() runtimes. query_ids() runtimes. Everything is runtimes, runtimes, runtimes!

Where are all the functions I'm used to?

Question information

Language:
English Edit question
Status:
Solved
For:
Dock 9 Edit question
Assignee:
No assignee Edit question
Solved by:
emsenn
Solved:
Last query:
Last reply:
Revision history for this message
emsenn (emsenn) said :
#1

Dock 9 doesn't really follow the traditional naming patterns of LPC MUDs when we write functions for NPCs and rooms and such. set_short() is defined by set_name(), and set_long() is set_desc(). set_items have become set_lookables, and we've pretty much removed the query_* prefix. Because, well, "this_player()->name()" is just as easy to make sense of as
this_player()->query_name()", and that much easier to type (and less easy to typo.)

While this may be unsettling for developers looking from other LPC MUDs, please bear in mind that Dock 9 is designed to be an MMORPG first, MUD second, and that entails that we write function names to make sense, not follow outdated naming traditions.