Skip to content

Add a magazine

A magazine is a book that teaches recipes and buildable pieces instead of training a skill. Reading it to the end teaches them to that reader. The magazine that holds rounds is part of a firearm.

Steps

  1. In Content/ZombieSurvival/DataAssets/Items/Childs/, duplicate the book of a shipped magazine, DA_Book_Magazine_<Name> (class PDA_BookDef).
  2. In the same folder, duplicate the item of a shipped magazine, DA_Item_Magazine_<Name> (class PDA_ItemDef).
  3. Fill the fields of both (table below).
  4. Add the item to DA_ItemRegistry_Default.
  5. Put it where players can find it. On Pine Hollow, add the item to a loot table, DA_LootTable_Books for example. On a small map of your own, put it in a container's Contents in the spawn plan.
Asset Field What it does
Book SkillTag, Tiers The skill and the milestones. Empty for a magazine.
Book ReadMinutes Game minutes to read it to the end. 30 for the four crafting magazines.
Book TeachesRecipes The recipes it teaches.
Book TeachesPieces The buildable pieces it teaches.
Item Category Must be Literature.
Item ItemSaveId A unique save key.
Item BookDef The book it is.
Item DisplayName, Description A title of your own, and what it teaches: "A practical magazine. Reading it to the end teaches: ...".

Four crafting magazines ship. Field Fixes teaches the stick splint and the improvised hammer, and Weld It Right the crowbar, the sledgehammer and the metal wall. Crafting lists all four with what they teach. Other shipped magazines lower the level needed for vehicle work, one per vehicle class, and Generator Basics lets a reader connect a generator.

A skill book is made the same way, with a skill and milestones, and is also listed in Books of DA_ProgressionSettings_Default.

Test it

  1. Open Content/ZombieSurvival/Maps/L_World and press Play.
  2. Press T, type /give <ItemSaveId> and press Enter.
  3. Press Tab and left-click the magazine's row to read it. Reading is a timed action.
  4. At the end, the host names what you learned ("Learned: Stick Splint, Improvised Hammer."). Open C or B: the taught recipes and pieces are listed.

If it does not work

  • The game says "Too dark to read.": reading needs daylight, a lit flashlight or torch, or a lit lamp post within 6 m.
  • Reading stopped: you moved or were hit. It keeps what you have read.
  • The magazine cannot be read again: it is finished.