Morrowind Mod:XGetName

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

A function added by MWSE.

xGetName returns a string containing the name (suitable for display, not the objectid) for the object or 0 if the object doesn't have a name. The NPC who falls from the sky near Seyda Neen has an object id of "agronian guy" but his name is "Tarhiel" when you look at his corpse.

In v0.9.4a, this function didn't return the name of ammo and lockpick items. This is fixed in the MWSE update released by Merzasphor.

Syntax[edit]

name (string): ref->xGetName

Example[edit]

long NPCref
long NPCname

setx NPCname to NPCref->xGetName

See Also[edit]

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