Morrowind Mod:XGetBaseID

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

A function added by MWSE.

xGetBaseID returns the base part of the objectid for the object. This is really intended for use with NPCs. There are 36 diseased Dreamers who share the object id "dreamer" but if you use the xRefID function on one of them you will get an id that is unique to that particular NPC such as "dreamer000002", this function would only return "dreamer".

Syntax[edit]

objectid (string): ref->xGetBaseID

Example[edit]

See Also[edit]

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