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

 Related 
Contents
Settings
  %alarm
  %alias
  %btncol
  %btnenable
  %btnimage
  %class
  %defined
  %getglobal
  %numbuttons
  %setglobal
  %state
  %trigger
  %vartype
  Settings
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitset
  %bitshift
  %bittest
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %colorsyntax
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dbitems
  %dbkey
  %dbkeys
  %dblist
  %dbmax
  %dbmin
  %dbvalues
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %exp
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %hexcolor
  %hexnum
  %hexstr
  %htmldecode
  %htmlencode
  %iconstate
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %isvalue
  %item
  %json
  %lastdir
  %left
  %leftback
  %len
  %line
  %list
  %literal
  %look
  %lower
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %match
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %packages
  %param
  %params
  %parsemode
  %parsenumbers
  %pat
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %pref
  %priority
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %ref
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %rgb
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomint
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomportal
  %roomvnum
  %roomzone
  %round
  %section
  %setglobal
  %sort
  %sql
  %sqldb
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %switch
  %threadid
  %threadname
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %url
  %vartype
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
Related Links:
  New Functions
  Settings
%pref [[cmud_%pref]] 
pref

Syntax: %pref(id, value)

Sets or retrieves a specific preference setting. Preferences are normally set via the user interface, but using the %pref function you can retrieve or change a particular option within a script. This is an advanced function. Use it at your own risk.

Examples:

#CALL %pref(clock,0)
turns off the clock in the command line

There are many different preferences that can be retrieved and set with this command. There are too many to document here and most of them correspond with obvious options in the Preferences user interface. Note that some of these preferences are left over from zMUD and no longer have any function in CMUD.

Here are the valid ID values:

NumLock
AutoSave
PromptSave
Backup
Toolbar
HelpTips
Clock
TwentyFourhr
Translate
AutoExpand
DoTheme
RefreshNum
AutoClear
WrapCommand
MultiPaste
ColumnNum
ForceLower
WindowKeys
MacroOverride
CtrlAlt
CharMacros
AnyMacro
HistoryNum
BellColumn
SpellCheck
AutoCorrect
SpellCommands
SpellFunctions
SpellVars
SpellAliases
IgnoreFirst
DoANSI
DoVT100
DoMrTerm
DoMCP
DoPueblo
DoATCP
CharMode
LocalEcho
ControlCodes
DisplayControl
TelnetOptions
DoMXP
DoMCCP
DoNAWS
DoEOR
StrictTelnet
TermType
LogCommands
LogAfterTrig
LogANSI
SaveScrollback
LogSaveTime
ShowTime
DeltaTime
DBSaveTime
SpamLimit
SpamLen
SpamCommand
WordWrap
AutoWrap
WrapCol
WrapIndent
ShowTrig
EchoCom
EchoMessage
EchoScripts
CaptureCom
GagPassword
TriggerCom
Wildcards
AllowEval
AllowExpand
VarAssign
StripQuotes
ExpandVars
NullVar
SemiComments
InlineComments
VBScript
JScript
SendDelay
stxBackground
stxText
stxComment
stxCommand
stxVariable
stxFunction
stxAlias
stxOperator
stxLogical
stxDelim
stxTrigWildcard
stxTrigSaved
stxTrigRange
stxTrigSelection
stxTrigAnchor
stxWindow
ppSpaceBefore
ppCapCom
ppExpandCom
ppLowerFunc
ppAlignBlock
ppSingleBlock
ppMouseEval
ppMouseVar
ppClickVar
ppIndent
ANSIBold
ANSIUnderline
ANSIBlink
ANSIReverse
ANSIStrike
ForeCol0
ForeCol1
ForeCol2
ForeCol3
ForeCol4
ForeCol5
ForeCol6
ForeCol7
ForeCol8
ForeCol9
ForeCol10
ForeCol11
ForeCol12
ForeCol13
ForeCol14
ForeCol15
BackCol0
BackCol1
BackCol2
BackCol3
BackCol4
BackCol5
BackCol6
BackCol7
LockBack
colstxFore0
colstxFore1
colstxFore2
colstxFore3
colstxFore4
colstxFore5
colstxFore6
colstxFore7
colstxFore8
colstxFore9
colstxFore10
colstxFore11
colstxFore12
colstxFore13
colstxFore14
colstxFore15
colstxBack0
colstxBack1
colstxBack2
colstxBack3
colstxBack4
colstxBack5
colstxBack6
colstxBack7
colsyxFore
colsyxBack
colsyxBoth
colsyxReset
ColorSyntax
CheckVers
AutoConnect
ConnTimer
ConnTime
ConnTime2
ConnTimeout
NewLineCRLF
MinLookup
MaxLookup
LookupInc
ProxyType
ProxyHost
ProxyPort
ProxyUser
ProxyPassword
TelnetHost
TelnetPort
TelnetUser
TelnetPassword
ProxyCommand
WWWHost
WWWPort
SoundDir
OutputFontName
OutputFontSize
InputFontName
InputFontSize
EditorFontName
EditorFontSize
StatusFontName
StatusFontSize
VerticalAdjust
MemMain
MemChild
MemEdit
AbortWalk
WalkTimeout
MUDPrompt
PromptVars
Sound
OldSound
BeepSound
StartupSound
ConnectSound
DisconnectSound
DoMSP
EchoMSP
InlineMSP
DownloadSound
DownloadProgress
DownloadPlay
SoundURL
MXPUnderline
ExpandMXP
ReportRelocate
MXPCommandMenu
MXPStatus
DownloadImage
MXPGauges
MXPStatbar
MXPDebug
PuebloDetect
PuebloImagemap
PuebloPopup
DoGSL
GSLPrompt
GSLClient
iComChar
iSepChar
iVarChar
iParamChar
iFocusChar
iClassChar
iMoveChar
iHistChar
iQuoteChar
iMapDirChar
iDBChar
ComCharEn
SepCharEn
VarCharEn
ParamCharEn
FocusCharEn
ClassCharEn
MoveCharEn
HistCharEn
QuoteCharEn
MapDirCharEn
DBCharEn
TickMess
TickTime
TickMargin
TickCommand
taskMUD
taskChild
taskMapper
taskSettings
taskEditor
taskDB
AutoFront
MenuFront
DefWindowSize
WindowTab
CommandTab
ALTDock
Activity
AutoTile
DefColor
MessageColor
CommandColor
HighlightColor
WindowTop
WindowLeft
WindowWidth
WindowHeight
DoParse
TickOn
MapFile
MapOn
DBFile
DBOn
SplitPos
HorzPos
FullScreen
Alpha
GSLHp
GSLMaxHp
GSLLife
GSLMaxLife
GSLMana
GSLMaxMana
GSLHighCol
GSLNameCol
GSLDescCol
DefButtonWidth
DefButtonHeight
StatusColor
SyntaxCheck
SpellCheckEditor
CharDays
zMUDCompat
SmartCom
Author
Version
Modified
PkgName
Scheme
ThemeIndex
ThemeHue
ThemeBright
ThemeName
Toolbar1
Toolbar2
Toolbar3
Toolbar4
Statbar
CommandLine
DefPackages

 User comments 
Tech: Sat Mar 24, 2007 12:11 am    

Note: When setting ToolBar location preferences (ToolBar1, ToolBar2, ToolBar3, ToolBar4) the following mapping applies.

0 - Top
1 - Bottom
2 - Left
3 - Right
Viewer Comments [1 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net