About This File
This is a separate release of my SKSE plugin that I have written for Maria Eden.
Only usefull for modders and especially for modders that don't use Maria Eden.
Â
It contains several function that I miss in Papyrus - and that might be useful for other modders too:
- You can create and copy Outfits dynamically
- You can add and copy keywords to forms
- You can replace a form by another form
- You can get a list of filenames (without path and fileextension)
- You can move one file to a different location
I use outfits instead of putting armor to a NPC because it is much faster and a NPC will never un-equip armor from the current outfit.
Â
I use the keyword feature to clone keywords from ZaZ devices to several devices (ZaZHDTWorkshop, DD, other blindfold mods) so that they behave like native ZaZ devices.
Â
Restrictions:
- Use it on own risk.
- Dynamically created outfits must be recreated after game load
- AddKeywords produces (very) small memleaks - you should prefer CloneKeywords
- Maria Eden always contains the latest version
- This is W.I.P
Code:
ScriptName MESKSEUtils hidden; creates an outfit based on the form array - only armor will be copied, none objects will be skipped.; returns none if the form array did not contain any valid armorOutfit Function CreateOutfit(Form[] formArray) global native; creates an outfit based on the actor's equipped armor - weapons will be skipped; returns none if the actor has not equipped any valid armor.Outfit Function CreateOutfitFromActor(Actor theActor) global native; modify an existing outfit, only armor will be copied, none objects will be skipped.Function CopyOutfit(Outfit from,Outfit to) global native; updates an existing outfit based on the form array - only armor will be copied, none objects will be skipped.Function UpdateOutfit(Form[] formArray,Outfit to) global native; adds a keyword to the formfunction AddKeyword(Form baseForm, Keyword kw) global native; replace all keywords of the destination form with the keywords of the source formfunction CloneKeywords(Form sourceForm, Form destinationForm) global native; replace all instances of the specified form with another formfunction ReplaceForm(Form sourceForm, Form destinationForm) global native; returns a list of filenames (without path and extension) - root director is skyrim dir, search pattern is dos likestring[] function ListFilenames(string searchPattern) global native; moves a file,root director is skyrim dir, if destinationDir not exists it will be created, if file exists it will be overwrittenfunction MoveFile(string filename,string destinationDir) global native
Â
Â
What's New in Version 2.0
Released
- Source code
- Switched to commonlib