@skyrim-platform/po3-papyrus-extender

4.5.7 • Public • Published

@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`)
    }
})

Readme

Keywords

Package Sidebar

Install

npm i @skyrim-platform/po3-papyrus-extender

Weekly Downloads

13

Version

4.5.7

License

MIT

Unpacked Size

180 kB

Total Files

19

Last publish

Collaborators

  • shevernitskiy
  • mrowrpurr