DiceCallbackPlugin
This is a developer tool based package used to help devs bind dice rolls with a callback. Inbuilt is also the ability to give dice color fully networked.
Last updated | 2 years ago |
Total downloads | 1192 |
Total rating | 0 |
Categories | Tweaks Client-side Tools |
Dependency string | HolloFox_TS-DiceCallbackPlugin-3.0.0 |
Dependants | 1 other package depends on this package |
This mod requires the following mods to function
bbepisTaleSpire-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.10README
Dice Callback Plugin
This is a framework plugin to allow modders to invoke dice rolls and provide a callback based on the results.
Install
Currently you need to either follow the build guide down below or use the R2ModMan.
Usage
This is a framework plugin used to handle dice rolls and callbacks from result. This does not provide any direct user functionality but tool for modders.
To use dice color you can enter additional color tags <color="RRGGBB">
in the protocol.
Using a web-browser you can use something like: talespire://dice/Roll for madness<size=0><color="00FF00"><color="0000FF">:3d6/9d6/1d6
. The Colors are appended by dice pools.
Dice pools that aren't appended by color will use default color.
How to Compile / Modify
Open DiceCallbackPlugin.sln
in Visual Studio.
You will need to add references to:
* BepInEx.dll (Download from the BepInEx project.)
* Bouncyrock.TaleSpire.Runtime (found in Steam\steamapps\common\TaleSpire\TaleSpire_Data\Managed)
* UnityEngine.dll
* UnityEngine.CoreModule.dll
* UnityEngine.InputLegacyModule.dll
* UnityEngine.UI
* Unity.TextMeshPro
Build the project.
Browse to the newly created bin/Debug
or bin/Release
folders and copy the DiceCallbackPlugin.dll
to Steam\steamapps\common\TaleSpire\BepInEx\plugins
Changelog
- 3.0.0: Prompts and result displayed are now updateable.
- 2.3.0: Dice color has been networked into the tool.
- 2.2.0: Added Dice Color for dice pools as part of callback.
- 2.1.0: Requires return to signature to update the results if needed.
- 2.0.0: Allow Groups to be rolled and deal with negatives
- 1.0.2: Allow object pass through
- 1.0.1: Returns Title and Formula of roll with the data
- 1.0.0: Initial release
Shoutouts
Shoutout to my Patreons on https://www.patreon.com/HolloFox recognising your mighty contribution to my caffeine addiciton:
- John Fuller
- Tales Tavern - MadWizard