Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.21 KB

doticu-skypal

A Papyrus library providing optimized functionality for The Elder Scrolls V: Skyrim Special Edition.

User and Developer Requirements:

skypal_references:

  • getters, filters, sorters

Examples:

    Scriptname MyQuest extends Quest

    ObjectReference property player auto

    function MyFunc()
        ; Get all refs currently in the cell grid around the player
        ObjectReference[] grid_refs = skypal_references.Grid()

        ; Filter out any refs that are 5000.0 or more units away from the player
        grid_refs = skypal_references.Filter_Distance(grid_refs, 5000.0, player, "<")

        ; Sort them from closest to farthest away from the player
        grid_refs = skypal_references.Sort_Distance(grid_refs, player, "<")
    endFunction

skypal_bases:

  • converters

Examples:

    Scriptname MyQuest extends Quest

    function MyFunc()
        ; Convert all references to their base forms, with no repeats
        Form[] bases = skypal_bases.From_References(skypal_references.Grid(), ".")
    endFunction