Fallout Wiki
Advertisement
Fallout Wiki

Papyrus is an object-oriented scripting language developed by Bethesda Softworks for use in the Creation Engine. Papyrus first appeared in Elder Scrolls V: Skyrim and has since been utilized in Fallout 4 and Fallout 76. Papyrus is an evolution of ObScript,[1] the previous scripting language used in Fallout 3 and Fallout: New Vegas, with additional functionality and flexibility along with completely new syntax and workflow.

Papyrus works by receiving in-game Events and sending Function Calls. Papyrus is the driver for all quests and allows tracking of variables based on player interactions. Papyrus also handles the use of triggers, perk effect, terminal and book interactions, as well as special interactions through dialogue with characters.

Unlike the previous language, Papyrus scripts must be written in a separate text editor and compiled in the Creation Kit to be used in-game. Plugins for Notepad++ and Atom allow for use of Papyrus syntax.

From .psc to .pex[]

A Papyrus script starts as a plain text source document (.psc file) that can be written with the use of any text editor of choice (recommended plugin for Papyrus syntax). The .psc file must then be compiled into a form usable in-game (.pex file). Once a script has been compiled, edits must be done to the original raw .psc and then re-compiled and updated for any changes to take affect on the .pex.

Compiling[]

The Papyrus compiler is a command line utility that is packaged with all versions of Creation Kit that runs in editor and checks for any errors to report before turning a .psc file into a useable .pex file. The Papyrus compiler outside of the Creation Kit can be found at: ...Fallout 4\Papyrus Compiler\PapyrusCompiler.exe

For a more in-depth use of the Papyrus compiler, see the Creation Kit site.[2]

Locating .psc files[]

The .psc files used by Fallout 4 are all stored at ...Fallout 4\Data\Scripts\Source. Currently, there is no way to access the .psc files of Fallout 76.

This directory contains all the scripts used in the base game, all add-ons (if installed), and Creation Club content. There is also an additional folder for user made scripts. Apart from the base game, all additional content scripts are contained within a .zip folder that needs to be extracted to be read.

See also[]

References[]

  1. Differences from Previous Scripting - The Creation Kit wiki
  2. Papyrus Compiler - The Creation Kit wiki
Advertisement