Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Malin Freeborn
config
Commits
51a935a2
Unverified
Commit
51a935a2
authored
1 year ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
fit statboxes into two rows
parent
8334c997
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs.tex
+2
-4
2 additions, 4 deletions
docs.tex
stats.sty
+17
-3
17 additions, 3 deletions
stats.sty
with
19 additions
and
7 deletions
docs.tex
+
2
−
4
View file @
51a935a2
...
...
@@ -38,11 +38,9 @@ Which then makes a male dragon called ``Bob'':
You can summon dozens of monsters, including
\verb
"
humansoldier
"
,
\verb
"
basilisk
"
, and
\verb
"
\ghoul
"
(see
\verb
"
monsters.tex
"
for all the examples).
Placing a number after
i
t changes the number of
boxe
s.
Placing a number after t
he
\verb
"
\T
"
symbol
changes the number of
rows of boxes to track stat
s.
\ghoul
[\npc{\T[3]
\D
}{
5 Ghouls
}
]
noApp
\arabic
{
noAppearing
}
\ghoul
[\npc{\T[5]
\D
}{
5 Ghouls
}
]
\subsection
{
Individual NPCs
}
...
...
This diff is collapsed.
Click to expand it.
stats.sty
+
17
−
3
View file @
51a935a2
...
...
@@ -84,6 +84,17 @@
}
%
}
\newcommand\manyBoxes
[1]
{
\setcounter
{
enc
}{
\value
{
noAppearing
}}
\whileboolexpr
{
test
{
\ifnumcomp
{
\value
{
enc
}}{
>
}{
0
}}}{
%
\ifnumodd
{
\value
{
enc
}}
%
{&
\Repeat
{
\value
{
#1
}}{
\sqn
}
\\
}
%
{
\Repeat
{
\value
{
#1
}}{
\sqn
}
}
%
\addtocounter
{
enc
}{
-1
}
}
%
\ifnumodd
{
\value
{
noAppearing
}}{}{
\\
}
}
%%%%%%%%%%%%%%%%%%%% Character Generation %%%%%%%%%%%%%%%%%%%%
%
...
...
@@ -487,12 +498,15 @@ You don't need to fall unconscious when making a Vitality check)%
}{
%
\noindent
\begin{tabular}
{
ll
}
HP
\arabic
{
hp
}
\Repeat
{
\value
{
noAppearing
}}{&
\Repeat
{
\value
{
hp
}}{
\sqn
}
\\
}
HP
\arabic
{
hp
}
\manyBoxes
{
hp
}
\ifnum\value
{
mp
}
>0
MP
\arabic
{
mp
}
\Repeat
{
\value
{
noAppearing
}}{&
\Repeat
{
\value
{
mp
}}{
\sqn
}
\\
}
MP
\arabic
{
mp
}
\manyBoxes
{
mp
}
\fi
\ifnum\value
{
sp
}
>0
SP
\arabic
{
sp
}
\Repeat
{
\value
{
noAppearing
}}{&
\Repeat
{
\value
{
sp
}}{
\sqn
}
\\
}
SP
\arabic
{
sp
}
\manyBoxes
{
sp
}
\fi
\end{tabular}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment