Problem with the 1:1 property of OnContainerChange

Post » Sun Jun 24, 2012 8:35 am

I tried to ally a basic script to an OnContainerChanged event. Everything is running fine, when i put the item in the NPC inventory the script trigger like it should...

But, it only works on a 1:1 transfer, i must TRANSFER the item to the NPC inventory. If for some reason i have more than one of this particular item in my inventory, like 10 or something, the script will not trigger because of this.

How to bypass this ?

Thanks.
User avatar
Flash
 
Posts: 3541
Joined: Fri Oct 13, 2006 3:24 pm

Post » Sun Jun 24, 2012 1:25 am

If you have scripted objects in your inventory, and they stack, only one of the objects will have its script running. Same thing if you drop or pick up a stack of something.

I think the only way to get around this would be to assign quest aliases to them like in the quest "No Stone Unturned" or some other way to make them persistent. That way, the items don't stack and so their scripts should all be running at the same time.
User avatar
suzan
 
Posts: 3329
Joined: Mon Jul 17, 2006 5:32 pm

Post » Sun Jun 24, 2012 9:28 am

Because there's not a way to make them well... not stacking ?

Also how do you assign quest aliases ?

Well, i engaged the " question mode ", so let's continue, my item is a MiscItem, so i can't make enchantement / magiceffect on it, so i'm basically screwed ?
User avatar
Brentleah Jeffs
 
Posts: 3341
Joined: Tue Feb 13, 2007 12:21 am

Post » Sun Jun 24, 2012 12:37 pm

I don't have much experience with aliases. All I know is what I read from the http://www.creationkit.com/Quest_Alias_Tab. Maybe someone else can chime in and provide more details.
User avatar
Project
 
Posts: 3490
Joined: Fri May 04, 2007 7:58 am


Return to V - Skyrim