4.5.7 • Published 2 years ago

@skyrim-platform/po3-papyrus-extender v4.5.7

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

@skyrim-platform/po3-papyrus-extender

(Unofficial) TypeScript library for the powerofthree Papyrus Extender 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, Game, Debug, Spell, Actor } from '@skyrim-platform/skyrim-platform'
import { RemoveBaseSpell } from '@skyrim-platform/po3-papyrus-extender/PO3_SKSEFunctions'

// Remove the 'Flames' spell from the player!
once('update', () => {
    const flamesFormID = parseInt('00012FCD', 16)
    const flames = Spell.from(Game.getForm(flamesFormID))
    if (flames) {
        const player = Game.getPlayer()
        if (RemoveBaseSpell(player, flames))
            Debug.messageBox(`Removed base spell ${flames.getName()} from the player`)
    }
})