Jump to content

Is it possible to un-dress then re-dress an NPC dynamically


H3X1C

Recommended Posts

Wondering if it's possible to unequip an NPC of all items and then later Re-equip their items they had on. Im struggling to find anything within papyrus that'll even return what they have in their inventory :/

 

Any help would be greatly appreciated, new to the CK but not to code :smile:

 

Edit:

What I currently have my script doing is dynamically choosing a NPC nearby with some other parameters so I have their ref to work with.

Edited by H3X1C
Link to comment
Share on other sites

I know 2 mods that do something like this. Build Your Own Pool and another CWSS Redux 2

I can`t remember now, maybe sometimes they fail to put on some certain items but in general they both work good. You can download and look how it was implemented.

 

Yeah I saw these, unfortunately you can't see the source code for the scripts. I have contacted both of them although one has ignored me :/

 

Thanks for the suggestion :)

Edited by H3X1C
Link to comment
Share on other sites

 

I know 2 mods that do something like this. Build Your Own Pool and another CWSS Redux 2

I can`t remember now, maybe sometimes they fail to put on some certain items but in general they both work good. You can download and look how it was implemented.

 

Yeah I saw these, unfortunately you can't see the source code for the scripts. I have contacted both of them although one has ignored me :/

 

Thanks for the suggestion :smile:

 

You can with Champollion . It`s a little bit buggy. I could not run it in a usual way on windows 10, but I set pex files to be associated with it. So now if I click any pex, I get a txt document with the code in the same folder. But note that Champollion can add some weird things sometimes ( it always adds "as objectreference" or as "scriptobject" whiile they not always should be there, possibly some other things, but it`s very useful as it allows to see what functions can be used in some certain cases. I think it would be not nice to copy somebodie`s scripts without asking them, but it`s completelly fine to look at them and use the info to write your own code. Akarnan has not visited the site for a long time so I doubt he will answer.

Edited by kitcat81
Link to comment
Share on other sites

 

 

I know 2 mods that do something like this. Build Your Own Pool and another CWSS Redux 2

I can`t remember now, maybe sometimes they fail to put on some certain items but in general they both work good. You can download and look how it was implemented.

 

Yeah I saw these, unfortunately you can't see the source code for the scripts. I have contacted both of them although one has ignored me :/

 

Thanks for the suggestion :smile:

 

You can with Champollion . It`s a little bit buggy. I could not run it in a usual way on windows 10, but I set pex files to be associated with it. So now if I click any pex, I get a txt document with the code in the same folder. But note that Champollion can add some weird things sometimes ( it always adds "as objectreference" or as "scriptobject" whiile they not always should be there, possibly some other things, but it`s very useful as it allows to see what functions can be used in some certain cases. I think it would be not nice to copy somebodie`s scripts without asking them, but it`s completelly fine to look at them and use the info to write your own code. Akarnan has not visited the site for a long time so I doubt he will answer.

 

 

Thanks! just what I needed, this will make learning new things much easier :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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