-
Notifications
You must be signed in to change notification settings - Fork 326
Description
This issue might be (partly) related to the issue discussed in Issue #374.
Greetings,
I have started used the template in TeXstudio using the newest version of TeX Live (I assume so, I just updated it today to be sure), and I am running into some problems.
Firstly, the DndArea and DndSubArea commands do not work, and I get an identical result as in #374.
Secondly, when using the DndMonsterAttack, I notice that the attack type always defaults to "Melee or Ranged Weapon Attack", even if I am using DndMonsterMelee or DndMonsterRanged. Also, the range of the attack is subsequently always set to MELEE REACH or RANGE.
I note that this is an issue I am experiencing in TeXstudio, as this problem does not occur in Overleaf.
Here is an image from my MWE showing my problem:

And here is the code to the MWE:
`\documentclass[letterpaper,twocolumn,openany,nodeprecatedcode]{dndbook}
\usepackage[english]{babel}
\begin{document}
\DndArea{Village of Hommlet}
This is the village of hommlet.
\DndSubArea{Inn of the Welcome Wench}
Inside the village is the inn of the Welcome Wench.
\DndSubArea{Blacksmith's Forge}
There's a blacksmith in town, too.
\DndArea{Foo's Castle}
This is foo's home, a hovel of mud and sticks.
\DndSubArea{Moat}
This ditch has a board spanning it.
\DndSubArea{Entrance}
A five-foot hole reveals the dirt floor illuminated by a hole in the roof.
\begin{DndMonster}[width=\textwidth]{Monster Foo}
\begin{multicols}{2}
\DndMonsterType{Medium aberration (metasyntactic variable), neutral evil}
% If you want to use commas in the key values, enclose the values in braces.
\DndMonsterBasics[
armor-class = {9 (12 with \emph{mage armor})},
hit-points = {\DndDice{3d8 + 3}},
speed = {30 ft., fly 30 ft.},
]
\DndMonsterAbilityScores[
str = 12,
dex = 8,
con = 13,
int = 10,
wis = 14,
cha = 15,
]
\DndMonsterDetails[
%saving-throws = {Str +0, Dex +0, Con +0, Int +0, Wis +0, Cha +0},
%skills = {Acrobatics +0, Animal Handling +0, Arcana +0, Athletics +0, Deception +0, History +0, Insight +0, Intimidation +0, Investigation +0, Medicine +0, Nature +0, Perception +0, Performance +0, Persuasion +0, Religion +0, Sleight of Hand +0, Stealth +0, Survival +0},
%damage-vulnerabilities = {cold},
%damage-resistances = {bludgeoning, piercing, and slashing from nonmagical attacks},
%damage-immunities = {poison},
%condition-immunities = {poisoned},
senses = {darkvision 60 ft., passive Perception 10},
languages = {Common, Goblin, Undercommon},
challenge = 1,
]
\DndMonsterSection{Actions}
%Default values are shown commented out
\DndMonsterAttack[
name=Dagger,
%distance=both, % valid options are in the set {both,melee,ranged},
%type=weapon, %valid options are in the set {weapon,spell}
mod=+3,
%reach=5,
%range=20/60,
%targets=one target,
dmg=\DndDice{1d4+1},
dmg-type=piercing,
%plus-dmg=,
%plus-dmg-type=,
%or-dmg=,
%or-dmg-when=,
%extra=,
]
%\DndMonsterMelee calls \DndMonsterAttack with the melee option
\DndMonsterMelee[
name=Flame Tongue Longsword,
mod=+3,
%reach=5,
%targets=one target,
dmg=\DndDice{1d8+1},
dmg-type=slashing,
plus-dmg=\DndDice{2d6},
plus-dmg-type=fire,
or-dmg=\DndDice{1d10+1},
or-dmg-when=if used with two hands,
%extra=,
]
%\DndMonsterRanged calls \DndMonsterAttack with the ranged option
\DndMonsterRanged[
name=Assassin's Light Crossbow,
mod=+1,
range=80/320,
dmg=\DndDice{1d8},
dmg-type=piercing,
%plus-dmg=,
%plus-dmg-type=,
%or-dmg=,
%or-dmg-when=,
extra={, and the target must make a DC 15 Constitution saving throw, taking 24 (7d6) poison damage on a failed save, or half as much damage on a successful one}
]
\end{multicols}
\end{DndMonster}
\end{document}`