TheSHO1BANG Posted May 23, 2014 Share Posted May 23, 2014 Hi. I was wondering, is it possible to attach two scripts to an item? For example, I have a script attached to a a knife, so that equipping it initiates a quest. But I also want the same item to be used later on in another way. Namely, you have to give it to someone (by pickpocketing), so I'd have to create a script that runs when it's added to that NPC's inventory. The problem isn't the scripting, this is pretty simple. But I don't know how to attach both of these scripts to the item. Is this even possible? Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted May 24, 2014 Share Posted May 24, 2014 It's not possible to attach more than one script to an item, but if that's what you want to do, you can put both blocks in the same script. Link to comment Share on other sites More sharing options...
TheSHO1BANG Posted May 24, 2014 Author Share Posted May 24, 2014 Oh, thanks, I tried that but couldn't get it to work. Here are the two scripts. scn script1 begin onadd player if getstage quest1 !=20 setstage quest1 10else setstage quest1 40 endif end And this is the second script scn script2 Begin OnAdd NPCREF if getstage quest2 ==28 setstage quest2 32 endif end How exactly would I combine both blocks in the form of one script? Link to comment Share on other sites More sharing options...
TheSHO1BANG Posted May 24, 2014 Author Share Posted May 24, 2014 Okay, I figured it out after a few attempts. Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts