DuplicateAllItems

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Syntax:

[ActorID|ContainerID.]DuplicateAllItems TargetContainerID

Example:

DuplicateAllItems BlackBrugoRef

Duplicates all items into the target container. Any scripted item will be duplicated almost identically:

  • Unscripted items are added to the target container using same Base Record as the original (similar to AddItem)
  • Scripted items:
    • Any script variables will be set to 0 on the duplicate
    • The duplicate will have a new FormID, meaning if (Original == New) will never be true
      • More importantly, meaning if any script referenced the original the duplicate will not work. For instance if (player.GetItemCount AmuletOfKings) will never be true if the player has the duplicate.
    • The Base Record created to hold the new FormID cannot be removed from the game and may cause savegame bloating if this function is used for temporary purposes.

Note that quest items are duplicated as well, so use with care. Many quests assume that a quest item is unique -- creating a second version of it can have undesirable results.

See Also[edit | edit source]

CreateFullActorCopy