View Full Version : Critical Confirmation Roll

February 10th, 2011, 12:34
Does anyone know of any way I can stop the program from automatically rolling a confirmation roll after a crit? We do not use them in my campaign and it is very annoying. If anyone has any input on this or about how to modify the ruleset, I would appreciate it. Thanks.

February 10th, 2011, 13:34
which ruleset are you using?

if it is d20_JPG then critconfirm is contained in the chat_chat.lua file within the processDiceLanded() function.

I don't have access to FG right now, so I can't give more precise instructions, but as I recall there is quite alot of code (20-30 lines) that need to be hacked away or "commented out"

if you are struggling to find the right entries I can have a look when I get home tonight

February 10th, 2011, 18:57
Yes, I am using d20 Jpg. Thank you very much, I will look into it and let you know if I got it to work.

February 10th, 2011, 19:01
I just had a look at the code the lines you need to remove are
lines 184 to 206

if not isMiss and (dragtype == "attack" or dragtype == "fullattack") then
-- Determine the crit range
local crit_threshold = 20;
local crit_text = string.match(base_desc, "%[CRIT (%d+)%]");
if crit_text then
crit_threshold = tonumber(crit_text);
if not crit_threshold then
crit_threshold = 20;

-- Check for critical threat
if first_die >= crit_threshold then
isSpecialHit = true;
isCritical = true;
result_str = result_str .. " [CRITICAL THREAT]";

-- Handle critical threat rolls
if isCritical then
ChatManager.d20Check("critconfirm", draginfo.getNumberData(), base_desc .. " [CONFIRM]", custom);

February 10th, 2011, 19:09
Awesome! Thanks a lot!