HolloFox_TS-DiceCallbackPlugin icon

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 weeks ago
Total downloads 207
Total rating 0 
Categories Tweaks Client-side Tools
Dependency string HolloFox_TS-DiceCallbackPlugin-3.0.0
Dependants 1 other mod depends on this mod

This mod requires the following mods to function

bbepisTaleSpire-BepInExPack-5.4.10 icon
bbepisTaleSpire-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.10
brcoding-SetInjectionFlagPlugin-2.3.0 icon
brcoding-SetInjectionFlagPlugin

Allows players to flag mods are installed

Preferred version: 2.3.0

README

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:

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-10-1 3.0.0 20 Version 3.0.0 Install
2021-9-28 2.3.0 11 Version 2.3.0 Install
2021-9-24 2.2.0 14 Version 2.2.0 Install
2021-7-12 2.1.0 60 Version 2.1.0 Install
2021-7-11 2.0.0 20 Version 2.0.0 Install
2021-7-6 1.0.2 30 Version 1.0.2 Install
2021-7-5 1.0.1 25 Version 1.0.1 Install
2021-7-5 1.0.0 27 Version 1.0.0 Install