Skip to content

Conversation

@ViVi-shark
Copy link
Contributor

チャットパレットの、ゆとチャadv.用の後置記法とBCDice用の前置記法を入れ替える処理において、ゆとチャadv.でのステータス操作コマンドを置き換えてしまわないように。


ゆとチャのステータス操作コマンドをもちいたチャットパレットとして、次のようなものを仮定する。

@MP-3 【キャッツアイ】

これをチャットパレットに記述しておくと、前置記法と後置記法を入れ替える処理において、 【キャッツアイ】 @MP-3 のように置き換えられてしまう。

しかし、ゆとチャのステータス操作コマンドは、前置での記述にしか対応していない。( 【キャッツアイ】 @MP-3 はステータス操作コマンドとして解決できない)


なので、ステータス操作コマンドらしきものを入れ替えないようにする。

正規表現でふわっと識別しているだけなので、なんらかの副作用があるような気はかなりしている……。

というかたぶん GS, VC の BCDice の判定コマンドが、クリティカル値の指定があるときに誤判定される。
ダブルクロスはシンプルな記法なら問題なさそうだが、場合によっては誤判定されるかも。
ソード・ワールド2.x も @ でクリティカル値を指定した威力表コマンドはあやしいかもしれない。

……ダメでは?

@ViVi-shark ViVi-shark marked this pull request as draft June 26, 2024 12:46
@ViVi-shark
Copy link
Contributor Author

あまりにもダメそうなので draft にしておきます

なんか妙案があれば教えてください

  • ゆとチャ側でステータス操作を後置でも解決できるようにする?(本質的な解決ではない。ゆとチャはよその環境のものを使うこともまあまああるし……)
  • 特定の行に入れ替えを適用しないための記法をつくる?(わりとアリかも)

@yutorize yutorize force-pushed the develop branch 2 times, most recently from 1558afb to 6280311 Compare July 22, 2024 11:56
@yutorize yutorize force-pushed the develop branch 5 times, most recently from 2651883 to b232a52 Compare October 4, 2024 07:43
@yutorize yutorize force-pushed the develop branch 7 times, most recently from dc377bb to 4d43f79 Compare November 27, 2024 11:12
@yutorize yutorize force-pushed the develop branch 3 times, most recently from 1028a71 to 361f29c Compare December 5, 2024 09:08
@yutorize yutorize force-pushed the develop branch 8 times, most recently from c94fdb1 to 9374e75 Compare December 13, 2024 16:34
@yutorize yutorize force-pushed the develop branch 11 times, most recently from 93cf97d to 99541ff Compare June 4, 2025 08:20
@yutorize yutorize force-pushed the develop branch 2 times, most recently from eaa25e7 to c0b1b9d Compare January 5, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant