Aller au contenu

Photo

Forcing equipment (Item cannot be unequipped)


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
A Non E Mass

A Non E Mass
  • Members
  • 5 messages
I'm working on an addon that adds a new follower who's armor is magically bound to his body. Now, it wouldn't make much sense if the player could go around taking his gear on/off or putting new equipment on him, so I was wondering how I go about making an item unequipable after it's been equiped.

I've seen this done in other addons and in Darkspawn Chronicles so I know it's possible. Any help on this issue is greatly appreciated.

#2
Proleric

Proleric
  • Members
  • 2 362 messages
SetItemIrremovable is supposed to do this, but I haven't tested it.

If you find that the player can still destroy the item, SetItemIndestructible will certainly prevent that.

You might consider SetCanChangeEquipment, but (according to the documentation) that prevents all unequipping, which probably isn't what you want.

Modifié par Proleric1, 13 juin 2010 - 09:33 .


#3
A Non E Mass

A Non E Mass
  • Members
  • 5 messages

Proleric1 wrote...

SetItemIrremovable is supposed to do this, but I haven't tested it.

If you find that the player can still destroy the item, SetItemIndestructible will certainly prevent that.

You might consider SetCanChangeEquipment, but (according to the documentation) that prevents all unequipping, which probably isn't what you want.


thanks youve been a great help