Jump to content

Curious on best approach to technical problem (scripting)


Recommended Posts

Posted

I want to have certain actors preferentially use certain animation tags on scene starts.  I would like this to happen automatically, and for each actor to have different preferences (maybe assigned by spell/alias).

 

What would be the best way to achieve that with mod compatibility in mind?  Ideally, I'm looking for a way to hook in that adds additional "must include" tags, or "not include" tags.  Hopefully not so many as to remove all valid animations (though that should just default to a wildcard).

 

Thoughts on implementation?

Posted

You need to create a script that will hook the animationstarting.

Then check what are the actors inside, and some sort of match table that will associate each actor (or actortype) with the tags you like.

Then query sexlab with the found tags, and then replace the animations of the hooked thread with the one you found.

 

But, be aware, a mod doing that will break many other mods that rely on finding specific animation.

Posted
17 minutes ago, CPU said:

But, be aware, a mod doing that will break many other mods that rely on finding specific animation.

Thanks, CPU.  This quoted part is what I was worried about.  I was hoping for some filter or mechanic that could differentiate these situations.

Posted
24 minutes ago, Seijin8 said:

Thanks, CPU.  This quoted part is what I was worried about.  I was hoping for some filter or mechanic that could differentiate these situations.

There is no way to understand who actually started the animation.

So, there is very little to do.

Posted
1 hour ago, CPU said:

There is no way to understand who actually started the animation.

So, there is very little to do.

Sad to hear it, but thank you for saving me a week of smashing my head against the desk in frustration.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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