LordAshes-StatesPlugin icon

StatesPlugin

Adds support text lines above the character displaying character specific information (now with color)

Last updated 2 months ago
Total downloads 3963
Total rating 0 
Categories Tools Tweaks Minis Networked Integration
Dependency string LordAshes-StatesPlugin-3.3.1
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
LordAshes-FileAccessPlugin-1.4.1 icon
LordAshes-FileAccessPlugin

Provides standardized methods for accessing both local file and url resources. Automatically handles searching local folders for assets.

Preferred version: 1.4.1
LordAshes-StatMessagingPlugin-3.1.0 icon
LordAshes-StatMessagingPlugin

Adds support for JSON broadcast messages to clients, based on Creature Name synchronization. Use this plugin for any Character Name synchronization to ensure compatability with other plugins.

Preferred version: 3.1.0
HolloFox_TS-RadialUIPlugin-2.2.3 icon
HolloFox_TS-RadialUIPlugin

This is a developer tool based package used to help devs easily configure UI Radial Menus.

Preferred version: 2.2.3

README

States Plugin

This unofficial TaleSpire plugin is for adding lines of text above a mini to provide visible information such a mini states (e.g. poisoned, frozen, etc).

Thanks to @AlbrechtWM for the latest States Plugin updates.

Preview

Change Log

3.3.1: Corrected AssetLoader and removed incorrect log message
3.3.0: Bug fix to address accessing assets before they are available.
3.2.0: Config now loads from any FAP location. Default color config provided by Tabletop Animated
3.1.0: Fix for Cyberpunk Update
3.0.0: Fix for BR HF Integration Update
2.5.1: Fixed bug with remaining text after creature is deleted
2.5.0: Fixed bug with vertial positioning.
2.4.0: Optimized handling.
2.4.0: Fixed bug preventing use with EAR spawned custom minis.
2.3.0: Added Effect prefix to states block objects to increase compatibility with other plugins
2.2.0: Improved text positioning and orientation
2.2.0: Uses FileAccessPlugin for icons and colorization file access
2.1.0: Added access to states from the mini radial menu. Select Info in the main menu and then states.
2.0.2: Fixed Thunderstore dependency in manifest
2.0.1: Plugin is now listed on the TaleSpire main page
2.0.1: Fixed bug which prevented modifying existing states unless the states were first removed
2.0.0: Rewrite to use Stat Messaging for higher compatibility with other plugins
1.1.0: Added support for rich text
1.1.0: Added keyword colorization json file
1.1.0: Added base text exposed in configuration
1.0.0: Initial release

Install

Install using R2ModMan or similar.

Configuration

The R2ModMan configuration provides a number of settings to customize the features of the plugin:

Base Text Size = Indicates the font size of the text above the asset. Data type: Float. Default: 2.0 Height Offset Method = Determines how the position of the text is calculated.

FixedOffset = Always at a specific height determined by the offsetValue value
BaseScaledFixedOffset = Always at a specific height determined by the offsetValue value scaled by the creature size
HeadHookMultiplierOffset = Takes the head hook position and multiplies it by the offsetValue
BoundsOffset = Takes the highest point of the asset and multiplies it by the offsetValue value

Offset Value = Values used by the offset method (see above).

Usage

Select a mini and then press the States shortcut keys (defaults to CTRL+S but can be changed in R2ModMan) to activate the Stats dialog. Enter some text. If there are commas in the text, they will used to separate the text into multiple lines. The intention of this plugin is to add information about the character states/conditions such as Poisoned, Exhausted, Unconcious, On Fire, etc. However, the plugin can be used to display any text so it could be use for many other purposes.

Stealth Mode

The plugin synchronizes the text with the mini's stealth mode. When the mini is hidden due to Stealth, the text will also be hidden.

Three Ways To Color Your World

Base Text Color Configruation

In the States Plugin section of R2ModMan the base text color can be configured. When entering a number in R2ModMan for the color the code needs to be a 8 digit code preceeded by a hash sign in the form of #RRGGBBAA. Each of the two characters represent the hex value of the byte for the red color, green color, blue color and the alpha (FF=Opaque, 00=Full Transparent).

Colorization Keywords

Keywords can be colorized by providing a JSON colorization file. The JSON colorization file is expected in following folder with the following file name:

\Steam\steamapps\common\TaleSpire\TaleSpire_CustomData\Config\org.lordashes.plugins.states\ColorizedKeywords.json

The contents of the file has the following format:

JSON
{
	"Poisoned": "<#00FF00>Poisoned<Default>",
	"Frozen": "<#FFFFFF>Frozen<Default>",
	"Shocked": "<#5555FF>Shocked<Default>",
	"Exhausted": "<#FF7733>Exhausted<Default>",
	"On Fire": "<#FF0000>On Fire<Default>",
	"<Default>": "<#000000>"
}

The first entry per line (the key) indicates the keyword that is replaced when found in the specified text. The second entry per line (the value) indicates what the keyword gets replace with. Typically the replacement includes a color prefix in the form of <#RRGGBB> or <#RRGGBBAA>. To ensure non-replaced text is colored with the default color, each entry ends in <Default> and the value of <Default> is the last entry in the file. <Default> must be the last entry in the file since replacements are applied in order. Making it the last entry ensures that all other replacements which have it at the end, will get properly resolved.

When using this color method, the Base Text Color configured in R2ModMan is ignored and the <Default> color is used instead.

Manual Colorization

When specifying text into the CTRL+S dialog, colors codes can be applied manually by entering text in the form of <#RRGGBB> or <#RRGGBBAA>. When such text is entered, it is automatically removed and processed (i.e. text entered after it will appear in the specified color).

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  
2022-10-2 3.3.1 467 Version 3.3.1 Install
2022-9-30 3.3.0 90 Version 3.3.0 Install
2022-9-4 3.2.0 263 Version 3.2.0 Install
2022-9-3 3.1.0 51 Version 3.1.0 Install
2022-5-1 3.0.0 890 Version 3.0.0 Install
2022-1-2 2.5.1 804 Version 2.5.1 Install
2022-1-1 2.5.0 44 Version 2.5.0 Install
2021-12-31 2.4.0 65 Version 2.4.0 Install
2021-8-16 2.3.0 517 Version 2.3.0 Install
2021-7-15 2.2.0 198 Version 2.2.0 Install
2021-6-20 2.1.0 168 Version 2.1.0 Install
2021-6-16 2.0.2 85 Version 2.0.2 Install
2021-6-16 2.0.1 70 Version 2.0.1 Install
2021-6-8 2.0.0 89 Version 2.0.0 Install
2021-6-2 1.1.0 86 Version 1.1.0 Install
2021-6-2 1.0.0 76 Version 1.0.0 Install