Jump to content

Script question


khulse

Recommended Posts

I'm trying to figure out how to make items that can't be unequipped (or looted by the player) for a mod I'm making. The items are supposed to be equipped to both players and npcs. It has to do with "modifying" the race meshes of several races, so a script that will add the item to the inventory of both the pc and every npc of a particular race and force equip it would be a bonus.

 

I'm trying to avoid requirements for the mod, so I would prefer it if the script didn't require OBSE, but if that's the only way to do it so be it...

 

I've never done scripting before, so I'm totally lost. How do I go about doing that? I got a script from another mod that does something similar, but looking at it I don't think its unlootable and it only applies to the player, and I can't find any information on how to apply it to npcs. The other problem is that it's a quest script, and from what I've read it sounds like I would need to have it constantly active to affect npcs, which causes problems (I think- like I said, I'm new to this).

 

Any suggestions you experienced scripters can give me?

 

Thanks in advance!

Link to comment
Share on other sites

if I got in well : you want npc that wear equipment that can't be looted by the player - this is similar to the Blades Armor that you cannot pick up in the first quest - in the imperial sewers.

 

That is done by un-checking the Playable option of the item -

 

adding items to different npc can be done via <npcref>.additem <itemcode> <number>

 

hope this is what you asked for.

Link to comment
Share on other sites

if I got in well : you want npc that wear equipment that can't be looted by the player - this is similar to the Blades Armor that you cannot pick up in the first quest - in the imperial sewers.

 

That is done by un-checking the Playable option of the item -

 

adding items to different npc can be done via <npcref>.additem <itemcode> <number>

 

hope this is what you asked for.

 

Thank you, that answers most of my questions. I can't beleive I didn't think of un-checking the playable option. How would I add an item to all npcs of a particular race? For example, how would I add an item to every khajiit npc in the game other than adding it in the construction set?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...