| 3 | | other input. Function take the general form: [FUNCTION(<input>)] |
|---|
| 4 | | |
|---|
| 5 | | The brackets are used to delimit and force evaluation of the function |
|---|
| 6 | | (or nested functions). The brackets can also be used to group functions |
|---|
| 7 | | for the purposes of string concatenation. In general, more than one pair |
|---|
| 8 | | of brackets is not required, but you can nest an arbitrary number of |
|---|
| 9 | | brackets. |
|---|
| | 3 | other input. Function take the general form: [FUNCTION(<input>)] |
|---|
| | 4 | |
|---|
| | 5 | The brackets are used to delimit and force evaluation of the |
|---|
| | 6 | function (or nested functions). The brackets can also be used to |
|---|
| | 7 | group functions for the purposes of string concatenation. In |
|---|
| | 8 | general, more than one pair of brackets is not required, but you can |
|---|
| | 9 | nest an arbitrary number of brackets. |
|---|
| 25 | | A list of available built-in functions can be obtained via the command |
|---|
| 26 | | "@config/functions". In the help text, the list is under the topic |
|---|
| 27 | | "FUNCTION LIST". |
|---|
| 28 | | |
|---|
| 29 | | In addition to these built-in functions are MUSH-defined "global user |
|---|
| 30 | | functions." These are defined by wizards or those with the "Function" |
|---|
| 31 | | power, via the "@function" command. To the user, they act just like |
|---|
| 32 | | the built-in game functions. For details on global user functions, |
|---|
| 33 | | see "help @function". |
|---|
| | 25 | A list of available built-in functions can be obtained via the |
|---|
| | 26 | command "@config/functions". In the help text, the list is under the |
|---|
| | 27 | topic "FUNCTION LIST". |
|---|
| | 28 | |
|---|
| | 29 | In addition to these built-in functions are MUSH-defined "global |
|---|
| | 30 | user functions." These are defined by wizards or those with the |
|---|
| | 31 | "Function" power, via the "@function" command. To the user, they act |
|---|
| | 32 | just like the built-in game functions. For details on global user |
|---|
| | 33 | functions, see "help @function". |
|---|
| 67 | | aposs() attrib_set() default() edefault() eval() |
|---|
| 68 | | get() grep() grepi() lattr() nattr() |
|---|
| 69 | | obj() poss() regrep() regrepi() subj() |
|---|
| 70 | | udefault() ufun() uldefault() ulocal() v-function |
|---|
| 71 | | wildgrep() wildgrepi() xget() zfun() |
|---|
| | 67 | aposs() attrib_set() default() edefault() eval() |
|---|
| | 68 | get() grep() grepi() hasattr() hasattrp() |
|---|
| | 69 | hasattrval() lattr() nattr() obj() poss() |
|---|
| | 70 | regrep() regrepi() subj() udefault() ufun() |
|---|
| | 71 | uldefault() ulocal() v-function wildgrep() wildgrepi() |
|---|
| | 72 | xget() zfun() |
|---|
| 78 | | For example, 2 is represented as '0010' and 4 as '0100'. If these two |
|---|
| 79 | | numbers are bitwise-or'ed together with BOR(), the result is 6, or |
|---|
| 80 | | (In binary) '0110'. These functions are useful for storing small |
|---|
| | 79 | For example, 2 is represented as '0010' and 4 as '0100'. If these |
|---|
| | 80 | two numbers are bitwise-or'ed together with BOR(), the result is 6, |
|---|
| | 81 | or (In binary) '0110'. These functions are useful for storing small |
|---|
| 88 | | Your MUSH may be configured to use traditional PennMUSH booleans, |
|---|
| 89 | | in which case non-zero numbers, non-negative db#'s, and strings |
|---|
| 90 | | are all considered "true" when passed to these functions. |
|---|
| 91 | | Alternatively, your MUSH may be using TinyMUSH 2.2 booleans, |
|---|
| 92 | | in which case only non-zero numbers are "true". |
|---|
| | 89 | |
|---|
| | 90 | Your MUSH may be configured to use traditional PennMUSH booleans, in |
|---|
| | 91 | which case non-zero numbers, non-negative db#'s, and strings are all |
|---|
| | 92 | considered "true" when passed to these functions. Alternatively, |
|---|
| | 93 | your MUSH may be using TinyMUSH 2.2 booleans, in which case only |
|---|
| | 94 | non-zero numbers are "true". |
|---|
| 131 | | alias() andflags() andlflags() andlpowers() config() |
|---|
| 132 | | controls() ctime() elock() findable() flags() |
|---|
| 133 | | fullalias() fullname() hasattr() hasattrp() hasflag() |
|---|
| 134 | | haspower() hastype() iname() lflags() lock() |
|---|
| 135 | | lstats() money() mtime() mudname() name() |
|---|
| 136 | | nattr() nearby() objid() objmem() orflags() |
|---|
| 137 | | orlflags() orlpowers() playermem() poll() powers() |
|---|
| 138 | | quota() restarts() type() version() visible() |
|---|
| | 133 | alias() andflags() andlflags() andlpowers() config() |
|---|
| | 134 | controls() ctime() elock() findable() flags() |
|---|
| | 135 | fullalias() fullname() hasattr() hasattrp hasflag() |
|---|
| | 136 | haspower() hastype() iname() lflags() lock() |
|---|
| | 137 | lstats() money() mtime() mudname() name() |
|---|
| | 138 | nattr() nearby() objid() objmem() orflags() |
|---|
| | 139 | orlflags() orlpowers() playermem() poll() powers() |
|---|
| | 140 | quota() restarts() type() version() visible() |
|---|
| | 141 | |
|---|
| 140 | | List functions take at least one list of elements and return transformed |
|---|
| 141 | | lists or one or more members of those lists. Most of these functions |
|---|
| 142 | | can take an arbitrary <delimiter> argument to specify what delimits |
|---|
| 143 | | list elements; if none is provided, a space is used by default. |
|---|
| | 143 | List functions take at least one list of elements and return |
|---|
| | 144 | transformed lists or one or more members of those lists. Most of |
|---|
| | 145 | these functions can take an arbitrary <delimiter> argument to |
|---|
| | 146 | specify what delimits list elements; if none is provided, a space is |
|---|
| | 147 | used by default. |
|---|
| 198 | | accent() after() align() alphamin() alphamax() |
|---|
| 199 | | art() before() brackets() capstr() case() |
|---|
| 200 | | caseall() cat() center() comp() chr() |
|---|
| 201 | | decode64() decompose() decrypt() delete() digest() |
|---|
| 202 | | edit() encode64() encrypt() escape() if() |
|---|
| 203 | | ifelse() foreach() lcstr() left() lit() |
|---|
| 204 | | ljust() merge() mid() ord() ordinal() |
|---|
| 205 | | pos() regedit() lpos() regmatch() repeat() |
|---|
| 206 | | reverse() right() rjust() scramble() secure() |
|---|
| 207 | | sha0() space() spellnum() squish() strcat() |
|---|
| 208 | | strinsert() stripaccents()stripansi() strlen() strmatch() |
|---|
| 209 | | strreplace() switch() trim() ucstr() wrap() |
|---|
| | 202 | accent() after() align() alphamax() |
|---|
| | 203 | alphamin() art() before() brackets() |
|---|
| | 204 | capstr() case() caseall() cat() |
|---|
| | 205 | center() chr() comp() decode64() |
|---|
| | 206 | decompose() decrypt() delete() digest() |
|---|
| | 207 | edit() encode64() encrypt() escape() |
|---|
| | 208 | foreach() if() ifelse() lcstr() |
|---|
| | 209 | left() lit() ljust() lpos() |
|---|
| | 210 | merge() mid() ord() ordinal() |
|---|
| | 211 | pos() regedit() regmatch() repeat() |
|---|
| | 212 | reverse() right() rjust() scramble() |
|---|
| | 213 | secure() sha0() space() spellnum() |
|---|
| | 214 | squish() strcat() strinsert() stripaccents() |
|---|
| | 215 | stripansi() strlen() strmatch() strreplace() |
|---|
| | 216 | switch() trim() ucstr() wrap() |
|---|