4.2.3 • Published 2 years ago

@skyrim-platform/papyrus-util v4.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@skyrim-platform/papyrus-util

(Unofficial) TypeScript library for the PapyrusUtil Skyrim modding utility

Getting Started

You can find an example Skyrim Platform plugin with documentation on how to get started using this library: https://github.com/skyrim-platform/example-plugin-using-libraries

Papyrus source code conversion to TypeScript originally generated using Papyrus-2-Typescript

Example

import { once, printConsole } from '@skyrim-platform/skyrim-platform'
import { FoldersInFolder } from '@skyrim-platform/papyrus-util/MiscUtil'

// When the game loads, show a listing of all of the directory names inside of the Data folder
once('update', () => {
    const foldersInData = FoldersInFolder('.')
    if (foldersInData)
        Debug.messageBox(`Folders in Data directory: ${foldersInData.join("\n")}`)
})