HolloFox_TS-DiceCallbackPlugin icon

DiceCallbackPlugin

This is a developer tool based package used to help devs bind dice rolls with a callback.

Last updated 2 weeks ago
Total downloads 40
Total rating 0 
Categories Tweaks Client-side Tools
Dependency string HolloFox_TS-DiceCallbackPlugin-2.1.0
Dependants 0 other mods depend 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.

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

  • 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

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-7-12 2.1.0 16 Version 2.1.0 Install
2021-7-11 2.0.0 2 Version 2.0.0 Install
2021-7-6 1.0.2 10 Version 1.0.2 Install
2021-7-5 1.0.1 5 Version 1.0.1 Install
2021-7-5 1.0.0 7 Version 1.0.0 Install