From b555f725b0205f45895f67975e3a1a31af5a9fe3 Mon Sep 17 00:00:00 2001 From: FredGreenfield Date: Tue, 21 Nov 2023 22:59:05 +0900 Subject: [PATCH 1/2] add w5 dicebot --- lib/bcdice/game_system.rb | 1 + .../game_system/WerewolfTheApocalypse5th.rb | 173 + test/data/WerewolfTheApocalypse5th.toml | 2926 +++++++++++++++++ 3 files changed, 3100 insertions(+) create mode 100644 lib/bcdice/game_system/WerewolfTheApocalypse5th.rb create mode 100644 test/data/WerewolfTheApocalypse5th.toml diff --git a/lib/bcdice/game_system.rb b/lib/bcdice/game_system.rb index efb482c5a..b6b1e7ab5 100644 --- a/lib/bcdice/game_system.rb +++ b/lib/bcdice/game_system.rb @@ -239,6 +239,7 @@ require "bcdice/game_system/WaresBlade" require "bcdice/game_system/Warhammer" require "bcdice/game_system/Warhammer4" +require "bcdice/game_system/WerewolfTheApocalypse5th" require "bcdice/game_system/WitchQuest" require "bcdice/game_system/WorldOfDarkness" require "bcdice/game_system/WorldsEndFrontline" diff --git a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb new file mode 100644 index 000000000..b323d42f5 --- /dev/null +++ b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb @@ -0,0 +1,173 @@ +# frozen_string_literal: true + +module BCDice + module GameSystem + class WerewolfTheApocalypse5th < Base + # ゲームシステムの識別子 + ID = 'WerewolfTheApocalypse5th' + + # ゲームシステム名 + NAME = 'Werewolf: The Apocalypse 5th Edition' + + # ゲームシステム名の読みがな + SORT_KEY = 'わあうふるしあほかりふす5' + + # ダイスボットの使い方 + HELP_MESSAGE = <<~MESSAGETEXT + ・判定コマンド(nWAFx+x または nWAIxRx) + WAFコマンドはRageダイスとダイスプールを個別に指定する。 + WAIコマンドはRageダイスをダイスプールの内数として指定する。 + + 例:難易度2、9ダイスプールでRageダイス3個の場合、それぞれ以下のようなコマンドとなる。 + 2WAF6+3 + 2WAI9R3 + + 難易度指定:成功数のカウント、判定成功と失敗、(Rageダイスがある場合)Brutal outcome、Critical処理、Total Failure、Critical Winのチェックを行う + 例) (難易度)WAF(通常ダイス)+(Rageダイス) + (難易度)WAF(通常ダイス) + (難易度)WAI(通常ダイス)R(Rageダイス) + (難易度)WAI(通常ダイス) + + 難易度省略:成功数のカウント、判定失敗、(Rageダイスがある場合)Brutal outcome、Critical処理、Total Failureのチェックを行う + 判定成功チェックを行わない + Critical Winのヒントを出力 + 例) WAF(通常ダイス)+(Rageダイス) + WAF(通常ダイス) + WAI(通常ダイス)R(Rageダイス) + WAI(通常ダイス) + + 難易度0指定:Critical処理と成功数のカウントを行い、全てのチェックを行わない + 例) 0WAF(通常ダイス)+(Rageダイス) + 0WAF(通常ダイス) + 0WAI(通常ダイス)+(Rageダイス) + 0WAI(通常ダイス) + + MESSAGETEXT + + DIFFICULTY_INDEX = 1 + DICE_POOL_RAGE_DICE_NO_INCLUDED_INDEX = 5 + RAGE_DICE_NO_INCLUDED_INDEX = 7 + COMMAND_RAGE_DICE_INCLUDED_INDEX = 9 + DICE_POOL_RAGE_DICE_INCLUDED_INDEX = 10 + RAGE_DICE_INCLUDED_INDEX = 12 + + # 難易度に指定可能な特殊値 + NOT_CHECK_SUCCESS = -1 # 判定成功にかかわるチェックを行わない(判定失敗に関わるチェックは行う) + + register_prefix('\d*(WAF|(WAI\d*(R\d?)?))') + + def eval_game_system_specific_command(command) + m = /\A(\d+)?(((WAF)(\d+)(\+(\d+))?)|((WAI)(\d+)(R(\d+))?))$/.match(command) + unless m + return '' + end + + dice_pool, rage_dice_pool = get_dice_pools(m) + if dice_pool < 0 + return "ダイスプールより多いRageダイス指定はできません。" + end + if rage_dice_pool && rage_dice_pool > 5 + return "5を超えるRageダイス指定はできません。" + end + + dice_text, success_dice, ten_dice, = make_dice_roll(dice_pool) + result_text = "(#{dice_pool}D10" + + if rage_dice_pool + rage_dice_text, rage_success_dice, rage_ten_dice, brutal_result_dice = make_dice_roll(rage_dice_pool) + + brutal_outcome = brutal_result_dice / 2 + ten_dice += rage_ten_dice + success_dice += rage_success_dice + + result_text = "#{result_text}+#{rage_dice_pool}D10) > [#{dice_text}]+[#{rage_dice_text}] " + else + rage_ten_dice = 0 + brutal_outcome = 0 + result_text = "#{result_text}) > [#{dice_text}] " + end + + success_dice += get_critical_success(ten_dice) + + difficulty = m[DIFFICULTY_INDEX] ? m[DIFFICULTY_INDEX].to_i : NOT_CHECK_SUCCESS + + return get_roll_result(result_text, success_dice, ten_dice, rage_ten_dice, brutal_outcome, difficulty) + end + + private + + def get_dice_pools(m) + rage_dice_included_command = m[COMMAND_RAGE_DICE_INCLUDED_INDEX] + if rage_dice_included_command && rage_dice_included_command == "WAI" + # Rage Diceを内数処理するの場合 + rage_dice_pool = m[RAGE_DICE_INCLUDED_INDEX]&.to_i + dice_pool = m[DICE_POOL_RAGE_DICE_INCLUDED_INDEX].to_i - (rage_dice_pool || 0) + else + # Rage DiceがPLによる内数指定の場合 + rage_dice_pool = m[RAGE_DICE_NO_INCLUDED_INDEX]&.to_i + dice_pool = m[DICE_POOL_RAGE_DICE_NO_INCLUDED_INDEX].to_i + end + return dice_pool, rage_dice_pool + end + + def get_roll_result(result_text, success_dice, ten_dice, rage_ten_dice, brutal_outcome, difficulty) + is_critical = ten_dice >= 2 + + if brutal_outcome > 0 && difficulty != 0 + success_dice += 4 + result_text = "#{result_text} [Brutal outcome] 自動失敗、または 成功数=#{success_dice}" + else + result_text = "#{result_text} 成功数=#{success_dice}" + end + + if difficulty > 0 + result_text = "#{result_text} 難易度=#{difficulty}" + if success_dice >= difficulty + result_text = "#{result_text} 差分=#{success_dice - difficulty}" + + if is_critical + result_data = Result.critical("#{result_text}:判定成功! [Critical Win]") + return brutal_outcome > 0 ? result_data.text : result_data + end + result_data = Result.success("#{result_text}:判定成功!") + return brutal_outcome > 0 ? result_data.text : result_data + else + if success_dice == 0 + return Result.fumble("#{result_text}:判定失敗! [Total Failure]") + else + return Result.failure("#{result_text}:判定失敗!") + end + end + elsif difficulty < 0 + if success_dice == 0 + return Result.fumble("#{result_text}:判定失敗! [Total Failure]") + else + if is_critical + result_text = "#{result_text}\n 判定成功なら [Critical Win]" + end + return result_text.to_s + end + end + + # 難易度0指定(=全ての判定チェックを行わない) + return result_text.to_s + end + + def get_critical_success(ten_dice) + # 10の目が2個毎に追加2成功 + return ((ten_dice / 2) * 2) + end + + def make_dice_roll(dice_pool) + dice_list = @randomizer.roll_barabara(dice_pool, 10) + + dice_text = dice_list.join(',') + success_dice = dice_list.count { |x| x >= 6 } + ten_dice = dice_list.count(10) + brutal_result_dice = dice_list.count(1) + dice_list.count(2) + + return dice_text, success_dice, ten_dice, brutal_result_dice + end + end + end +end diff --git a/test/data/WerewolfTheApocalypse5th.toml b/test/data/WerewolfTheApocalypse5th.toml new file mode 100644 index 000000000..5d9835539 --- /dev/null +++ b/test/data/WerewolfTheApocalypse5th.toml @@ -0,0 +1,2926 @@ +# コマンドテスト + +# ========== 通常判定 難易度指定あり ========== # +# ダイス数を 0 個指定(判定失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF0" +output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF6" +output = "(6D10) > [1,2,6,1,2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +success = true +critical = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6 難易度=3 差分=3:判定成功! [Critical Win]" +success = true +critical = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +success = true +critical = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical は出たが判定は失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "5WAF6" +output = "(6D10) > [1,2,2,10,2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4 難易度=3 差分=1:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ダイス数を 0 個指定(判定失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI0" +output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6" +output = "(6D10) > [1,2,6,1,2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +success = true +critical = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6 難易度=3 差分=3:判定成功! [Critical Win]" +success = true +critical = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +success = true +critical = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical は出たが判定は失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "5WAI6" +output = "(6D10) > [1,2,2,10,2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4 難易度=3 差分=1:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ========== 通常判定 難易度指定なし ========== # +# ダイス数を 0 個指定(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF0" +output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ダイス数を 0 個指定(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI0" +output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ========== 全てのチェックを行わない 難易度指定0 ========== # + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ========== Rageダイスあり判定 難易度指定あり ========== # + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +critical = true +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "5WAF4+2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7 難易度=3 差分=4:判定成功!" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10 難易度=3 差分=7:判定成功! [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAF4+4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "6WAF4+2" +output = "(4D10+2D10) > [1,6,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=5 難易度=6:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "5WAF4+2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4 難易度=5:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "1WAF1+5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "1WAF6+0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6R2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6R2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6R2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +critical = true +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "5WAI6R2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI6R2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7 難易度=3 差分=4:判定成功!" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI7R3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10 難易度=3 差分=7:判定成功! [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "3WAI8R4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "6WAI6R2" +output = "(4D10+2D10) > [1,6,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=5 難易度=6:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "5WAI6R2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4 難易度=5:判定失敗!" +failure = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "1WAI6R5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "1WAI6R0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ========== Rageダイスあり判定 難易度指定なし ========== # + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,6,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=5" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF1+5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF6+0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI7R3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI8R4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8\n 判定成功なら [Critical Win]" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI6R0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ========== Rageダイスあり全てのチェックを行わない 難易度指定0 ========== # + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,1] 成功数=2" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF4+2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAF4+2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,1] 成功数=2" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6R2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "0WAI6R2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ========== 通常判定 難易度指定あり(シークレット) ========== # +# ダイス数を 0 個指定(判定失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF0" +output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF6" +output = "(6D10) > [1,2,6,1,2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +success = true +critical = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6 難易度=3 差分=3:判定成功! [Critical Win]" +success = true +critical = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +success = true +critical = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical は出たが判定は失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S5WAF6" +output = "(6D10) > [1,2,2,10,2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4 難易度=3 差分=1:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ダイス数を 0 個指定(判定失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI0" +output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6" +output = "(6D10) > [1,2,6,1,2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +success = true +critical = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6 難易度=3 差分=3:判定成功! [Critical Win]" +success = true +critical = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +success = true +critical = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical は出たが判定は失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S5WAI6" +output = "(6D10) > [1,2,2,10,2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4 難易度=3 差分=1:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ========== 通常判定 難易度指定なし(シークレット) ========== # +# ダイス数を 0 個指定(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF0" +output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ダイス数を 0 個指定(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI0" +output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 10が奇数個) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6" +output = "(6D10) > [1,10,6,10,2,10] 成功数=6\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Critical Win? 2ペア) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6" +output = "(6D10) > [1,10,10,10,2,10] 成功数=8\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数を 11 個指定(判定成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI11" +output = "(11D10) > [1,2,5,2,4,6,3,5,6,6,6] 成功数=4" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 4 }, + { sides = 10, value = 6 }, + { sides = 10, value = 3 }, + { sides = 10, value = 5 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, +] + +# ========== 全てのチェックを行わない 難易度指定0(シークレット) ========== # + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6" +output = "(6D10) > [1,2,6,8,2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6" +output = "(6D10) > [1,2,5,1,2,5] 成功数=0" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6" +output = "(6D10) > [1,2,6,10,2,10] 成功数=5" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ========== Rageダイスあり判定 難易度指定あり(シークレット) ========== # + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +critical = true +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S5WAF4+2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7 難易度=3 差分=4:判定成功!" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10 難易度=3 差分=7:判定成功! [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAF4+4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S6WAF4+2" +output = "(4D10+2D10) > [1,6,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=5 難易度=6:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S5WAF4+2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4 難易度=5:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S1WAF1+5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S1WAF6+0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3 難易度=3 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6R2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1 難易度=3:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6R2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6R2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5 難易度=3 差分=2:判定成功! [Critical Win]" +critical = true +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S5WAI6R2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4 難易度=5:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI6R2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7 難易度=3 差分=4:判定成功!" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI7R3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10 難易度=3 差分=7:判定成功! [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S3WAI8R4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8 難易度=3 差分=5:判定成功! [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S6WAI6R2" +output = "(4D10+2D10) > [1,6,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=5 難易度=6:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S5WAI6R2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4 難易度=5:判定失敗!" +failure = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S1WAI6R5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S1WAI6R0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1 難易度=1 差分=0:判定成功!" +success = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ========== Rageダイスあり判定 難易度指定なし(シークレット) ========== # + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,6,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=5" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF4+2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF1+5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAF6+0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(通常成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,2,6,1]+[2,5] 成功数=1" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Total Failure) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0:判定失敗! [Total Failure]" +failure = true +fumble = true +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Rageダイスが絡んだCriticalだが失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,2,5,10]+[2,10] 成功数=4\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗だが、判定が有効な状態で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,6,6,8]+[1,2] [Brutal outcome] 自動失敗、または 成功数=7" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 7 個(Brutal outcome で自動失敗だが、判定が有効な状態でCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI7R3" +output = "(4D10+3D10) > [1,6,10,8]+[1,2,10] [Brutal outcome] 自動失敗、または 成功数=10\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 8 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 8 個(Brutal outcome で自動失敗だが、判定が有効な状態で、かつRageダイスのみでCritical Win) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI8R4" +output = "(4D10+4D10) > [1,2,5,2]+[1,2,10,10] [Brutal outcome] 自動失敗、または 成功数=8\n 判定成功なら [Critical Win]" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome で自動失敗、かつ判定が有効な状態でも通常ダイスで成功が出ていない失敗) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R2" +output = "(4D10+2D10) > [1,5,5,2]+[1,2] [Brutal outcome] 自動失敗、または 成功数=4" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが5個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R5" +output = "(1D10+5D10) > [1]+[5,5,3,6,2] 成功数=1" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ダイス数 6 個(Rageダイスが0個指定で成功) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "SWAI6R0" +output = "(6D10+0D10) > [1,5,5,3,6,2]+[] 成功数=1" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 5 }, + { sides = 10, value = 5 }, + { sides = 10, value = 3 }, + { sides = 10, value = 6 }, + { sides = 10, value = 2 }, +] + +# ========== Rageダイスあり全てのチェックを行わない 難易度指定0(シークレット) ========== # + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF4+2" +output = "(4D10+2D10) > [1,2,6,8]+[2,1] 成功数=2" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF4+2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAF4+2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(通常成功?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,10] 成功数=3" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ダイス数 6 個(Brutal outcome?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6R2" +output = "(4D10+2D10) > [1,2,6,8]+[2,1] 成功数=2" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 1 }, +] + +# ダイス数 6 個(Total Failure?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6R2" +output = "(4D10+2D10) > [1,2,5,1]+[2,5] 成功数=0" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 5 }, +] + +# ダイス数 6 個(Critical Win?) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "S0WAI6R2" +output = "(4D10+2D10) > [1,2,6,10]+[2,10] 成功数=5" +secret = true +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 10 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# ========== エラーコマンド ========== # + +# ダイスプールより多いRageダイス指定 +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI3R4" +output = "ダイスプールより多いRageダイス指定はできません。" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# 5を超えるRageダイス指定(WAI) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAI7R6" +output = "5を超えるRageダイス指定はできません。" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] + +# 5を超えるRageダイス指定(WAF) +[[ test ]] +game_system = "WerewolfTheApocalypse5th" +input = "WAF4+6" +output = "5を超えるRageダイス指定はできません。" +rands = [ + { sides = 10, value = 1 }, + { sides = 10, value = 2 }, + { sides = 10, value = 6 }, + { sides = 10, value = 8 }, + { sides = 10, value = 2 }, + { sides = 10, value = 10 }, +] \ No newline at end of file From 46eee643c76e6bc311a071faa7f532570119e311 Mon Sep 17 00:00:00 2001 From: FredGreenfield Date: Thu, 23 Nov 2023 21:39:37 +0900 Subject: [PATCH 2/2] rubocop warning fixed --- lib/bcdice/game_system/WerewolfTheApocalypse5th.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb index b323d42f5..56573da10 100644 --- a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb +++ b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb @@ -110,7 +110,7 @@ def get_dice_pools(m) return dice_pool, rage_dice_pool end - def get_roll_result(result_text, success_dice, ten_dice, rage_ten_dice, brutal_outcome, difficulty) + def get_roll_result(result_text, success_dice, ten_dice, _rage_ten_dice, brutal_outcome, difficulty) is_critical = ten_dice >= 2 if brutal_outcome > 0 && difficulty != 0