Daggerfall books are located inside arena2\books and can be edited with DFBOOEDT, available as a part of DFTools package, found at Uesp.
Import books
Custom book files can be provided from loose files inside StreamingAssets/Books, for example StreamingAssets/Books/BOK00000.TXT. Alternatively, they can be bundled in a .dfmod as an asset with .bytes extension, for example BOK00000.TXT.bytes.
Declare new books
New books must be declared with a json file defined as follow:
[{ "Name": "ExampleBook.TXT", "Title": "An Example Book" "ID": 1531909675 }]
- Name is the filename.
- Title is a readable name for the book, shown in game.
- ID An unique ID for the book between 1 and 2147483647
- IsUnique If true this book is not found inside random loots or bookshelves and must be made available directly by mods.
- WhenVarSet Book is available only when a global variable is set.
This file must be placed
- inside StreamingAssets/Books/Mapping (StreamingAssets/Books/Mapping/ExampleBooksPack.json).
- bundled inside a mod (.dfmod) inside a directory that ends with Books/Mapping (for example Assets/Game/Mods/MyMod/Books/Mapping/ExampleBooksPack.json).
You can instantiate a book item in game with the following method call.
GameManager.Instance.PlayerEntity.Items.AddItem(ItemBuilder.CreateBook("ExampleBook"));