@config tiny
@config tiny
Section titled “@config tiny”Options that make SharpMUSH behave like TinyMUSH, TinyMUX or RhostMUSH, for code written for those servers.
- @config tiny tinymush: null strings, booleans, trim(), @pemit and parenthesis groups
- @config tiny tinymux: TinyMUX logic, justification, text order and loop tokens
- @config tiny rhostmush: the
rhost_options and the SIDEFX flag
TinyMUSH and parser options
Section titled “TinyMUSH and parser options”null_eq_zero=<boolean>: Is a null string where a number is expected considered a 0?tiny_booleans=<boolean>: Use Tiny-style boolean values where only non-zero numbers are true.tiny_trim_fun=<boolean>: Are the second and third arguments to trim() reversed?tiny_math=<boolean>: Is a string where a number is expected considered a 0?silent_pemit=<boolean>: Does @pemit default to @pemit/silent?paren_groups=<boolean>: Does an unescaped(that starts no function call open a literal group, as in PennMUSH? Its commas are text and its)does not close the call around it, socat(x,(a,b)c)has two arguments. When off, escape literal parentheses inside function arguments with\(\)or%(%). Importing a PennMUSH, RhostMUSH or TinyMUX database turns it on.
TinyMUX options
Section titled “TinyMUX options”mux_logic=<boolean>: Do and(), or(), xor(), cand() and cor() test each argument by its leading signed integer, as TinyMUX does, and does xor() answer 1 for an odd number of true arguments? See compatibility config.mux_justify=<boolean>: Do ljust(), rjust() and center() cut text longer than the width, as TinyMUX does?mux_collation=<boolean>: Do comp() with no type and sort() with no sort type order text as TinyMUX does,a A b B?mux_queue_functions=<boolean>: Do trigger() and verb() queue an attribute’s actions, as TinyMUX’s do? When off they return#-1 FUNCTION DISABLED. Importing a TinyMUX database turns it on.mux_quiet=<boolean>: Does the /quiet switch of drop, get, give, goto, enter, leave and @teleport do what TinyMUX’s does? See compatibility config. Importing a TinyMUX database turns it on.mux_function_caller=<boolean>: Does a global @function defined without /privileged run as whoever calls it, as on TinyMUX? When off, every @function runs as the object that holds it. See compatibility config. Importing a TinyMUX database turns it on.innermost_tokens=<boolean>: Do##and#@name the innermost iter() or @dolist, and#$the innermost switch, as in TinyMUX? When off, they name the outermost one they are written in, as in PennMUSH.protection_flags=<boolean>: Do NOEXAMINE and NOMODIFY protect, as on TinyMUX? Importing a TinyMUX database turns it on.
RhostMUSH options
Section titled “RhostMUSH options”The rhost_ options below are for a game moved from RhostMUSH. Each is off by default, and off leaves the function as PennMUSH has it. See compatibility config.
rhost_edit=<boolean>: Are edit()‘s fourth and fifth arguments RhostMUSH’s first-only and ANSI modes, rather than another from/to pair?rhost_lattr=<boolean>: Do lattr() and lattrp() take RhostMUSH’s target, type, flags, regexp and tree arguments, rather than an output separator?rhost_list=<boolean>: Is list() with two to five arguments RhostMUSH’s loop, which tells each result to the enactor (or to a target the enactor controls) after an optional header? Its first three arguments are TinyMUX’s list().rhost_printf=<boolean>: Does printf() read RhostMUSH’s$-fields, rather than SharpMUSH’s%directives?rhost_lrooms=<boolean>: Does lrooms() take any depth, with 0 following exits as far as they lead, as RhostMUSH does? It lists at most 1,000 rooms then.protection_flags=<boolean>: Do NOEXAMINE, NOMODIFY and NOCONNECT protect, as on RhostMUSH?rhost_map_args=<boolean>: Does map() leave %1 empty when no extra arguments are given, as RhostMUSH does, rather than passing the item’s position?sidefx_flag=<boolean>: Do side-effect functions work only for an object with the SIDEFX flag or thesoftcode.sidefxpermission, as on RhostMUSH? Others get#-1 FUNCTION DISABLED.dialect=<name>: Whose names for functions and commands do typed input and attributes without a dialect flag also read?rhostreads RhostMUSH’s andmuxTinyMUX’s, after SharpMUSH’s own; empty reads none. See attribute flags dialect.