Class: BCDice::GameSystem::VampireTheMasquerade5th
- Defined in:
- lib/bcdice/game_system/VampireTheMasquerade5th.rb
Constant Summary collapse
- ID =
ゲームシステムの識別子
'VampireTheMasquerade5th'- NAME =
ゲームシステム名
'ヴァンパイア:ザ・マスカレード第5版'- SORT_KEY =
ゲームシステム名の読みがな
'うあんはいあさますかれえと5'- HELP_MESSAGE =
ダイスボットの使い方
<<~MESSAGETEXT ・判定コマンド(nVMFx+x または nVMIxHx) VMFコマンドはハンガーダイスとダイスプールを個別に指定する。 VMIコマンドはハンガーダイスをダイスプールの内数として指定する。 例:難易度2、9ダイスプールでハンガーダイス3個の場合、それぞれ以下のようなコマンドとなる。 2VMF6+3 2VMI9H3 難易度指定:達成数のカウント、判定成功と失敗、クリティカル処理、クリティカル成功、完全失敗のチェックを行う (ハンガーダイスがある場合)凄惨なるクリティカルと獣の過ちチェックを行う 例) (難易度)VMF(通常ダイス)+(ハンガーダイス) (難易度)VMF(通常ダイス) (難易度)VMI(通常ダイス)H(ハンガーダイス) (難易度)VMI(通常ダイス) 難易度省略:達成数のカウント、判定失敗、クリティカル処理、完全失敗、(ハンガーダイスがある場合)獣の過ちチェックを行う 判定成功、凄惨なるクリティカルのチェックを行わない クリティカル成功、(ハンガーダイスがある場合)獣の過ち、凄惨なるクリティカルのヒントを出力 例) VMF(通常ダイス)+(ハンガーダイス) VMF(通常ダイス) VMI(通常ダイス)H(ハンガーダイス) VMI(通常ダイス) 難易度0指定:クリティカル処理と達成数のカウントを行い、全てのチェックを行わない 例) 0VMF(通常ダイス)+(ハンガーダイス) 0VMF(通常ダイス) 0VMI(通常ダイス)+(ハンガーダイス) 0VMI(通常ダイス) MESSAGETEXT
- DIFFICULTY_INDEX =
1- DICE_POOL_HUNGER_DICE_NO_INCLUDED_INDEX =
5- HUNGER_DICE_NO_INCLUDED_INDEX =
7- COMMAND_HUNGER_DICE_INCLUDED_INDEX =
9- DICE_POOL_HUNGER_DICE_INCLUDED_INDEX =
10- HUNGER_DICE_INCLUDED_INDEX =
12- NOT_CHECK_SUCCESS =
難易度に指定可能な特殊値
-1 # 判定成功にかかわるチェックを行わない(判定失敗に関わるチェックは行う)
Instance Attribute Summary
Attributes inherited from Base
#d66_sort_type, #default_cmp_op, #default_target_number, #randomizer, #reroll_dice_reroll_threshold, #round_type, #sides_implicit_d, #upper_dice_reroll_threshold
Instance Method Summary collapse
Methods inherited from Base
#change_text, #check_result, command_pattern, #enable_debug, #enabled_d9?, eval, #eval, #grich_text, #initialize, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?
Methods included from Translate
Constructor Details
This class inherits a constructor from BCDice::Base
Instance Method Details
#eval_game_system_specific_command(command) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/bcdice/game_system/VampireTheMasquerade5th.rb', line 60 def eval_game_system_specific_command(command) m = /\A(\d+)?(((VMF)(-?\d+)(\+(\d+))?)|((VMI)(-?\d+)(H(\d+))?))$/.match(command) unless m return '' end dice_pool, hunger_dice_pool = get_dice_pools(m) if hunger_dice_pool > 5 return "ハンガーダイス指定は5ダイスが最大です。" end dice_text, success_dice, ten_dice, = make_dice_roll(dice_pool) result_text = "(#{dice_pool}D10" if hunger_dice_pool >= 0 hunger_dice_text, hunger_success_dice, hunger_ten_dice, hunger_botch_dice = make_dice_roll(hunger_dice_pool) ten_dice += hunger_ten_dice success_dice += hunger_success_dice result_text = "#{result_text}+#{hunger_dice_pool}D10) > [#{dice_text}]+[#{hunger_dice_text}] " else hunger_ten_dice = 0 hunger_botch_dice = 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, hunger_ten_dice, hunger_botch_dice, difficulty) end |