WhiteWolf424242 Posted August 27, 2021 Share Posted August 27, 2021 Hello, I have a script that adds X (depends on player input) instances of an object to the player inventory.Is there a way to forbid these items from then getting stacked in the inventory, and force them to be displayed line-by-line, one by one? Thanks Link to comment Share on other sites More sharing options...
IsharaMeradin Posted August 27, 2021 Share Posted August 27, 2021 Typically, no. But see how Bethesda set up the Stones of Barenziah. Even though they are the same object, they will not stack. I think, not 100% certain, that it is due to them being quest objects. Link to comment Share on other sites More sharing options...
WhiteWolf424242 Posted August 27, 2021 Author Share Posted August 27, 2021 I see. Yes, as far as I know too, the stones work that way because they are quest items - unfortunately labeling them quest items in my case is not really an option. Thanks though :) Link to comment Share on other sites More sharing options...
IsharaMeradin Posted August 27, 2021 Share Posted August 27, 2021 You could create multiple base objects that appear the same, have the same stats and even have the same name. Because the base objects are different, the instances created will not stack but will look identical. Link to comment Share on other sites More sharing options...
WhiteWolf424242 Posted August 27, 2021 Author Share Posted August 27, 2021 Yes, in the end that's kinda what I did. It needed quite the redesign for the feature since I originally planned on using the same base objects.Thanks for the help :) Link to comment Share on other sites More sharing options...
dylbill Posted August 28, 2021 Share Posted August 28, 2021 For object references, naming them something different with SetDisplayName will prevent them from stacking. Unfortunately, you have to reset their names on game load, and to reset names on object references that are in a container, they have to be a script property. You can use an object reference array to hold multiple refs if you need. Link to comment Share on other sites More sharing options...
Recommended Posts