Adding script removes stacking

Post » Fri May 27, 2011 7:04 pm

Recently i took up the task of trying to make rechargeable soulgems. Since they seem to be fixed in the executable both for ID and how big a soul they can hold, this means i can't make new soulgems. Instead i've written a couple scripts to work side by side, 1 for the soulgems to mark if it's going into enchanting mode or not, and a global one that does the checks and updates if it needs it, and give you a new one if luck is on your side.

What has happened, is when i added scripts to the soulgems, they won't stack when empty anymore. Is there a way around this? (although this does explain why certain armors won't stack...)

Also, the OnPCSoulGemUse function/variable seems to be broken. I can't seem to get it to work at all, and the only example involves a script not attached to azuras star.
User avatar
Jonathan Montero
 
Posts: 3487
Joined: Tue Aug 14, 2007 3:22 am

Post » Fri May 27, 2011 10:52 pm

What has happened, is when i added scripts to the soulgems, they won't stack when empty anymore. Is there a way around this?

As far as I know, there is no way around it. I'm not sure why they did this, I don't think the player cares that the items are scripted. But maybe there are some situations where they know scripted items have to be treated as unique, so they just decided to make them appear that way in the inventory.
User avatar
Tammie Flint
 
Posts: 3336
Joined: Mon Aug 14, 2006 12:12 am

Post » Sat May 28, 2011 5:46 am

As far as I know, there is no way around it. I'm not sure why they did this, I don't think the player cares that the items are scripted. But maybe there are some situations where they know scripted items have to be treated as unique, so they just decided to make them appear that way in the inventory.


I was afraid of that. I have in mind one workaround, so long as you don't use more than N soultraps in a row, and another misc item. This would work much better if i didn't have to script the soulgems to be able to make the proper settings work. Mostly OnPCEquip and OnPCDrop, since otherwise if you equip a soulgem to enchant, change your mind and then drop it, it may try to give you a new one.
User avatar
-__^
 
Posts: 3420
Joined: Mon Nov 20, 2006 4:48 pm


Return to III - Morrowind