DND-5e-LaTeX-Template
DND-5e-LaTeX-Template copied to clipboard
Reset DndAreaCounter in new section
I think it would make sense to automatically reset DndAreaCounter
when entering a new section
, or at least a new chapter
.
Most people will want to have a new counter instance when they start a new section (which is also what official adventure modules do), and those that don't can still manually set the counter to override this behaviour.
Am I overlooking a use-case? If this is a feature that's welcome, I'd be happy to open a PR for it.
I started writing a campaign module and would be happy to see this functionality implemented. It's a year later, but I think this is high-value as well.
Putting the following in my preamble did the trick for me:
\makeatletter @addtoreset{DndAreaCounter}{section} \makeatother
\DndResetAreas works too to reset at a specific point manually. Adding BarbaricBagra's preamble didn't work for me.