A function added by MWSE.
xRefID returns the objectid string of the object. This function may crash the game. If it does use xGetBaseID instead.
SyntaxEdit
objectid (string): ref->xRefID
ExampleEdit
long ref ;item reference long itemid ;string to store item id setx itemid to ref->XRefID