Morrowind Mod:XRefType

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

A function added by MWSE.

xRefType gets the four byte record name of the reference.

Syntax[edit]

type (long): ref->xRefType

Example[edit]

long objtype
long ref
setx ref to xgetref "steel dagger" ; there must be a steel dagger in the cell
Setx objtype to ref->xRefType

In this case the variable objtype will be 1346454871, which is the four byte record name WEAP.

Notes[edit]

A table for all of the record names retrievable by xRefType.

Long Name
1230259009 ACTI (Activator)
1212369985 ALCH (Potion)
1330466113 AMMO (arrow or bolt)
1095782465 APPA (Alchemy Apparatus)
1330467393 ARMO (Armor)
1263488834 BOOK (Book/Scroll)
1414483011 CLOT (Clothing)
1414418243 CONT (Container)
1095062083 CREA (Creature)
1380929348 DOOR (Door)
1380404809 INGR (Ingredient)
1129727308 LEVC (Levelled Creature)
1230390604 LEVI (Levelled Item)
1212631372 LIGH (Light)
1262702412 LOCK (Lockpick)
1129531725 MISC (Miscellaneous Item)
1598246990 NPC_ (NPC)
1112494672 PROB (Probe)
1095779666 REPA (Repair Item)
1414546259 SCPT (Script)
1195658835 SNDG (Sound Generator)
1413567571 STAT (Static)
1346454871 WEAP (Weapon)

See Also[edit]

xSetRef
xGetRef
xGetCombat
xGetPCTarget
xFirstNPC
xFirstItem
xFirstStatic
xNextRef