Author Topic: Store Removes Variables?  (Read 360 times)

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Store Removes Variables?
« on: March 19, 2011, 11:38:32 pm »


               It appears that to have a widget sold in a store is making it loose the variables on each widget. Any ideas for how to fix this?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Store Removes Variables?
« Reply #1 on: March 19, 2011, 11:42:02 pm »


               1) NWNX Fixes fixes this issue
2) rearrange variables in OnAcquire if the widged do not have them
3) why the widget needs them in first place? You have various widgets that you need to distinguish? If so what about tag?
4) sell them from conversation
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Store Removes Variables?
« Reply #2 on: March 20, 2011, 12:35:58 am »


               There is a known issue with stores that the local vars do not transfer if the item is marked as infinite.

So yes I agree with ShaDoOoW. Check the item on acquire to see if it has its locals. If it doesn't either Place them on it by the script or recreate the item from its resref and destroy the one that is no good. 

Or don't set the inifinite flag on it in the store.
               
               

               


                     Modifié par Lightfoot8, 20 mars 2011 - 12:37 .
                     
                  


            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Store Removes Variables?
« Reply #3 on: March 20, 2011, 06:31:14 pm »


               Thanks guys, went with removing the infinite flag.
               
               

               
            

Legacy_TSMDude

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +0/-0
Store Removes Variables?
« Reply #4 on: March 20, 2011, 06:36:59 pm »


               

Lightfoot8 wrote...



Or don't set the inifinite flag on it in the store.

Unless something has changed even not setting it to infinite still loses variables I think when sold from a merchant if the item is put into the store from the toolset.

Another route is creating the item in the merchants inventory every time the store is open. Easy to do as well though.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Store Removes Variables?
« Reply #5 on: March 20, 2011, 08:17:28 pm »


               

TSMDude wrote...

Lightfoot8 wrote...



Or don't set the inifinite flag on it in the store.

Unless something has changed even not setting it to infinite still loses variables I think when sold from a merchant if the item is put into the store from the toolset.

Another route is creating the item in the merchants inventory every time the store is open. Easy to do as well though.



Nothing has changed that I know of.  Of cource i did not start messing with this stuff untill just before 1.69 cane out.

There is no problem with locals on items in the store, either from the blueprint or placing them on the instance in the store, if the inifinite flag is not set. 

there are also problems with locals set on items that are stackable, but that is a differante problem, that has nothing to do with stores.