You are viewing a potentially older version of this package. View all versions.
HolloFox_TS-DiceCallbackPlugin-2.2.0 icon

DiceCallbackPlugin

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

Date uploaded 5 years ago
Version 2.2.0
Download link HolloFox_TS-DiceCallbackPlugin-2.2.0.zip
Downloads 217
Dependency string HolloFox_TS-DiceCallbackPlugin-2.2.0

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.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: