DESOLATION

Help manual · Coding · Cre

Function Reference

Lulz, super under construction..

When you’re trying to do something tricky it helps to know what tools are available to you.

This page is intended to be a coding reference portal page to provide fast access to major object and module function lists / descriptions, efuns and simulated efuns.

Efuns & Simulated Efuns

These are functions that you should be able to call from any piece of code. Generally efuns are used to simplify the use of data types like strings, arrays, maps, etc and they can be really quite powerful.

Efuns are implemented directly in the driver and so should be pretty fast, while simulated efuns are part of the mudlib and are run as any other code.

Fast or not, as a general rule be particularly wary of nesting loops with calls to functions that operate on variable length data types like arrays, maps or whatever. It should be fine if you really know what you’re doing, but if your code ends up shooting off to some exponential order of complexity and the MUD grinds to a halt.. well.. don’t say you weren’t warned.

Efuns (External Functions)

string

Case ManipulationComparisonTo/From ArrayEncryptionSearch/Replace
CapitalizeStrcmpExplodeCryptReplace string
Lower caseImplodeStrsrch
Upper case
Lengthstdio-alikeRegular ExpressionsBit StringsDuplication
StrlenSprintfReg assocClear bitRepeat string
SscanfRegexpSet bit
Test bit

array

CreationSearchingCullingTo Map
allocatemember_arrayfilter_arraymap_array

mapping

object

filesystem

float

buffer

calls

compile

db

functions

general

interactive

internals

mixed

mudlib

numbers

parsing

sockets

system

Simul_Efuns

Simul_Efuns are “simulated external functions”. Basically this means that they can be called from any code run on the mud driver, but they are written in LPC rather than in C. They are contained in included files in /secure/simul_efun.c Some of these are typical to the Lima Mudlib, some have been imported from the Nightmare IV mudlib, and some of them are custom only to Desolation MUD. When adding a simul_efun you must reboot the mud for functions to be recognized.

censor

format_rpg_damage

identify

misc

objcalls

overrides

path

security

string

tell

userfuncs

Category:coding Category:cre