Thread: Damage Reroll Feats for 5E
-
January 9th, 2026, 15:55 #51
I addressed it for the moment.
The base code only allows one handler, and there's no way for extensions to get any existing handler. So any handler that runs last will be the only one that runs.
My extension overrides the code that registers handlers, and I set it to run early. So, if another extension tries to register, I can capture it and the dispatch to it.
The devs said they will change the code to add a way for extensions to get any registered handler, so we can "chain" ourselves. Not sure when that will happen.DISCORD / EXTENSIONS:
Combat: Crit Dmg Options, Effect FX, Enlarge/Reduce, Flavorful Names, Hidden Death Saves, Lingering Injuries (PL), Major Injuries (DK), Special Dmg FX, Spell FX, Summoner, Weapon Dmg Props
Skills: Crits & Fumbles, Fail Forward, Toolkit Actions
DM Tools: DB Search, Dynamic Pricing, Party Info, Redacted Table Fields
For Fun: Achievement Tracker, Boar Riding, Dragon Cards, Drink & Sink, Fishing Fun, Seven Seas, Tarot, Turtle Race
Puzzles: Cryptex, Volvelle, Word Key
-
February 25th, 2026, 05:44 #52
The savage attacker is only rerolling one of the two weapon dice now. Not sure what changed?
Using Greatsword. it only offers to reroll the first of the two d6's rolled.
I fixed it my adding a bit of code to the CountD, also added a check to make sure it ignored other dice that might get added by CT effects, so it only rerolls the weapon dice.
local CountD = 0;
local nOrigClauses = tonumber(rRoll.nOrigClauses) or 1;
local nClauseCount = 0;
local sEffectsExpr = string.match(rRoll.sDesc, "%[EFFECTS (.-)%]") or "";
local aEffectsDice = DiceManager.convertStringToDice(sEffectsExpr) or {};
local nEffectsDice = #aEffectsDice;
for sDmgType, sDmgExpr in string.gmatch(rRoll.sDesc, "%[TYPE:%s*(.-)%s*%(([^)]*)%)%]") do
nClauseCount = nClauseCount + 1;
if nClauseCount > nOrigClauses then break; end
local lowerType = sDmgType:lower();
if string.match(lowerType, "slashing") or string.match(lowerType, "piercing") or string.match(lowerType, "bludgeoning") then
local sDiceExpr = string.match(sDmgExpr, "(.-)=%d*") or sDmgExpr; -- Strip =total if present
local aTempDice = DiceManager.convertStringToDice(sDiceExpr) or {};
CountD = CountD + math.max(0, #aTempDice - nEffectsDice); -- Subtract effects dice
end
endLast edited by bwatford; February 25th, 2026 at 07:07.
-
February 25th, 2026, 14:08 #53
sorry
the extension should be making sure it is just the weapon dice already.
and I know it was rolling all damage die before.
I know there were alot of changes in the last update, but I have been unable to test my extensions. I am in the process of selling my house and moving so my free time has been non-existent. I know a couple of problems popped up with great weapon master as well so I will be looking into fixing this extension As soon as I can.
Sorry to everybody being affected.Last edited by lprchaun; February 25th, 2026 at 14:52.
-
February 25th, 2026, 14:52 #54
-
February 27th, 2026, 19:26 #55
Hello
I just bought and installed the extension and it works as inteded (5e, 2024).
If I may, i want to add a suggestion. It would be nice to have an option to select, if the feat is automatically used or if the promt should appear. It could be nice for if a player does not want to confirme eatch round the only attack it can make.
Have a nice day
Greetings
Frectorius
-
March 16th, 2026, 19:11 #56
Updating. I am still in the process of moving so I am between two houses (not to mention fixing issues with house that is being sold, etc.) so I have not had time to address the issues that recently popped up.
I want everybody to know I have not forgotten will be getting to these items as soon as I can!
-
March 18th, 2026, 12:15 #57
Looks like on TEST:
When any damage is rolled:
[3/18/2026 7:10:56 AM] [ERROR] Handler error: [string "DamageRerollFeats:..nager_action_damage.lua"]:57: attempt to call global 'onDamageRoll' (a nil value)
Passing it along
-
May 5th, 2026, 17:02 #58
-
May 12th, 2026, 21:49 #59Warrior-Priest
- Join Date
- Oct 2018
- Location
- Salinas, CA
- Posts
- 54
Hi,
With this active, every attempt at rolling damage comes up with this error (same as reported above):
[ERROR] Handler error: [string "DamageRerollFeats:..nager_action_damage.lua"]:57: attempt to call global 'onDamageRoll' (a nil value)Untitled.pngLast edited by coyote670; May 12th, 2026 at 21:53.
-
May 17th, 2026, 15:27 #60
Still broken on release. Do you have a repo? I could have a PR up pretty quick to fix.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote


Bookmarks