[color=#00ffff][size=6][b]powerofthree's Papyrus Extender
[/b][/size][/color][size=3][color=#ff0000][b]REQUIREMENTS[/b][/color]
[/size]SKSE
Latest version of Skyrim
[b]CHANGELOG[/b]
[u][spoiler]2.2
[/u]- all graphic modifying functions write extradata to the actor's root node
- [i]ResetActor3D [/i]now[i] [/i]resets all graphic changes by detecting these extradata
- removed radius argument from [i]GetClosestActorFromRef[/i]
- some internal changes to classes, fixed null errors that could occasionally lead to crashes.
[u]2.1
[/u]- added colorform nullptr checks to SetHairColor
[u]2.0
[/u]- rewrote base using libSkyrim
- added and changed many functions (note: some functions may had their parameters changed)
- removed events (for now)
[u]v1.61[/u]
- temporarily disabled [i]OnMagicEffectApplyRemove[/i] event as it was causing crashes when consuming food items.
[u]v1.6[/u]
- added Events which you can register for on alias, active effects, and forms.
- added [i]RemoveChildNode
[/i]- added [i]DecapitateActor
[/i]- added [i]Get/SetLightFOV[/i] and [i]Get/SetLightDepthBias
[/i]- added [i]SetProjectileImpactForce[/i]
[i]- [/i]added nullptr checks to prevent crashes with [i]GetAllActiveEffectsOnActor
[/i]- fixed internal bug with [i]Get/SetLightRadius [/i]where the parameter should have been an int, not float.[i]
[/i]- rewrote many functions to use SKSE task delegates more effectively
- removed [i]Get/SetArmorAddonPriority
[/i]- replaced [i]GetImpulseVector [/i]with[i] [/i][i]Apply2DHavokImpulse[/i] and [i]Apply3DHavokImpulse
[/i]- optimized [i]ResetActor3D
[/i]
[u]v1.51
[/u]- [i]SetLightType[/i] now set the light type correctly
- [i]SetLightColor[/i] now sets color correctly
[u]v1.5
[/u]- added [i]ModifySkinnedDecals[/i], [i]ResetActor3D[/i][i] [/i]functions
- [i]GetLightType[/i] now returns the correct light type
- [i]ReplaceTextureSet [/i]functions now don't persist when reloading to an earlier save
[u]v1.4
[/u]- added [i]ReplaceFaceTextureSet[/i], [i]ReplaceSkinTextureSet, SetHeadPartAlpha, IsActorSoulTrapped [/i]functions
- added [i]AddAllGameSpells/RacesToList [/i]functions
- added [i]GetProjectileType
- [/i]removed [i]RegenerateTintedSkin
[/i]- code optimization
- fixed [i]Get/SetMagicEffectSound[/i] crash
- renamed [i]ReplaceTextureSetOnArmor [/i]to[i] ReplaceArmorTextureSet
[/i]- renamed [i]GetDirectionalVector[/i] to [i]GetImpulseVector[/i]
[u]v1.3[/u]
- new [i]Form, EffectShader, Sound, Game [/i]class functions.
- added [i]ReplaceTextureSetOnArmor [/i]to[i] Actor [/i]class functions
- added [i]AddAllInventoryItemsToLis[/i]t and related functions to [i]ObjectReference[/i] class functions[/spoiler]
[b][color=#ffff00]DESCRIPTION[/color][/b]
A SKSE plugin and modder's resource containing functions that will be used across the majority of my mods. Currently required by : [url=https://www.nexusmods.com/skyrim/mods/78709/]Frozen Electrocuted Combustion[/url][b] + [/b][url=https://www.nexusmods.com/skyrim/mods/93199/?]Strange Runes : Spellcasting Enhanced[/url][b].[/b]
[b]Source is available at : [url=https://github.com/powerof3/SKSEPlugins]https://github.com/powerof3/SKSEPlugins[/url]
[/b]
[b][color=#ffff00]INSTALLATION
[/color][/b]Install as normally with a mod manager, such as Mod Organizer.
[color=#ffff00][b]FUNCTIONS
[/b][/color]Documentation is provided in[i] po3_SKSEFunctions.psc[/i].
[b][color=#ffff00][size=3]NOTES[/size][/color][/b]
[size=2]
[/size][list]
[*][size=2]GetRandomFloat/Int is approximately 1000 times faster than vanilla Utility.RandomFloat/Int[/size]
[*][size=2]SetSkinColor functions should only be used on NPCs, and only if it's really needed. Side effect is losing lip colors/warpaints/scars.[/size]
[*][size=2]SetFace/SkinTextureSet will result in a neckseam if the entire textureset is replaced.[/size]
[*][size=2]Most Set functions only last a single game session, and may still persist even if loading saves before the function was called. [/size]
[/list]
[b][color=#ffff00]CREDITS[/color][/b]
[list]
[*]underthesky for initially getting this set up and implementing the position functions (thanks a lot!)
[*]aers, nukem, ryan, meh321 for tips and help
[*]davidjcobb for advice and reviewing the code + his Skyrim class definitions
[*]expired6978 for advice plus some bits of code were adapted from Racemenu related to modifying NiNodes.
[*]Chesko for decoding ExtraTeleport, adapted from SimplyKnock.
[*]Dienes for the ReplaceKeyword function adapted from DienesTools.
[/list]
[/b][/size][/color][size=3][color=#ff0000][b]REQUIREMENTS[/b][/color]
[/size]SKSE
Latest version of Skyrim
[b]CHANGELOG[/b]
[u][spoiler]2.2
[/u]- all graphic modifying functions write extradata to the actor's root node
- [i]ResetActor3D [/i]now[i] [/i]resets all graphic changes by detecting these extradata
- removed radius argument from [i]GetClosestActorFromRef[/i]
- some internal changes to classes, fixed null errors that could occasionally lead to crashes.
[u]2.1
[/u]- added colorform nullptr checks to SetHairColor
[u]2.0
[/u]- rewrote base using libSkyrim
- added and changed many functions (note: some functions may had their parameters changed)
- removed events (for now)
[u]v1.61[/u]
- temporarily disabled [i]OnMagicEffectApplyRemove[/i] event as it was causing crashes when consuming food items.
[u]v1.6[/u]
- added Events which you can register for on alias, active effects, and forms.
- added [i]RemoveChildNode
[/i]- added [i]DecapitateActor
[/i]- added [i]Get/SetLightFOV[/i] and [i]Get/SetLightDepthBias
[/i]- added [i]SetProjectileImpactForce[/i]
[i]- [/i]added nullptr checks to prevent crashes with [i]GetAllActiveEffectsOnActor
[/i]- fixed internal bug with [i]Get/SetLightRadius [/i]where the parameter should have been an int, not float.[i]
[/i]- rewrote many functions to use SKSE task delegates more effectively
- removed [i]Get/SetArmorAddonPriority
[/i]- replaced [i]GetImpulseVector [/i]with[i] [/i][i]Apply2DHavokImpulse[/i] and [i]Apply3DHavokImpulse
[/i]- optimized [i]ResetActor3D
[/i]
[u]v1.51
[/u]- [i]SetLightType[/i] now set the light type correctly
- [i]SetLightColor[/i] now sets color correctly
[u]v1.5
[/u]- added [i]ModifySkinnedDecals[/i], [i]ResetActor3D[/i][i] [/i]functions
- [i]GetLightType[/i] now returns the correct light type
- [i]ReplaceTextureSet [/i]functions now don't persist when reloading to an earlier save
[u]v1.4
[/u]- added [i]ReplaceFaceTextureSet[/i], [i]ReplaceSkinTextureSet, SetHeadPartAlpha, IsActorSoulTrapped [/i]functions
- added [i]AddAllGameSpells/RacesToList [/i]functions
- added [i]GetProjectileType
- [/i]removed [i]RegenerateTintedSkin
[/i]- code optimization
- fixed [i]Get/SetMagicEffectSound[/i] crash
- renamed [i]ReplaceTextureSetOnArmor [/i]to[i] ReplaceArmorTextureSet
[/i]- renamed [i]GetDirectionalVector[/i] to [i]GetImpulseVector[/i]
[u]v1.3[/u]
- new [i]Form, EffectShader, Sound, Game [/i]class functions.
- added [i]ReplaceTextureSetOnArmor [/i]to[i] Actor [/i]class functions
- added [i]AddAllInventoryItemsToLis[/i]t and related functions to [i]ObjectReference[/i] class functions[/spoiler]
[b][color=#ffff00]DESCRIPTION[/color][/b]
A SKSE plugin and modder's resource containing functions that will be used across the majority of my mods. Currently required by : [url=https://www.nexusmods.com/skyrim/mods/78709/]Frozen Electrocuted Combustion[/url][b] + [/b][url=https://www.nexusmods.com/skyrim/mods/93199/?]Strange Runes : Spellcasting Enhanced[/url][b].[/b]
[b]Source is available at : [url=https://github.com/powerof3/SKSEPlugins]https://github.com/powerof3/SKSEPlugins[/url]
[/b]
[b][color=#ffff00]INSTALLATION
[/color][/b]Install as normally with a mod manager, such as Mod Organizer.
[color=#ffff00][b]FUNCTIONS
[/b][/color]Documentation is provided in[i] po3_SKSEFunctions.psc[/i].
[b][color=#ffff00][size=3]NOTES[/size][/color][/b]
[size=2]
[/size][list]
[*][size=2]GetRandomFloat/Int is approximately 1000 times faster than vanilla Utility.RandomFloat/Int[/size]
[*][size=2]SetSkinColor functions should only be used on NPCs, and only if it's really needed. Side effect is losing lip colors/warpaints/scars.[/size]
[*][size=2]SetFace/SkinTextureSet will result in a neckseam if the entire textureset is replaced.[/size]
[*][size=2]Most Set functions only last a single game session, and may still persist even if loading saves before the function was called. [/size]
[/list]
[b][color=#ffff00]CREDITS[/color][/b]
[list]
[*]underthesky for initially getting this set up and implementing the position functions (thanks a lot!)
[*]aers, nukem, ryan, meh321 for tips and help
[*]davidjcobb for advice and reviewing the code + his Skyrim class definitions
[*]expired6978 for advice plus some bits of code were adapted from Racemenu related to modifying NiNodes.
[*]Chesko for decoding ExtraTeleport, adapted from SimplyKnock.
[*]Dienes for the ReplaceKeyword function adapted from DienesTools.
[/list]