Removing items from inventory (using formlist) issue

Post » Wed Feb 13, 2013 2:18 am

Hey guys,

I'm having an issue with a script. I have a quest where the player needs to collect 10 wolf pelts and 10 bear pelts. The pelts are actually two formlists which contain all wolf pelt types and all bear pelt types. This is so the player can collect (for example) 5 Cave Bear and 5 Snow Bear pelts, and it will count them as 10 total.

Here is my code. Rather than remove only 10 items, it tries to remove 10 of each item in the formlist that the player has. So if the player has 6 Bear Pelts and 8 Cave Bear Pelts, it'll remove all of them, instead of 10 total.

Function DeleteBear()PlayerREF.RemoveItem(HISGQ3BearPeltFL, 10)endFunctionFunction DeleteWolf()PlayerREF.RemoveItem(HISGQ3WolfPeltFL, 10)endFunction

If I'm not removing the items correctly, can anyone please provide the correct script format to achieve what I'm after? :smile:
User avatar
Robyn Howlett
 
Posts: 3332
Joined: Wed Aug 23, 2006 9:01 pm

Return to V - Skyrim