Difference between revisions of "Book"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
imported>Qazaaq
Line 6: Line 6:
Books include text that can be read by the player or "teach" a skill or spell.
Books include text that can be read by the player or "teach" a skill or spell.


== Editor Dialog ==
[[File:Book_Object.png]]
[[File:Book_Object.png]]
== Editor Dialog ==
*'''ID:''' The editor ID which is used by the Creation Kit.
*'''ID:''' The editor ID which is used by the Creation Kit.
*'''Name:''' The name as it will appear in-game.
*'''Name:''' The name as it will appear in-game.
Line 29: Line 28:
*'''Featured Item Message:'''
*'''Featured Item Message:'''
*'''Description:''' Used to provide a description in the inventory.
*'''Description:''' Used to provide a description in the inventory.
*'''Book Text:''' The text content of the book.
*'''Book Text:''' The text content of the book. [[Text Replacement]] may be used here.
*'''Text Offset XY:'''
*'''Text Offset XY:'''
*'''Scripts:''' Scripts can be attached here, and their properties edited.
*'''Scripts:''' Scripts can be attached here, and their properties edited.
*'''Keywords:''' Assign any needed [[Keyword]]s here.
*'''Keywords:''' Assign any needed [[Keyword]]s here.
==Markup==
Books can be formatted with a variety of markup tags, listed below:
* Bold tags (<code><nowiki><b></b></nowiki></code>): Text surrounded by bold tags will be '''bolded'''.
* Italic tags (<code><nowiki><i></i></nowiki></code>): Text surrounded by italics tags will be ''italicized''.
* Underline tags (<code><nowiki><u></u></nowiki></code>): Text surrounded by underline tags will be <u>underlined</u>.
* Line break (<code><nowiki><br></nowiki></code>): Breaks the text to the next line.  Strictly speaking, this tag isn't necessary.  You can just as easily add blank lines to the book text.
* List tag (<code><nowiki><ul><li>ITEM HERE</li></ul></nowiki></code>): Creates list items with an empty square for the icon. Each list item is indented and separated by an empty line.
* Font tag (<code><nowiki><font></nowiki></code>): Changes attributes of the surrounded text.  Available fonts are listed below.  Supported attributes are:
** Color (<code><nowiki><font color='#FFFFFF'></font></nowiki></code>): Changes the font's color.
** Typeface (<code><nowiki><font face='$HandwrittenFont'></font></nowiki></code>): Changes the typeface of the font.  The only typefaces supported at the moment are: <code>$HandwrittenFont</code> and <code>$PrintedFont</code> (default).  More typefaces can be added to the menu if desired, but it costs us memory for each one, so don't go crazy with the Feature Requests.
** Point size (<code><nowiki><font size='20'></font></nowiki></code>): Changes the font size.  See below for the line lengths you can accommodate using different font sizes.
** Alpha (<code><nowiki><font alpha='#FF'></font></nowiki></code>): Changes the font's transparency.  Two-digit hexadecimal values from <code>'#00'</code> (fully transparent) through <code>'#FF'</code> (fully opaque) are supported.  Useful if your author was low on ink?
* Image tags (<code><nowiki><img></nowiki></code>): Places an image on the page.  See Examples below to see different ways of placing images.  Supported attributes:
** Source filename (<code><nowiki><img src='img://example.dds'></nowiki></code>): '''NECESSARY''' This attribute specifies the filename of the image you want to show up.  You need to use the full pathname of the texture.  You also need to make sure the filename begins with <code>img://</code>.
** Height / width (<code><nowiki><img src='example.dds' height='40' width='40'></nowiki></code>): Sets the height / width (in pixels) of the image.
** Illuminated Letters (<code><img src='img://Textures/Interface/Books/Illuminated_Letters/X_letter.png'></code>): Used for adding special illuminated letters at the beginning of books. (Replace the "X" with any letter or number.)
* Paragraph tag (<code><nowiki><p></nowiki></code>): Delineates a block of text as a paragraph.  Automatically adds a blank line after the end of the paragraph.  Same with the <code><nowiki><br></nowiki></code> tag, this isn't really necessary ''unless'' you're using the following attribute:
** Alignment (<code><nowiki><p align='center'></nowiki></code>): Aligns the surrounded text.  Valid values are 'left', 'right', 'justify', 'center'.
** Also, if you want to place an image within some text so that it wraps around it, the text containing the image needs to be within paragraph tags.  See Examples below for Examples.
* Page-break (<code>[pagebreak]</code>): Breaks to the next page.  Must be on its own line.  Text automatically breaks to the next page once it reaches the end.  Unfortunately, images do not, so if you notice your images running off the edge of the page, manually place a page-break or reduce the size of your image.
* Comments (&lt;!--Comment text--&gt;): Comments out the "Comment text", i.e. Tells the renderer to not display the text wrapped within the tags, while still retaining the text in the editor.
* Quest-associated books can contain additional tags (see [[Text Replacement]]). To associate book with the quest you need to add book alias to the quest and set "Uses Stored Text" flag on this alias.


== See Also ==
== See Also ==
*[[:Category:Items|Items Category]]
*[[:Category:Items|Items Category]]

Revision as of 21:10, 17 July 2016

Papyrus: Book Script

Books include text that can be read by the player or "teach" a skill or spell.

Editor Dialog

Book Object.png

  • ID: The editor ID which is used by the Creation Kit.
  • Name: The name as it will appear in-game.
  • Weight: How heavy the book is.
  • Value: The base value in caps the item is worth to vendors.
  • Teaching:
    • Advance Actor Value:
    • Add Spell: The book adds the selected Spell to the player when read.
    • Add Perk: The book adds the selected Perk to the player when read.
    • None of the above: The book has no teaching qualities.
  • Inventory image:
  • Message Icon:
  • World Art: The 3D model seen in the world.
  • Inventory Art: The 3D model that appears in the inventory. Contains additional details for the book interface.
  • Preview Transform:
  • Add Destruction Data:
  • Can't be Taken:
  • Pickup Sound: The sound played when the book is picked up.
  • Putdown Sound: The sound played when the book is dropped.
  • Featured Item Message:
  • Description: Used to provide a description in the inventory.
  • Book Text: The text content of the book. Text Replacement may be used here.
  • Text Offset XY:
  • Scripts: Scripts can be attached here, and their properties edited.
  • Keywords: Assign any needed Keywords here.

See Also