Script involving stolen items?

Post » Fri Apr 08, 2011 7:28 am

I have a script that removes items from the player, to be replaced with other items.

Like remove 10 venison and then get 1 reward item.

However, stolen items are messing it up, they only remove 1 at a time instead of 10.

I'd rather the stolen items didn't count at all and were ignored by the script.

Anyway to do this?
User avatar
Ann Church
 
Posts: 3450
Joined: Sat Jul 29, 2006 7:41 pm

Post » Fri Apr 08, 2011 2:50 am

I take it no one knows any way around this problem?

Any help at all is appreciated.
User avatar
Kieren Thomson
 
Posts: 3454
Joined: Sat Jul 21, 2007 3:28 am

Post » Thu Apr 07, 2011 7:18 pm

Hi

Have a bit of a look at the http://cs.elderscrolls.com/constwiki/index.php/Raw_Function_List, im no pro like many that do pass though. But i cant find any thing even in obse, but i only search for steal and stolen, might be worth to type the word "Crime" and search though each one related to crime
User avatar
lauraa
 
Posts: 3362
Joined: Tue Aug 22, 2006 2:20 pm

Post » Thu Apr 07, 2011 8:50 pm

Ask in the OBSE thread - they are cooking inventory functions for v19 - read a bit the thread though :)
User avatar
ZANEY82
 
Posts: 3314
Joined: Mon Dec 18, 2006 3:10 am

Post » Thu Apr 07, 2011 6:27 pm

Seems it is a common Bug (or it is listed on the CS wiki under common bugs :

Remove Item and Selling Stackable Items with Extra Data

The 'remove item' function doesn't always work properly with more than one item, especially stolen stackable items. The in-game message (produced by the game) is correct, but the number of items the player loses is not. For example, you may get the message '5 ogre teeth removed', but only 3 were actually removed from your inventory. Mods can exacerbate this by manipulating the 'Extra Data' fields, such as the Ownership field in the CS. Because there is no known way around the problem (short of scripting thousands of items by hand), and it may also be caused by in-game actions (i.e., damaged equipment), you should not be surprised if this happens to you.

This problem is fairly common with mods that do a lot of inventory manipulation, such as ingredient sorters. Similar problems also happen when selling items that have Extra Data. The frequency of the problem is increased by mods that assign ownership to more things in the game, such as Guild Item Ownership, Clutter Ownership, and Oscuro's Oblivion Overhaul. In a few cases this problem can lead to crashes, as with Selling Stolen/Duplicated Alchemy Equipment.

User avatar
Dewayne Quattlebaum
 
Posts: 3529
Joined: Thu Aug 30, 2007 12:29 pm


Return to IV - Oblivion