SimpleAddItems

by tavernfly·v1.0·Updated 2019-11-24

zEdit script for manually adding items to level lists and containers the old-fashioned way; now less tedious!

Screenshots 1 screenshots

About this mod Machine translation

zEdit script for manually adding items to level lists and containers the old-fashioned way; now less tedious!

I needed a little script like this and couldn't find it anywhere, so I did it.

You can select items to add (ARMO, WEAP, etc.) and target-level lists or containers (LVLI or CONT) simply by Ctrl-clicking on the record node in the tree view (zEdit's left panel) and then selecting them. Click ->Automate and run this script!

Want to add a rated list to a rated list? no problem! Select multiple LVLIs and write the FormID of the target LVLI in the script header when running the script. (Until I find a workaround to bypass this extra step.)

Install:

Place "SimpleAddItems.js" into your zEdit\scripts folder.

illustrate:

See the top of the script for instructions on comments.

Error report:

Please provide the type of action you are trying to perform when you encounter the error: "Add items and rated lists to a single rated list", "Add items and rated lists to a single rated list", or "Add items and rated lists to one or more rated lists" in more containers. "Make sure you follow the steps outlined in the comment instructions correctly. If possible, include [WARN]/[ERROR] messages from the zEdit logger.

Improvements:

I want to improve this script. If you have an idea, I'm all ears. I'm a self-taught Java scripter and new to zEdit, so I'm sure there's a lot of room for optimization.

Learn to make your own scripts:

I'm very grateful to Mator for creating zEdit and answering my stupid questions when trying to write this script. You can also do this if you have any JavaScript experience (and maybe even none). The zEdit documentation is very useful. See especially Development > API > xelib and Scripting API. The Modding Tools Discord has been very polite to me and my stupid questions.

script:

For those who don't want to download or want to browse my spaghetti code, here's the full introduction.

</ s> </ s> </ s>

/* SimpleAddItems.js v1.0 - A zEdit script for adding items to hierarchical lists and containers. By Tavernfly, vigorously restrained by Mator. */

//---HEADER---User input here!

//Set the count. This will apply to all items added. Default = 1

let count = '1';

//Set level. This only applies to all items added to the Listed List. Default = 1

let level='1';

// Manually set the target using the hierarchical list FormID. Must be a valid 8-digit hexadecimal FormID!

//Default: Leave blank to add selected items to one selected graded list, or to add all selected items and graded lists to all selected containers

let destination ='';

//In the current zEdit session, manually set the target file using a 2-digit hex load order ID.

//Only required if the destination is set manually above and you want to edit a previously loaded, missing conflicting record in a specific file.

//Default: Leave blank to modify the last loaded record that won the conflict.

let file ='';

//---illustrate---

//Add items to a single list:

// 1. Select all required items of type ALCH, AMMO, APPA, ARMO, BOOK, INGR, KEYM, LIGH, MISC, SCRL, SLGM, WEAP

// CTRL+click/Shift+click to select multiple items

// 2. Use CTRL+click simultaneously to select "A Leveled List"

// 3. Right click -> Automation, SimpleAddItems.js

// 4. Set the desired count and level for all items in the script header. The default value is 1. Whatever number you set, enclose it in single quotes to make it a string.

// 5. In the script header, leave the target as blank/empty single quotes.

// 6. Run the script.

//Add a list of items and listings into a single listing:

// 1. Select all required items of type ALCH, AMMO, APPA, ARMO, BOOK, INGR, KEYM, LIGH, LVLI, MISC, SCRL, SLGM, WEAP

// CTRL+click/Shift+click to select multiple items

// 2. Right click -> Automation, SimpleAddItems.js

// 4. Set the desired count and level for all items in the script header. The default value is 1. Whatever number you set, enclose it in single quotes to make it a string.

// 5. Set the target with the 8-di …

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
  3. Place the files exactly as the readme says; mods with listed dependencies need those installed too.
  4. Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.

Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.

File & checksum

Filename
SimpleAddItems-用于级别列表和容器的zEdit脚本
File size
2.6 KiB
SHA-256
ce281c3acd98c767833c86a4551ea00e13f321f826814e1a64d92acc4936a3b1
Stored at
2026-10-08 00:00