Difference between revisions of "Talk:CreateFullActorCopy"

Jump to navigation Jump to search
1,212 bytes added ,  11:25, 17 October 2008
imported>Antares
imported>QQuix
(→‎CreateFullActorCopy /= PlaceAtMe Discussion: Clarifying DeleteFullActorCopy)
Line 121: Line 121:
::A whole element of my mod rides on being able to have an undefined (limited of course by common sense) number of actors in the given situation. Actually specifying a defined number of each potential actor and having my script use each in succession will be a mighty pain in the behind.
::A whole element of my mod rides on being able to have an undefined (limited of course by common sense) number of actors in the given situation. Actually specifying a defined number of each potential actor and having my script use each in succession will be a mighty pain in the behind.
::--[[User:Antares|Antares]] 08:23, 17 October 2008 (EDT)
::--[[User:Antares|Antares]] 08:23, 17 October 2008 (EDT)
:::As I said, some of it was theoretical and I was relying on reading many times that Base Records could not be removed from the game.
:::So I did some quick tests with Create/DeleteFullActorCopy: Created and deleted 100 copies of an NPC, empty and full inventory. Conclusions:
:::*DeleteFullActorCopy removes both the Base and the Reference records of the NPC >> No bloating copying+deleting empty NPCs
:::*DeleteFullActorCopy DOES NOT remove any/all/some (??) records of the duplicated items in the inventory >> bloating if the copied NPC has items in the inventory.
:::As for PlaceAtMe’d items, I had already done a lot of tests (reported  [[User:QQuix/On_Dynamic_Items_and_Savegame_Bloating|here]]) and the conclusion is that the records can be removed with “xItem.activate xNPC 1” (and/or the new DeleteReference function included in OBSE 16).
::: So you should be fine with:
:::*Creating+deleting empty NPCs with Create/DeleteFullActorCopy
:::*Adding inventory items with AddItem
:::*Removing any dropped item with “xItem.activate xNPC 1” and/or DeleteReference. Note that xNPC may be any NPC, not necessarily the one that dropped the item.
:::[[User:QQuix|QQuix]] 12:25, 17 October 2008 (EDT)
Anonymous user

Navigation menu