Morrowind Mod:XModService

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

A function added by MWSE.

xModService uses the value parameter to modify the services offered by an NPC. A positive value adds that service (or set of services) to those already offered. A negative value will remove a service or service. The changes are not permanent.

Syntax[edit]

ref->xModService service_mask (long)

Example[edit]

long npcRef

Setx npcRef to xGetRef "npc"
npcRef->xModService 14335            ;barter for anything 

See Also[edit]

xIsFemale
xIsTrader
xIsTrainer
xIsProvider
xGetService
xSetService
xGetBaseGold
xGetGold
xSetBaseGold
xSetGold