Skyrim Special Edition

Note: this is now the second, updated version of these scripts which use States to combine
SKSE64 and non-SKSE64 in one script.  The prefix used throughout these
newer versions is diz_ not dz_.  So the new versions are not compatible
with the older versions.


Just recently I have been receiving 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

In my own mod above I have tried to accomodate SKSE64 and MCM menu users as well as non-SKSE64 users.
The scripts here have none of my MCM menu additions.  My latest scripts use
SKSE64 if it is available (where it makes a difference).  This is
because the SKSE sections of my scripts use an SKSE64 plugin from here:
powerofthree's Papyrus Extender for SSE
this plugin is made freely distributable by the author and provides a nice
fast way for SKSE64 aware scripts to get an array of equipped items.  I
currently include version 2.3.2.  Go to the authors mod page for the
latest version and overwrite if newer.

the author of Papyrus Extender has changed filenames, making overwriting ineffective and
leading to conflicts.  From now on use Papyrus Extender direct from
powerofthree's Papyrus Extender for SSE, you will also need requirements for that mod as listed on its Nexus page.

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.


Files descriptions below:
------------------------------------------------------
;;;no SKSE is needed for these two scripts;;;
diz_NPC_only_undress_script - just for NPCs
;;;this script includes redressing functions;;;
diz_undress_magic_effect_script - needed to make the undressing spell for NPCs

------------------------------------------------------
;;;all the following scripts will detect if SKSE is not installed and use slightly less functional routines;;;
;;;if SKSE is installed then powerofthree's Papyrus Extender for SSE is used this now needs to be installed separately, ;;;
------------------------------------------------------

------------------------------------------------------
;;;these two scripts include redressing functions;;;
diz_player_and_NPC_undress_script
diz_player_only_undress_script
------------------------------------------------------

Also included are scripts that separate the undressing and redressing so that different trigger boxes can be used for each:
diz_player_only_just_undress_script
diz_player_only_just_redress_script
diz_player_and_NPC_just_undress_script
diz_player_and_NPC_just_rdress_script


Thus you can attach an '*entrance*' script to a trigger that undresses the
player/NPC and the corresponding '*exit/redress*' script to another
trigger to re-dress the player/NPC.
You will need to make the entrance script and the object it is attached to a property of the exit
script in the creation kit to make its variables accessable for
re-dressing.
You will still need the spell for NPC undressing.
-------------------------------------------------------

diz_player_change_area_undress_script
;;;this script includes redressing functions;;;

This script undresses the player upon entry to a triggerbox and then redresses the player when they re-enter the triggerbox
They could be used to a trigger box around a 'changing area'. The player goes in and 'changes'. Leaves and 'cavorts'.
When the player is ready, she re-enters the changing area and redresses.

There is no NPC option, since there is no way to ensure the NPC re-enters the 'changing area' to redress!:)

-------------------------------------------------------
The included esp is esl flagged, includes the magic effect and spell as
well as activators with the appropriate scripts aleady attached.
The 'change area' script requires a global variable which is set in the included esp.

Now added to the esp is an activator to create 'containers' to undress the
player and then redress the player.  At the moment the activator has the
nif model of a satchel.  You will need to replace that nif with
whatever model you intend to use as a container for clothes.  Of course
the result is not really a container, it will just look like one! :)
Upon activation the player is asked if they wish to undress.  Upon second
activation the player is asked if they wish to redress.
This activator has a script:
diz_player_container_undress_script
that performs the work.  This script can be attached to anything you can
activate or make activatable if you don't want to use the activator.

The script also enables and disables an xmarker called diz_undress_marker
in cell aaaMarkers.  Enabled on player undressing and vice versa.
This does not have to be used, but can be made a parent of a triggerbox for
NPC undressing or somesuch.  It is initially disabled.
--------------------------------------------------------

Also included in the esp now are invisible seating and layng down markers as
made by Soupdragon in their "Dovahkiin can lean Sit Kneel Lay down and
Meditate etc too" mod:
https://www.nexusmods.com/skyrimspecialedition/mods/32748
These can be used to add places where the player, as well as NPCs can sit or laydown.

Also included is the freely re-distributable Papyrus Extender ver 2.3.2
Data
    |Scripts|
            |PO3_SKSEFunctions.pex
            |Source    |
                    |PO3_SKSEFunctions.psc
    |SKSE    |
            |Plugins|
                    |po3_papyrusextender64.dll
    

---------------------------------------------------------

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!

Article information

Added on

Written by

dizietemblesssma

0 comments