Skyrim

File information

Last updated

Original upload

Created by

mzin

Uploaded by

mz1n

Virus scan

Safe to use

About this mod

Adds Papyrus methods that allow mod authors to set the "is dangerous water" flag through SKSE.

Requirements
Permissions and credits
Donations
This utility adds Papyrus functions that allow mod authors to check and set the "is dangerous water" flag on WaterType Forms through script. This is a way to dynamically patch WaterTypes so that you don't need to load a bunch of ESPs for each DLC/water-mod combination that you may want to use when "is dangerous water" must be set to true.

This utility does nothing on its own and must be invoked by other mods for changes to take effect.



For mod users:
Install to your Data folder. SKSE is required. There are no ESP files.



For mod authors:
This makes available two new Papyrus functions to interact with WaterType Forms through SKSE:

Bool Function IsDangerousWater(Form WaterForm) Global Native
Function SetDangerousWater(Form WaterForm, Bool Dangerous) Global Native

IsDangerousWater returns TRUE if the "is dangerous water" flag is set to true on WaterForm. It returns FALSE if the flag is false or if WaterForm was not a WaterType. You should not pass NONE to it.

SetDangerousWater sets the "is dangerous water" flag of WaterForm based on the value of Dangerous. It does nothing if WaterForm is not a WaterType. You should not pass NONE to it.

These changes do not persist through a save and must be reapplied when a player loads the game.

You may choose to include these files directly with your mod or direct users here to download it.
I recommend pointing users here in case there are updates.



For an example implementation with source code, please read the source included in the mod
Bathing in Skyrim.
For a breakdown on why this exists and how it works please read my blog post about it here: http://www.mzin.moe/?p=132