Morrowind Mod:XDrop
A function added by MWSE.
xDrop is a wrapper for the original Drop to take variables.
Note: xDrop N+1 items will leave 1 phantom icon plus N real items in the dropping actors inventory. xGetItemCount will not report the 1 phantom icon. However, xRemoveItem will remove the phantom safely. So "safe" procedure for xDrop seems to be to follow up with xRemoveItem of the same count. Additionally for non-player actors in menumode, exit and re-entry to menumode is needed to refresh the icons and avoid phantom icon interaction that could result in permanent item doubling or CTD. This also applies to the standard Drop function.
Syntax[edit]
ref->xDrop objectid (string) count (long)
Example[edit]
long pcRef Setx pcRef to xGetRef "Player" pcRef->xDrop "Gold_001" 250
See Also[edit]
xInventory
xNextStack
xContentList
xAddItem
xRemoveItem
xHasItemEquipped
xEquip
xAddSpell
xRemoveSpell