Morrowind Mod:XLogMessage

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

A function added by MWSE.

xLogMessage writes out formatted strings to the log file (MWSELog.txt) Works much like MessageBox but with the additional formatting options described for xStringBuild. A trailing % in the format string will suppress the printing of the new line sequence allowing a single line of text to be created with two or more xLogMessage calls. The number of parameters specified in the formatstring MUST match those supplied or there will be trouble.

Syntax[edit]

xLogMessage format (string), ...

Example[edit]

long target
long id
long name
long oldtarget

setx target to xgetPCtarget

ifx ( target )
        setx id to target->xRefID
        setx name to target->xGetName
        if ( oldtarget == target )
                return
        endif
        xLogMessage "%s %s" id name
        messagebox "new target"
        set oldtarget to target
endif

See Also[edit]

xPCCellID
xRefID
xMyCellID
xGetName
xSetName
xGetBaseID
xStringCompare
xStringLength
xStringParse
xStringBuild
xStringMatch
xMessageFix