RelayPlugin

版本 v2.0.0·更新於 2026-07-21

Relay plugin connects sources with sinks to produce automatic effects

模組介紹 作者原文

Relay Plugin

This unofficial TaleSpire mod allows connection of sources to sinks allowing

things to occur under certain conditions. If that sounds vague, it is. The reason

why the description is so vague is because, in most cases, Relay Plugin is just

the connection. What things will happen under what conditions depends on the sources

and sinks that are configured.

Install

Use R2ModMan or similar installer to install.

Note: This plugin should only be installed on GM device. Do not install on player device.

Usage

This plugin is passive. The GM or players don't need to do anything once the plugin is configured.

What actions then need to be taken to trigger a source condition to result in a sink trigger

depends on the sources and sinks configured.

Configuration

There are 3 parts to Relay Plugin: Relay, Interactions and Hide.

Relay Configuration

The relay configuration is store in a file called:

`org.lordashes.plugins.relay.Relay._CampaignId_._BoardId_.json`

You can get this file name form the logs.

This means that each board has its own configuration of Relays which makes sense since Relays

are typically specific to creatures or props on the board.

The format for the Relay file is:

{

"sources": {

"ANGEL": "org.lordashes.plugins.angel.*",

"DOOR": "org.lordashes.plugins.relay.interaction"

},

"relays": [

{

"trigger": "DOOR",

"condition": "{N}:{V}|^Door_Right:2$",

"reaction": "HIDE",

"reactionAsset": "{Jester}",

"reactionDelay": 1.0,

"reactionValue": "0",

"description": "Shows/Hides Jester Based On Door state"

},

{

"trigger": "DOOR",

"condition": "{N}:{V}|^Door_Right:6$",

"reaction": "HIDE",

"reactionAsset": "{Jester}",

"reactionDelay": 1.0,

"reactionValue": "1",

"description": "Shows/Hides Jester Based On Door state"

}

],

"sinks": {

"HIDE": "org.lordashes.plugins.relay.hide"

}

}

`sources` is set of sources indexed by a friendly name containing the corresponding Asset Data Plugin subscription.

When an Asset Data Plugin message involving the subscribed key is sent, the message is processed though the relays.

`sinks` is a set of Asset Data Plugin keys used to trigger desired plugins when the relay conditions are met.

The Relay Plugin will write to messages to these keys with the intention that this will trigger an effect in some other plugin.

`relays` are the connection between sources and sinks. The connections can be conditional or unconditional.

When a source generates a message, any relay that has the source as its trigger property will trigger.

If the relay has a condition, it will evaluate it. If the condition is empty, it is assumed the condition always passes.

A `condition` has two parts separated by a pipe character. The first part is what is being compared and the second part is a RegEx

indicating the pattern that must be matched. The first part can utilize a number of place holders which are filled in when

the condition is evaluated:

`{?}` is replaced with the a T if the source is an asset that is owned by a PC or F otherwise. Condition only.

`{A}` is replaced with the message action. Useless in most cases.

`{K}` is replaced with the message key (useless in most cases unless using wild card subscribing).

`{N}` is replaced with the name of the asset assuming the source is a creature board asset (or same as {S} if not). Usually very useful.

`{P}` is replaced with the previous value of the state. Useless in most cases.

`{S}` is replaced with the message source. Useful for asset identification but usually {N} is used instead.

`{V}` is replaced with the current value of the state. Usually very useful.

The RegEx portion is just a regular RegEx except that it needs to be double escaped since it is in a JSON. If the RegEx uses groups, the

group content can be used in the reactionAsset or reactionValue properties.

The `reactionAsset` indicates the source to be used for the sink request if the condition is passed. It can use the same place holders

as the condition did but it also has one ad

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

bbepisTaleSpire-BepInExPackbrcoding-SetInjectionFlagPluginLordAshes-AssetDataPluginLordAshes-FileAccessPluginLordAshes-LoggingPluginLordAshes-ReflectionPlugin

檔案與校驗

檔案名稱
RelayPlugin-2.0.0.zip
檔案大小
34.6 KiB