LordAshes-ChatService icon

ChatService

Dependency plugin to add services to the chat.

Last updated 4 days ago
Total downloads 17
Total rating 0 
Categories Tweaks Tools Integration
Dependency string LordAshes-ChatService-1.0.1
Dependants 3 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

Chat Service Plugin

This unofficial TaleSpire plugin is a dependency plugin for creating local chat service functionality. The plugin allows registering of key words with corresponding handlders to create functionality such as whispers or dice rolling functionality.

Change Log

1.0.1: Added source in the handler to distinguish messages from gm, player or creature. 1.0.1: Fixed bug when using multiple hanlders and one returns a null. 1.0.0: Initial release

Install

Use R2ModMan or similar installer to install this plugin.

Usage

Reference this dependency plugin in the parent plugin and then use the following syntax to add a chat service:

handlers.Add(serviceKey, handler)

Where the service key is a string that must appear at the beginning of the chat message in order to trip the corresponding handler.

Where hander is a function that takes in two string, the message content and the sender, and a source which is a ChatSource enumeration indicating if the source if a GM message, player message or creature message. The hanlder returns a string, the modified message or null. Returning null prevents the message from being displayed.

An example of adding a inline handler for "/w" function would be:

handlers.Add("/w ", (chatMessage, sender, source)=> { Debug.Log(sender+" whispered "+chatMessage); });```


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-11 1.0.1 11 Version 1.0.1 Install
2021-10-11 1.0.0 6 Version 1.0.0 Install