Jump to content

Need some help removing specific number of keys from inventory


Recommended Posts

Posted

Ok, so I just tested out the last script from before the last error, and I fixed the comma, and the game is still taking both keys when I unlock the door... I wonder if the game even keeps track of keys as seperate entities capable of stacking in the invantory? Perhaps once you pick up a key of a type, any additional keys of it are treated as the same object?

Posted

Its so strange as it should work properly...though are you testing it in a current save game or a new one? What I do is test mods by coc from the main menu into a cell (so I get the impression of what the mod is like when its installed fresh and I won't get any weird bugs).

 

Reason I'm saying this is because the RemoveItem function shouldn't be doing what its doing in your game, we shouldn't have to come up with this workaround for something that is native to the game. Granted I've never attempted to work with keys in this fashion before but still they are items with a counter in the inventory screen and should not be removed all at once like that. If you didn't test your mod on a clean save then try it; if not I'm stumped at the moment as to why its not working...

Posted
  On 3/18/2016 at 10:00 AM, JetSteele said:

Its so strange as it should work properly...though are you testing it in a current save game or a new one? What I do is test mods by coc from the main menu into a cell (so I get the impression of what the mod is like when its installed fresh and I won't get any weird bugs).

 

Reason I'm saying this is because the RemoveItem function shouldn't be doing what its doing in your game, we shouldn't have to come up with this workaround for something that is native to the game. Granted I've never attempted to work with keys in this fashion before but still they are items with a counter in the inventory screen and should not be removed all at once like that. If you didn't test your mod on a clean save then try it; if not I'm stumped at the moment as to why its not working...

Clean save, each time. I am working on so many different cells ATM that not doing that is impractical lol... Huh, well its late, maybe I am doing something stupid wrong.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...