Jump to content


Photo

NPC usable only


  • Please log in to reply
5 replies to this topic

#1 Awake

Awake
  • Member
  • 685 posts

Posted 29 September 2004 - 06:20 AM

how do i make a weapon or armor or whatever that is only usable by an NPC? i have looked at all the other NPC items, and they don't help at all. they all seem like normal weapons etc. i looked at the NPCs themselves, and their scripts. am i missing something?
Black Wyrm Forums host of the World Transition Project, Beastial Animations, and much more!

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives. -NotMrT

If you don't know where you're going, any road will take you there.

#2 Shed

Shed

    -Shed-

  • Modder
  • 2636 posts

Posted 29 September 2004 - 06:23 AM

Change the usability flags to reflect stats and class/race/kit of your NPC. That should do the trick. Otherwise you could have an Equipping Effect: Destroy/Move/Replace item if equiped by anyone other than the NPC.

#3 Sir-Kill

Sir-Kill
  • Member
  • 906 posts

Posted 29 September 2004 - 06:45 AM

this question was asked within 2 week ago someone said not to change usability flags to reflect stats if you recived a stat reduction your weapon would be un-usable

Use search!

Edited by Sir-Kill, 29 September 2004 - 06:45 AM.

Live Free Or Die

#4 Awake

Awake
  • Member
  • 685 posts

Posted 29 September 2004 - 06:58 AM

I used search, what am i supposed to search under? i tried NPC usable only, and then NPC usable.
Black Wyrm Forums host of the World Transition Project, Beastial Animations, and much more!

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives. -NotMrT

If you don't know where you're going, any road will take you there.

#5 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 29 September 2004 - 09:50 AM

Another possibility is to set a unique 'specific' value to your NPC and do something nasty if the wielder hasn't that specific.
Instant death, slip weapon from hand, petrification, etc.
To make a single specific immune to the nasty effects, add an opcode #177 with ids targeting the specific.
And add an external effect which makes a short term immunity against it.
I like weapons burning evil/good, etc much more than a single usability bit.
Avenger

#6 Stone Wolf

Stone Wolf
  • Member
  • 1672 posts

Posted 29 September 2004 - 11:03 AM

You can also set a script block to unequip the item if the wrong person is holding it (remove item and then give item into a general slot).

If you're doing the flags, make sure you don't specify anything that can be changed. Stats can be altered, and if your NPC is human they can be dual classed too!