Jump to content

Recommended Posts

Posted

MESKSEUtils

View 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
 

 

 


 

Posted

Nice to see it released seperatly.
if adding keywords during runtime works as intended, this could be very usefull.

  • 8 months later...
Posted

Hey, quick question about this file. I am trying to use the AddKeyword function to add the ActorTypeUndead keyword to a target via a magic effect (OnEffectStart).

 

Every time I try to compile, no matter what I put for the first input in the function, I keep getting an error in the compiler that says "Global function AddKeyword cannot be called on an object"

 

Any idea where I can begin?

  • 2 years later...
Posted
On 19.06.2015 at 5:27 PM, zaira said:

Maria Eden contains always the latest version

that is, I can install it on Maria Eden Prostitution with a rewrite and this will work?

Posted

It is compatible - this one must overwrite the one from MariaEden (load order in MO or overwrite in NMM)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...