The template includes:
- Support for up to 5 device types
- Supports pain files (including the 2B)
- Pain level adjustments
- Automatically taking into account device type
- Sound test settings
- Saved settings for multiple visits
- Device calibration script
- Settings reset option
- Included functions for easily setting volumes per device

Basic information for getting started:
Always set volume sliders to 0% manually. This makes sure someone won't accidentally be hit with a 100% volume file.
This is also done as a baseline since all volumes will be set with one of the following two functions:
Code: Select all
setVolume(audio_id)
setPain(audio_id)Code: Select all
teaseStorage.getItem("device_volume")Code: Select all
teaseStorage.getItem("pain")Code: Select all
teaseStorage.getItem("device")During the tease, you can select a specific file for a specific device with an if-statement and the the teaseStorage.getItem("device") variable.
Pseudocode Code:
Code: Select all
if teaseStorage.getItem("device") == "2B"
play(file1)
setVolume("file1")
else
play(file2)
setVolume("file2")
What this template does not include:
Support for automatic volume ramping.
Try it here:
https://milovana.com/webteases/showteas ... 4a13b4b177
Hosted Here (for now):
https://cdn.discordapp.com/attachments/ ... 0-2-2.json
If you use it, let me know if you have any questions.


