module

BCDice for Foundry VTT

Endorsements
0
Installs
0%
Comments
0
Latest version4.0.1
Minimum Core11
Compatible Core11.315
Last updated1 day ago
Created3 days ago
Authors
Languages English
日本語
Systems All systems
Project source Project URL
Read-me Readme URL
License License URL

BCRoller

 

A module to query the BCDice API for dice rolls. BCDice is the largest dice rolling bot in Japan, containing 100s of different TRPG systems and playstyles. You can find the sourcecode here. Please feel free to join their Discord and discuss your favorite Japanese TRPGs. You can even submit localization files for them.
Alternatively, if you have a system which foundry does not support, you can submit how that system does dice rolls and it can be implemented in BCDice (thus allowing you to use that system in foundry). Currently, the majority of users are from Japan and Korea. Looking forward to seeing others joing the team!

 

BCDice

日本でもっとも使われている、TRPG用ダイスロール処理システムです。どどんとふ、ココフォリア、ユドナリウム、TRPGスタジオなどさまざまなオンセツールで使われています。(https://bcdice.org/ より引用)
Modの使い方はWikiよりご確認ください(jsin_me版の情報)。

 

サポートはWikiにあるコミュニティDiscordに入り(事前確認不要)、BCDiceチャンネルで要望をご報告ください。

 

このモジュールはjsin_meさんが作製し、こまるさんが改良したものをベースに作製されています。

 

Custom System Builderで使用する方法

「Label roll message」に以下のコードを入力することでBCDiceを経由するロールが可能になります。
${#%{localVars.bcdformula=`ロール式`}%}$
${#%{localVars.text=await game.modules.get("fvtt-bcdice-addon").api.customCommand("/bcd","",`${bcdformula}$`)}%}$
${#%{localVars.result=`${text}$`.substring(`${text}$`.lastIndexOf("> ") + 2)}%}$
  • ロール式の部分を任意の式に置き換えてください。
  • ロール式には{}で括ったチャットパレットの変数に加えて、${}$で括ったCustom System Builderの変数も使用できます。
  • 出力結果の全文が${text}$に代入され、最後の1項目がロール結果として${result}$に代入されます。
    • 自動化は${result}$を使用したコードを追加することである程度実現できます。
    • 選択したダイスボットやロール式によっては${result}$が特殊な結果になる場合がありますが、その場合はスクリプトやマクロで${text}$を整形して利用してください。
  • BCDiceの出力結果のみを表示したい場合は「Send roll message to chat」オプションをオフにしてください。
  • ロール結果の発言者は現在選択しているトークンになります。キャラクターシートのアクターではないので注意してください。
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x