LtMattmoo Posted February 19, 2012 Share Posted February 19, 2012 So a rather considerable bug has been found in a plugin that I've been developing and, without more information on how NPCs work, I can't do much about it. Id really like your help, whoever you are, and whatever you can offer. Part of the plugin allows players to access their horse's inventory. As far as I can tell, this feature is fully operational. However, after time, the horses keep "loosing" items. What's weird is that the only items lost are the heavier and more valuable among what is stored. Cheap, light items such as arrows and iron ore appear to be immune to this inventory amnesia. So, what's going on here? Do NPCs have some strange inventory reset that I need to bypass? If anybody has any information that could lead to the capture of this issue, please let me know. Cheers. Link to comment Share on other sites More sharing options...
JakeProbe Posted February 19, 2012 Share Posted February 19, 2012 (edited) So a rather considerable bug has been found in a plugin that I've been developing and, without more information on how NPCs work, I can't do much about it. Id really like your help, whoever you are, and whatever you can offer. Part of the plugin allows players to access their horse's inventory. As far as I can tell, this feature is fully operational. However, after time, the horses keep "loosing" items. What's weird is that the only items lost are the heavier and more valuable among what is stored. Cheap, light items such as arrows and iron ore appear to be immune to this inventory amnesia. So, what's going on here? Do NPCs have some strange inventory reset that I need to bypass? If anybody has any information that could lead to the capture of this issue, please let me know. Cheers. Question: the NPC you are talking about is an existing one or a newly created ? Anyway, in both cases check their references/variables. Edited February 19, 2012 by JakeProbe Link to comment Share on other sites More sharing options...
LtMattmoo Posted February 19, 2012 Author Share Posted February 19, 2012 The NPC is an existing one, but it is inheriting the inventory-access script from a newly created one. Which particular references/variables should I be looking for? Link to comment Share on other sites More sharing options...
JakeProbe Posted February 19, 2012 Share Posted February 19, 2012 The NPC is an existing one, but it is inheriting the inventory-access script from a newly created one. Which particular references/variables should I be looking for? First of all.....did you storage too much ? I mean.....they might be encumbered. If not...right click the NPC, choose Inventory and look under Owner,there should be 4 boxes where you can choose from, 2 are important ---> NPC and Global Variable.Set NPC to Player and Global Variable to PlayerFollowerCount. Link to comment Share on other sites More sharing options...
LtMattmoo Posted February 19, 2012 Author Share Posted February 19, 2012 First of all.....did you storage too much ? I mean.....they might be encumbered.No. When a horse is encumbered you can't ride it, which isn't the case. Set NPC to Player and Global Variable to PlayerFollowerCount.Those fields are greyed out. I suspect that's because, in the CK, the inventory is empty because when I add an item the fields become available. They remain available when the item is removed so I'll try setting them that way. Do you think that would cause a problem? Thanks for your help, by the way. Really appreciate it. Link to comment Share on other sites More sharing options...
LtMattmoo Posted February 19, 2012 Author Share Posted February 19, 2012 They remain available when the item is removed so I'll try setting them that way.That didn't work. Once the Actor form is closed the fields reset and grey out again. I've added a dummy object to the inventory and applied the values that you subscribed. Hopefully, that will work. Could I ask, though, for future reference, what difference the Owner NPC and Owner Global Variable settings make? Link to comment Share on other sites More sharing options...
Recommended Posts