Difference between revisions of "Talk:RemoveItem"

Jump to navigation Jump to search
1,583 bytes added ,  09:22, 3 September 2009
→‎Removing torches: Additional comments
imported>Shademe
imported>QQuix
(→‎Removing torches: Additional comments)
Line 107: Line 107:
: Could be because torch objects are actually LIGHT records ?<br>
: Could be because torch objects are actually LIGHT records ?<br>
: [[User:Shademe|shadeMe]] <sup>[[User_talk:Shademe|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]]</sup> 19:03, 2 September 2009 (EDT)
: [[User:Shademe|shadeMe]] <sup>[[User_talk:Shademe|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]]</sup> 19:03, 2 September 2009 (EDT)
::May be, but, somehow, it seems directly related to Torch02. Further tests indicated that this behavior seem to occur only with if Torch02 items are present in the player inventory and a player copy is created with CreateFullActorCopy.
::To further clarify the issue:
:::*Player has 20 x Torch02
:::*Player clone is created with "Set PlayerCopyRef  to Player.CreateFullActorCopy"
:::*A script uses a "PlayerCopyRef. RemoveItem Torch02 999"
:::*PlayerCopyRef now has 18 Torches02 - only 2 torches removed.
:::*A script uses a "PlayerCopyRef. RemoveItem Torch02 999" again
:::*All remaining torches removed from PlayerCopyRef.
::If the player has no Torch02 items when cloned, you can add and remove Torch02 normally, but if the player has some, using the above example, if you add, say, 200 torches to the copy (totaling 220), the first RemoveItem still removes just 2 torches, leaving 218 in the inventory .
::This behavior does not occur with the other carriable lights (e.g the vanilla TestToddTorch or a new carriable light object). This behavior does not occur with NPCs. This behavior does not occur with copies of NPCs created with CreateFullActorCopy.
::It only happens with Player.CreateFullActorCopy. Weird, because, in one hand, I know it is not just me (I've found this while helping Sornan at Beth Forums and this fixed his problem). On the other hand, the vanilla player statue script uses just one RemoveItem function and I don't see a horde of players complaining their statue is holding a torch! Go figure. [[User:QQuix|QQuix]] 10:22, 3 September 2009 (EDT)
Anonymous user

Navigation menu