DND-5e-LaTeX-Template icon indicating copy to clipboard operation
DND-5e-LaTeX-Template copied to clipboard

Reset DndAreaCounter in new section

Open timvdalen opened this issue 4 years ago • 3 comments

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.

timvdalen avatar Jan 29 '21 13:01 timvdalen

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.

scottytk avatar Feb 04 '22 04:02 scottytk

Putting the following in my preamble did the trick for me:

\makeatletter @addtoreset{DndAreaCounter}{section} \makeatother

BarbaricBagra avatar Jul 14 '23 16:07 BarbaricBagra

\DndResetAreas works too to reset at a specific point manually. Adding BarbaricBagra's preamble didn't work for me.

EnteQuackQuack avatar Oct 14 '23 15:10 EnteQuackQuack