Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

Dylbill

Uploaded by

dylbill

Virus scan

Safe to use

About this mod

A script function resource.

Requirements
Permissions and credits
Changelogs
Donations

     Check Out My Other Mods


Description
A script functions resource. I noticed I was using similar script functions in multiple mods, so I decided to make a script resource for convenience and thought some others might find them useful. This will be a requirement for most of my mods in the future. Note that these functions are papyrus only, (there's no skse .dll). 
In Version 4.6 I added DbSkseFunctions.psc and corresponding .dll thanks to mrowrpurr's excellent tutorial series on creating SKSE plugins, Ryan-rsm-McKenzie for CommonLib, powerofthree for CommonLib SSE and CharmedBaryon for CommonLib NG.

Most functions in DbMiscFunctions.psc require skse. Some require papyrusUtil or Papyrus Extender. The source script is well commented on with examples of how to use the functions, as well as their requirements.

Version 1.9
Added DynamicArrays.psc. Used to create arrays of varying length. Like Utility.CreateStringArray(i) ect but doesn't require SKSE.
DynamicArrays.psc and DynamicArrays_b.psc must be attached to the same form in the creation kit to use. 
Note that arrays created must still be between 1 and 128 elements in length.

Version 2.0
Added Join, Push, RemoveAt, Clear and Count functions to DynamicArrays.psc.

Version 2.1 
Added Sort, Resize, InsertAt, InsertArrayAt, SubArray and CopyArray functions to DynamicArrays.psc
Similar to PapyrusUtil but doesn't require SKSE.

There's an example of how to use DynamicArrays in the download section under optional.

How To Use:
Users: Drop the files into your Data folder. 

Modders: Same, and use either Import DbMiscFunctions, DbSkseFunctions, DbSkseEvents in your scripts or DbMiscFunctions.SomeFunction() / DbSkseFunctions.SomeFunction() / DbSkseEvents.SomeFunction()

Functions / Events
Spoiler:  
Show


Requirements
Not all functions require these, but most require SKSE. Except for DynamicArrays.psc which is specifically none skse. The requirements for each function are listed in the source scripts.

For mod Author's, these will be required to compile scripts using DbMiscFunctions.psc. 
For mod User's, they are only required if the mod uses functions in DbMiscFunctions.psc that require these.
The mod author should keep track and list the requirements on their mod page.

SKSE64

PapyrusUtil SE
Papyrus Extender SE
ConsoleUtilSSE

DbSkseFunctions requires Address Library for SKSE Plugins
ToggleCollision and SetCollision functions require Powerofthree's Tweaks

Note that most of these scripts will work on LE. If installing on LE, install LE versions of the above mods and don't include Data\SKSE\Plugins\DbSkseFunctions.dll

DbSkseFunctions.psc DbSkseEvents.psc and DbMiscFunctionsSSE.psc only work on Skyrim SE / AE

DbIniFunctions.psc requires PapyrusIniManipulator for SE or PapyrusIni for LE
For mod author's, both PapyrusIniManipulator.psc and PapyrusIni.psc must be in your source folder to compile scripts that use DbIniFunctions.psc

Permissions
Don't include these files with your mods download (to avoid versioning conflicts.) Instead, direct users to download here. It ensures they will have the most recent version. I'll only be adding functions to these, never removing them.

Credits
Bethesda for creating Skyrim and the Elder Scrolls.
SKSE Team
exiledviper meh321 for PapyrusUtil
powerofthree for Papyrus Extender, Getting editor IDs & CommonLibSSE
Jampi0n for PapyrusIni 
Meridiano For PapyrusIniManipulator
 mrowrpurr's excellent tutorial series on creating SKSE plugins
Ryan-rsm-McKenzie for CommonLib
CharmedBaryon for CommonLib NG
VersuchDrei for ConsoleUtilSSE NG (used the source to make the ExecuteConsoleCommand function in this mod)
Linthar for More Informative Console (use the source to make the GetCurrentMusicType function in this mod)
RustyDwemer for showing me how to send papyrus events from c++

Github Source
https://github.com/Dylbill-Iroh/DbSkseFunctions