Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

diziet

Uploaded by

dizietemblesssma

Virus scan

Safe to use

About this mod

Example scripts for modders making player homes or other such mods to add NPC and player undressing.
Uses SKSE and powerofthree's Papyrus Extender.
Use, rename, edit as you wish.

Requirements
Permissions and credits
Changelogs
Note: this is now the third version of these scripts.  These versions are SKSE only.
Non SKSE functionality is only in the prior versions.
The mod description page for versions 2.x can be found here:
https://www.nexusmods.com/skyrimspecialedition/articles/5895

I have received a lot of useful help on the Skyrim Special Edition Creation Kit and Modders forum with regards to my patches here:
Diziet's Player Home Bath Undressing for SkyrimSE
and I thought it might (or might not) be useful to post the fruit of all endeavours on the Nexus for others if they want to take advantage.
in particular I am indebted to all the respondents in these two threads:
https://forums.nexusmods.com/index.php?/topic/8502938-script-works-but-can-it-be-better/
https://forums.nexusmods.com/index.php?/topic/8482093-arrowsbolts-and-quivers/

The origin of my scripts start with:
Bathing Suit in a pool Script and files for oldrim;
Work by subtanker and Ac3s here:
http://forums.nexusmods.com/index.php?/topic/1081510-tutorial-by-subtanker-on-how-to-make-npcs-go-skinny-dipping/
and everything was inspired by:
TNF Modified Player Homes Bath Area Undressing

The scripts here have none of my MCM menu additions.
They require powerofthree's Papyrus Extender

There are example scripts for:
Player and NPC undressing,
NPC only undressing
Player only undressing

Also there is a script for the spell that provides the NPC undressing functionality, this is essentially identical to all such spell scripts currently used by mods, I take no credit for its content.

There is also a tiny ESL flagged esp with the magiceffect and spell and activators.

To use these scripts a modder can create a trigger box in their mod and attach one of the undressing scripts to it, the spell script is actually a script for a magic effect which is made in the Creation Kit and then used to make a new spell.  The undressing scripts will need to be edited to reflect the spell and magic effect names (if you change them) since they are used as properties in the scripts.
Alternatively use the included esp and the activators in it.

There is now a second optional esp - diz_undress_testing_cell.esp, this installs a cell that can be moved to using the coc command in the console:
    coc dizundresstestingcell
This has examples of every type of undress activator that is in the diz_undress.esp plugin, for mod authors to test and see how they behave.
It allows a mod author to look at the activator instances in the CK and see how they are setup. It has two items to sit on, one is a normal activatable chair with the diz_player_and_NPC_sit_undress_script attached, the other is static item that has an invisble chair overlayed, this invisible chair has the diz_player_and_NPC_sit_undress_script attached. There is a vanilla container (wardrobe) that has the diz_player_container_undress_script attached that will overide the 'search' action to show a question about undressing instead. There is a non activatable vanilla static (pedestal) that has an invisible activator overlayed that provides a question prompt.

All activators have the necessary properties already set in the creation kit except for:
    diz_player_and_NPC_just_redress_script
    diz_player_only_just_redress_script
Each of these scripts need the corresponding undressing script set as a property So it can access the variables set by the undressing script.
This cannot be done untill the scripts are attached to objects in the CK for your mod.

The script diz_player_and_NPC_sit_undress_script does not have an associated activator in the diz_undress.esp.
It needs to be attached to an object in the CK and its properties set there.

The diz_testcell_notifyX scripts are only used by the test cell to indicate via notification message which activator has been triggered.
They have no functionality for the undressing and are only installed if you install the testing cell.
-----------------------------------

To use these scripts in your mod you only need to use diz_undress.esp as a master and then in the CK add one of the activator triggerboxes (all prefixed 'diz') to your bath/pool etc.
The exception is the diz_player_and_NPC_sit_undress_script (see above).
Of course you are free to just add the scripts to your own triggerboxes/activators:)

activator editorids:
    diz_player_and_NPC_undress - this is a trigger box that just undresses the player or NPC on their entry, and redresses the player or NPC on exit.

    diz_player_only_undress - this is a trigger box that does the above but only for the player.

    diz_NPC_only_undress - this ais a triggerbox that will only undress an NPC on enter and redress the NPC on leaving.

    diz_undress_activator - this is an activator/marker that can be placed on an object such that the player will see the name 'Clothes Storage' and if the player activates will ask about undressing.

    diz_undress_container_activator - this is an object that when activated offer the same question as the diz_undress_activator, only it has a nif that makes it look like a satchel.
You should be able to change the nif to another of your choice to create change baskets/chests etc.
The script attached to this activator - diz_player_container_undress_script can also be attached to any activatable object, which when activated will override the normal activation function and ask the question about undressing.

    diz_undress_question_area - this is a trigger box that shows a messagebox asking if the player wishes to undress on enter, if the player chooses yes, then on the next entry into the triggerbox they will be asked if they wish to redress. This activator and script only operates on the player.

    diz_player_change_undress_area - this is a triggerbox that undresses the player on entry and redresses the player on entering a second time.
You can have multiple such triggerboxes, only the one that undresse the player will redress the player.
If the player enters a different change area while undressed nothing will happen.

    diz_player_only_just_undress - this is a triggerbox will only undress the player on enter. script attached to its
To redress there must be a diz_player_only_just_redress activator present.
    diz_player_only_just_redress - this is a triggerbox will redress the player upon leaving.
This triggerbox needs a property setting in the creation kit for the undress script attached to this triggerbox's corresponding diz_player_only_just_undress triggerbox.

    diz_player_and_NPC_just_undress - this triggerbox operates as diz_player_only_just_undress, except it also undresses NPCs.
    diz_player_and_NPC_just_redress - this triggerbox operates as diz_player_only_just_redress, except it also redresses NPCs.
Likewise this triggerbox needs a property setting in the creation kit for the undress script attached to its corresponding diz_player_and_NPC_just_undress triggerbox.



Much input to these scripts came from:
ReDragon2013, dylbill, IsharaMeradin, maxarturo on the Skyrim Special Edition Creation Kit and Modders forum on Nexus.

Content from Dovahkiin can lean Sit Kneel Lay down and Meditate etc too by Soupdragon used with thanks!