Welcome to PaperScript
Last updated
Last updated
PaperScript is a modern alternative to that transpiles into valid Papyrus code.
PaperScript is a modern scripting language, inspired by C#, Rust and Scala, that transpiles into valid Papyrus code. It's designed from the ground up to be more user-friendly than Papyrus and adds powerful features that Papyrus does not have
PaperScript currently supports Skyrim SE/AE and Fallout 4.
A standalone scripting language. When V2 is complete, it should be relatively trivial to implement an interpreter for the AST but for the time being, it's only a tanspiler.
A complete replacement for Papyrus - Yet. The plan is to have V2 compile directly to Papyrus "bytecode" (PEX). This would allow us to drop the intermediate Papyrus step completely and implement more advanced features that Papyrus doesn't support. PEX files are basically just a list of opcodes so the possibilities are quite endless.
A picture (or a code example) is worth a thousand words so here are some basic examples of PaperScript.