@Conformat using @Nameformat

A simple @conformat that displays contents using their @nameformat (if set). Allows for colorized names.

Author: Raevnos
Category: Building
Functions: if(), iname(), map().
Compatibility: CobraMUSH, PennMUSH.

Instructions

Copy and paste the below code into a compatible MUSH or MUX.

MUSHCode for @Conformat using @Nameformat

@create @conformat using @nameformat
@lock/Link @conformat using @nameformat==#0
@lset @conformat using @nameformat/Link=no_inherit
@lock/Parent @conformat using @nameformat=!=#0
@lset @conformat using @nameformat/Parent=no_inherit
@set @conformat using @nameformat = LINK_OK
@set @conformat using @nameformat = VISUAL
@set @conformat using @nameformat = NO_COMMAND
@CONFORMAT @conformat using @nameformat=if(%0, Contents:[map(iname, %0, %b, %r)])
@set @conformat using @nameformat/CONFORMAT=no_command
&INAME @conformat using @nameformat=iname(%0)