Talk:RemoveAllItems

From the Oblivion ConstructionSet Wiki
Revision as of 17:52, 7 May 2008 by imported>Thorskin (→‎Equipped items and CTDs)
Jump to navigation Jump to search

I have used RemoveAllItems extensively, it was used for the Static Swap Method in the MOD Harvest [Containers]. The Original MOD replace the Vanillia Container with a custom container, which appeared Open/Search/Harvested. The initial scripts, Enabled the custom container, used RemoveAllItems to move the contents of the Vanillia container to the custom one, and then Disabled the Vanillia container. ( There are no issues with Quest Items during this procedure ).

As the MOD progresed, It was determined that the ability to Re-Close the custom container would be important to the enduser. Thus my first thoughts were to reverse the procedure. However this is plagued with a "trippling bug", first when items are moved back to the original Vanillia container they are doubled. [2] hams, [2] carrots, etc... Where previously only 1 of each was before. What is most pequliar tho, is the items are again "trippled" and the third iteration of the items are flaged as stolen ( with the red hand sub-icon ).

This did not become a serious problem, because the workaround was to use the Vanillia container ( after having been Re-Closed ) to pass any Activation to the now Disabled custom container, where the contents actually resided. A proxy setup if you will... I never truely determined the preceise nature of the bug, but figured I should mention in case it affects anyone else.

--Dejunai 05:32, 15 September 2006 (EDT)

Most Vanilla containers respawn - I imagine that's the source of the problem.--Haama 12:44, 21 April 2008 (EDT)

Equipped items and CTDs

From this thread - Using RemoveAllItems when there are equipped items may cause a CTD. I've had CTDs with RemoveItem on equipped items as well (but have never tried RemoveAllItems). However, the page says items are automatically unequipped, and I assume this is correct for most items or it would have been brought up by now.--Haama 12:42, 21 April 2008 (EDT)


When an item is forced equipped ( NoUnEquipFlag set to 1 ) RemoveAllItems will crash the game unless the item is unplayable OR the item is a quest object in the player's inventory.--Thorskin