Open main menu

UESPWiki β

Morrowind Mod:XGetName

< Mod / Morrowind: Morrowind Mod: MWSE

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.

SyntaxEdit

name (string): ref->xGetName

ExampleEdit

long NPCref
long NPCname

setx NPCname to NPCref->xGetName

See AlsoEdit