Jump to content

Attaching multiple scripts to an item?


Recommended Posts

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

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 10

else

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

  • Recently Browsing   0 members

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