Jump to content

Script help!


eth_ch3

Recommended Posts

anyone experienced in scripting please help! I have no knowledge of scripting and I'm beginning to learn how to make simple mods for personal use. How do I get an NPC to wear a custom item (in amulet slot) by using a script? I dragged the item to the NPC's inventory and it didn't work in the game (also waited 24 hrs). How do I write a script for him to wear it (without dragging the item to his inventory, if possible), and where do I put the script, on the NPC or the item, or set it as a Quest?

 

Since I really have no idea how to script, please aid me in writing the actual script rather than providing hints and tips. Thanks a lot!

Link to comment
Share on other sites

NPCs will automatically wear things that can be equipped to the normal slots. So long as it has an equip slot, and isn't tail or something else wierd, scripting isn't needed. Have you checked to see if the NPC even has the item? If you're just adding the item to the NPC by dropping it in their inventory, the game won't load the item if the NPC was already created and loaded that game. You can usually fix this by doing a resurrect on the NPC, but keep in mind that resurrecting some NPCs may break any scripts or quests related to them.
Link to comment
Share on other sites

Thanks. The NPC is one of the vendors in the IC Market District, so he's already created. I picketpocketed him to check and the item wasn't on him, or maybe he equipped it and it doesn't show. But I'm using the unhiding amulet esp, so that shouldn't be the case. Could I use scripting to make this work without doing something artificial in the game like resurrecting? Thanks.

Sure, if you want to go through the trouble of setting up a quest script that adds the item to the NPC, and then equips that item (or one of the other ways to give him the item and make him evaluate equipment). Since it's just a vendor, it's probably easier to just resurrect him, chances are there won't be any unwanted sideeffects. You could always just start a new game with the mod active.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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