ZetasTwitchRedeems
[v73] Trigger different events via Twitch Redeems!
模組介紹 作者原文
Zeta's Twitch Redeems
This mod is one i made for my Twitch channel, which adds some hardcoded Redeems viewers can trigger. Requires SimpleTwitchChat to be setup first.
Current Redeems!
- Force opening a gift when next picked up, with LethalPresents in mind! Also detects when you open Gift Mimics
- Force rolling an Emergency Dice when next picked up, integration with Emergency Dice Updated
- Forcing a Moon change, either based on the name of the Moon or the name of the Weather that the user requests!
- Options for the Moon/Weather change Redeem to ignore routing restrictions and route there anyways
- The data from Redeems persists between sessions, so Redeems aren't wasted if you relobby / continue in another session! (This data can also be cleared via the config if you don't want this functionality.)
Planned Redeems!
- Light Switch Toggle
- Route Random
- Poltergeist sound trigger
- Forcing a suit change, possibly via SuitsTerminal integration
- Changing the Whiteboard text to whatever they specify, integration for Whiteboard
- Forcing a TTS message to be spoken from the host, integration for MelaniesVoice
- Triggering TTS
- Maybe spawning invincible enemies, or even just killing the player via an Explosion??
Setup
- Install the mod, boot up, and a config will generate!
- Make sure you setup chat correctly with SimpleTwitchChat
- Inside SimpleTwitchChat, you can enable "Print debug info" and "Print redeem info" in the config to get a bunch of useful data on incoming messages, namely the Redeem related stuff.
- For setting up Redeems, make sure your Twitch Redeem messages allow the user to send a message, as Redeems without a message do not get picked up by this mod.
- To hook the Redeems up, use the debug settings in SimpleTwitchChat to get the Redeem IDs (By using the Redeems as the Channel owner since you'll have infinite channel points to use them as much as you want), copy the IDs, and then paste them into this mod config for whatever event you want to tie them to!
Making your own Redeem Mod
- Using SimpleTwitchChat as a dep, you are listening for the OnRedeem method being called, which incluides all the info you need about the Redeem message in it's params.
- You can also use the NewRedeemMessage to trigger HUD alerts whenever a Redeem is used.
Credits
- Zehs / For creating TwitchChatAPI
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
BepInEx-BepInExPackZetaArcade-SimpleTwitchChatZehs-TwitchChatAPISigurd-CSyncxilophor-LethalNetworkAPIMaxWasUnavailable-LethalModDataLib