Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Miscelaneous
  %ansi
  %clip
  %colorname
  %exec
  %expand
  %gsl
  %literal
  %mcp
  %mss
  %null
  %numparam
  %param
  %random
  %time
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dblist
  %dbmax
  %dbmin
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %item
  %lastdir
  %left
  %leftback
  %len
  %literal
  %look
  %lower
  %match
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %param
  %parsemode
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommob
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomobj
  %roomportal
  %roomvnum
  %roomzone
  %round
  %setglobal
  %sort
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
Related Links:
  SQLStore
  Profile
  Using inherited and primary Files
  Registry
  IniFile
  #LOGging your session
  Setting up the automapper.
  Introduction to Macros
  %pref
  Features
  Licensing
  Network Setup
  Quick Start
  Basic Usage
  User Interface Overview
  Creating a Character
  Using Sounds
  Introduction to Aliases
  Introduction to Variables
  Global Settings
  Introduction to Classes
  Introduction to Triggers
  Introduction to Buttons
  Introduction to Multiplaying
  Debugging Scripts
  Creating a Database
  Database Views
  Adding Data to a Database
  Accessing Database Records
  Creating New Records
  Advanced Database usage
  Introduction to Mapping
  Configuring the Mapper
  Automatic Mapper Configuration
  Manual Mapper configuration
  CMUD Manual
  Overriding the Mapper
  Editing your Map
  Map Object Properties
  Room Scripts
  Using Zones
  Introduction to Paths
  Shortcuts and Tricks
  User Interface
  Command Line
  Emulation
  Logging
  Spam Protection
  Word Wrap
  General Parsing
  Syntax Editor
  Pretty Printing
  Color Schemes
  ANSI Function Mapping
  Foreground
  Background
  Color Syntax
  Reconnection
  Fonts
  Slow Walking
  General Sounds
  MSP General
  General MXP
  Tags
  Special Characters
  Window Options
  Layout
  Classes
  Aliases
  Variables
  Macro Keys
  Trigger Options
  Trigger Types
  Advanced Button
  Gauge tab
  Directions
  Tab Completion
  Speed Menu
  Status Window definition
  Advanced Topics
  Advanced Programming
  Using MXP
  Menu Reference
  Add Tab Word
  Importing Settings
  Make Alias
  Command Reference
  #
  #ABORT
  #ACTION
  #ADD
  #ADDITEM
  #ADDKEY
  #AFK
  #ALARM
  #ALIAS
  #ALL
  #BACKUP
  #BEEP
  #BREAK
  #BUTTON
  #C-
  #C+
  #CALL
  #CAPTURE
  #CASE
  #CHARACTER
  #CLASS
  #CLOSE
  #CLR
  #COLOR
  #COM
  #CONDITION
  #CONFIGURE
  #CONNECT
  #CR
  #CW
  #DBCLOSE
  #DBDELETE
  #DBFIRST
  #DBGET
  #DBLOAD
  #DBNEXT
  #DBOFFLINE
  #DBONLINE
  #DBPREV
  #DBPUT
  #DBRESET
  #DBSAVE
  #DDE
  #DEFAULT
  #DELCLASS
  #DELITEM
  #DELKEY
  #DELNITEM
  #DESCRIBE
  #DIRECTION
  #DISCONNECT
  #DOOR
  #ECHO
  #ECHOPROMPT
  #EDITOR
  #ERASE
  #EVALUATE
  #EXECUTE
  #FILE
  #FIND
  #FORALL
  #FREEZE
  #FUNCTION
  #GAG
  #GAGBLOCK
  #GAGOFF
  #GAGON
  #GALIAS
  #GAUGE
  #GVARIABLE
  #H-
  #H+
  #HELP
  #HIGHLIGHT
  #HISTORY
  #HOST
  #IF
  #IGNORE
  #INPUT
  #KEY
  #KILLALL
  #LAUNCH
  #LMAP
  #LOAD
  #LOG
  #LOOK
  #LOOP
  #LOOPDB
  #LOOPVIEW
  #MAKEROOM
  #MAKEWINDOW
  #MAP
  #MAPQUERY
  #MARK
  #MATH
  #MEDIA
  #MENU
  #MERGE
  #MESSAGE
  #MOVE
  #MSS
  #MXP
  #MXPTRIG
  #NAME
  #NEW
  #NODEF
  #NODIR
  #NOMAP
  #NOOP
  #OK
  #ONINPUT
  #PATH
  #PATHHIGH
  #PAUSE
  #PCOL
  #PICK
  #PLAY
  #PLUGIN
  #PORTAL
  #PRIORITY
  #PROMPT
  #PSUB
  #PW
  #QUERY
  #QUEUE
  #READ
  #RECALL
  #RECORD
  #REGEX
  #RENAME
  #REPEAT
  #RESET
  #RESUME
  #RETRACE
  #SAVE
  #SAY
  #SAYPROMPT
  #SCRIPT
  #SCROLL
  #SEND
  #SENDPROMPT
  #SESSION
  #SET
  #SETPROMPT
  #SHOW
  #SHOWARR
  #SHOWDB
  #SHOWPROMPT
  #SLOW
  #SS
  #STATE
  #STATUS
  #STEP
  #STOP
  #STWIN
  #SUBSTITUTE
  #SUSPEND
  #T-
  #T?
  #T+
  #TAB
  #TAG
  #TELEPORT
  #TEMP
  #TIMER
  #TRIGGER
  #TSET
  #TYPE
  #TZERO
  #UNALIAS
  #UNBUTTON
  #UNCLASS
  #UNDIR
  #UNGAG
  #UNKEY
  #UNMENU
  #UNPORTAL
  #UNTAB
  #UNTIL
  #UNTRIGGER
  #UNVAR
  #UNWATCH
  #URL
  #VARIABLE
  #VERBATIM
  #VERSION
  #VIEW
  #WAIT
  #WALK
  #WATCH
  #WHILE
  #WINDOW
  #WIZLIST
  #WRAP
  #WRITE
  #YESNO
  Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dblist
  %dbmax
  %dbmin
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %dups
  %ends
  %eval
  %exec
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %handle
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %item
  %lastdir
  %left
  %leftback
  %len
  %literal
  %look
  %lower
  %match
  %mapfilter
  #CMD
  %mapquery
  %mapvnum
  %max
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %param
  %parsemode
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomkind
  %roomlink
  %roomload
  %roommob
  %roomname
  %roomnote
  %roomnum
  %roomobj
  %roomportal
  %roomvnum
  %roomzone
  %round
  %setglobal
  %sort
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
  Trigger Command Options
  Predefined Variables
  Pattern Matching
  Button
  Action
  Enabled
  Target
  ActiveX
  Color
  Checkbox
  ColorBtn
  Column
  Combo
  Value
  Connection
  Query
  Dock
  Label
  ColorTo
  URLColor
  Image
  Menu
  Navigator
  Pages
  OverrideColor
  Panel
  Grid
  Item
  GridLineColor
  InvertSelect
  HideSelection
  ItemSep
  Memo
  Pre-defined Actions
  BorderHighlight
  BorderShadow
  GridColor
  Ruler
  MarginColor
  RulerColor
  SpinEdit
  Splitter
  StatusBar
  Tab
  Tabs
  Thread
  Toolbar
  Tree
  Var
  Queue
  Collection
  Edit
  Message
  Contact
  Attachment
  Folder
  Match
  Wordwrap
  Color
  Stream
  Web Library
  XML
  Editor Demo
  Web Browser Demo
  Database Demo
  Calculator Demo
  IMAP Email Demo
  zMUD Map Database Demo
  Web Form Demo
  Key Features
  Tutorial - Web browser (Part 1)
  Documentation Viewer
  Combo.Colors subclass
  ShowCustom
  ShowRGB
  Colors
  Background
  Color
  RadioGroup
  Group
  CheckGroup
  List
  Node
  Tree.DB subclass
  Kind
  Life Demo
  Editor
  HTML in Labels
  Color
  ShadowColor
  TextColor
  TextBackground
  ParagraphColor
  BorderColor
  SelColor
  SelTextColor
  Cell
  Properties
  Template
  Example: $case statement
  AddQuotes
  MakeStyle
  BorderColor
  FlatColor
  Transparent
  Color
  UseGradients
  GradientColorStart
  GradientColorStop
  XSL
  Color
  Target
  SelectedTextColor
  UnselectedTextColor
  Page
  Color
  Style
  Styles
  Edit Styles
  Splash
  Window
  Color
  HTTP Web Server Demo
  CD Autostart program
  #EVENT
  Packages
  Shared Package Library
  %additem
  %abs
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dblist
  %dbmax
  %dbmin
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %destroom
  Rooms
  %pat
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %item
  %lastdir
  %left
  %leftback
  %len
  %literal
  %look
  %lower
  %match
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %param
  %params
  %parsemode
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommode
  %roomname
  %roomnote
  %roomnum
  #SWITCH
  %roomportal
  %roomvnum
  %roomzone
  %round
  %setglobal
  %sort
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
  #nnn
  #ABORT
  #ACTION
  #ADD
  #ADDITEM
  #ADDKEY
  #AFK
  #ALARM
  #ALIAS
  #ALL
  #BACKUP
  #BEEP
  #LOCAL
  #BUTTON
  #C-
  #C+
  #CALL
  #CAPTURE
  #CASE
  #CHARACTER
  #CLASS
  #CLOSE
  #CLR
  #COLOR
  #COM
  #CONDITION
  #CONFIGURE
  #CONNECT
  #CR
  #CW
  #DBCLOSE
  #DBDELETE
  #DBFIRST
  #DBGET
  #DBLOAD
  #DBNEXT
  #DBOFFLINE
  #DBONLINE
  #DBPREV
  #DBPUT
  #DBRESET
  #DBSAVE
  #DDE
  #DEFAULT
  #DELCLASS
  #DELITEM
  #DELKEY
  #DELNITEM
  #DESCRIBE
  #DIRECTION
  #DISCONNECT
  #DOOR
  #ECHO
  #ECHOPROMPT
  #EDITOR
  #ERASE
  #EVALUATE
  #EXECUTE
  #FILE
  #FIND
  #FORALL
  #FREEZE
  #FTP
  #FUNCTION
  #GAG
  #GAGBLOCK
  Display
  #GAGOFF
  #GAGON
  #GAUGE
  #H-
  #H+
  #HELP
  #HIGHLIGHT
  #HISTORY
  #HOST
  #IF
  #IGNORE
  #IMAGE
  #INPUT
  #KEY
  #KILLALL
  #LAUNCH
  #LMAP
  #LOAD
  #LOG
  #LOOK
  #LOOP
  #LOOPDB
  #LOOPVIEW
  #MAKEROOM
  #MAKEWINDOW
  #MAP
  #MAPQUERY
  #MARK
  #MATH
  #MEDIA
  #NOINPUT
  #MENU
  #MERGE
  #MESSAGE
  #MOVE
  #MSS
  #MXP
  #MXPTRIG
  #NAME
  #NEW
  #NODEF
  #NODIR
  #NOMAP
  #NOOP
  #OK
  #ONINPUT
  #PATH
  #PATHHIGH
  #PAUSE
  #PCOL
  #PICK
  #PLAY
  #PLUGIN
  #PORTAL
  #PROMPT
  #PSUB
  #PW
  #QUERY
  #QUEUE
  #READ
  #RECALL
  #RECORD
  #REGEX
  #RENAME
  #REPEAT
  #RESET
  #RESUME
  #RETRACE
  #SAVE
  #SAY
  #SAYPROMPT
  #SCRIPT
  #SCROLL
  #SEND
  #SENDPROMPT
  #SESSION
  #SET
  #SETPROMPT
  #SHOW
  #SHOWARR
  #SHOWDB
  #SHOWPROMPT
  #SLOW
  #SS
  #STATE
  #STATUS
  #STEP
  #STOP
  #STWIN
  #SUBSTITUTE
  #SUSPEND
  #T-
  #T?
  #T+
  #TAB
  #TAG
  #TELEPORT
  #TEMP
  #TIMER
  #TRIGGER
  #TSET
  #TYPE
  #TZERO
  #UNALIAS
  #UNBUTTON
  #UNCLASS
  #UNDIR
  #UNGAG
  #UNKEY
  #UNMENU
  #UNPORTAL
  #UNTAB
  #UNTIL
  #UNTRIGGER
  #UNVAR
  %switch
  #URL
  #VARIABLE
  #VERBATIM
  #VERSION
  #VIEW
  #WAIT
  #SIGNAL
  Miscellaneous
  #WALK
  #WHILE
  #WINDOW
  #WIZLIST
  #WRAP
  #WRITE
  #YESNO
  #NEWVAR
  %vartype
  #MODULE
  %exp
  [] and <> syntax removed
  Create/Modify Settings
  New Functions
  Local Variables
  Standards
  Introduction to Macros
  Introduction to Aliases
  Introduction to Variables
  Introduction to Classes
  Introduction to Triggers
  Introduction to Buttons
  Introduction to Multiplaying
  User Interface
  Feature Summary
  Scripting
  #FIRE
  Loading a package
  Sharing Packages
  Basic Usage
  #RAISEEVENT
  Predefined Variables
  Pattern Matching
  Editing Triggers
  Editing Buttons
  Variables
  Buttons
  Settings
  Creating a Database
  Database Views
  Adding Data to a Database
  Advanced Database usage
  Accessing Database Records
  Creating New Records
  Automapper Module
  Configuration
  Using Zones
  Introduction to Paths
  Automatic Mapper Configuration
  Editing Gauges
  Manual Mapper configuration
  Overriding the Mapper
  Gauges
  Editing your Map
  Map Object Properties
  Room Scripts
  Status items
  Emulation
  Logging
  Schemes
  Color Syntax
  Attributes
  Foreground Colors
  Background Colors
  MSP Sounds
  MXP Tags
  Colors
  Pueblo Emulation
  #PUEBLO
  Keyboard shortcuts
  -1: Introduction
  Using Lua in CMUD
  MXP
  0: For the Novice
  1: Numbers and Maths
  2: Words
  3: Variables
  4: Simple Functions
  5: Tables
  6: Branching
  7: More Flow Control
  8: Writing Functions
  #THREAD
  #WAITFOR
  #WAITTHREAD
  #WAITSIGNAL
  #SECTION
  %section
  %threadid
  %threadname
  #RETURN
  #VARFUNC
  #LUA
  #SORT
  #NOSAVE
  #SENDRAW
  #SENDSB
  #DEBUGFILE
  #RESULT
  #DEBUG
  #BREAK
  #CONTINUE
  #EXIT
  %priority
  #SAYADD
  %bitshift
  %line
  %htmlencode
  %htmldecode
  %iconstate
  #GAGSPACE
  %dbkeys
  %dbvalues
  %isvalue
  %dbitems
  %btncol arguments reversed
  Script Debugger
  Timestamps
  #EXECWIN
  execalias
  execfunc
  param
  params
  isvalid
  windowid
  name
  var
  cmd
  func
  sys
  Triggers
  Buttons
  numalias
  numfunc
  numvar
  numtrigger
  numevent
  numpath
  nummenu
  numbutton
  numstatus
  getalias
  getfunc
  getvar
  gettrigger
  getevent
  getpath
  getmenu
  getbutton
  getstatus
  numclass
  nummodule
  getclass
  getmodule
  makealias
  makefunc
  makevar
  maketrigger
  makeevent
  makepath
  makemenu
  makebutton
  makestatus
  curclass
  curmodule
  module
  numparam
  aborted
  Multistate triggers
  Advanced subregex
  #PRINT
  %packages
  #LOCATION
  #WITHLOC
  #TRACK
  Whats new in v3
  New functions
  #WRITELOG
  #GAGLOG
  %roomint
  %hexstr
  %hexnum
  %rgb
  %hexcolor
  %colorsyntax
  #UPDATE
  #UNLOAD
  #UNLOC
  #STYLE
  #UNSTYLE
  #SQLDB
  #SQLCLOSE
  #UNEVENT
  #UNPATH
  #SENDGMCP
  #SHOWTABLE
  #HISTLOAD
  #HISTSAVE
  #TEMPVAR
  %sqldb
  %sql
  %json
  %list
  %dbkey
  %ref
  %parsenumbers
  %url
  %bittest
  New Mapper
  %bitset
  Script Wizard
  Pattern Wizard
  GMCP Support
%color [[%color]] 
color

Syntax: %color(fore,back)

converts a descriptive color into an attribute value. You can use the following special strings for certain effects:
hi highlight (select highlighted color)
bold bold text
rev reverse video
blink blinking text
under underlined text

Recognized color names:
black, blue, green, cyan, red, magenta, brown, gray, yellow, white

Examples:

#SHOW %color(red,magenta)

outputs 84

#COLOR %eval(%color(hi)+%color(blink)+%color(rev)+%color(blue,grey))

colors the last line in the output buffer in a flashy manner. You need the %eval in order to add up the colors into a single number.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net