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
54358d01
Unverified
Commit
54358d01
authored
2 years ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
distinguish between example and ally statblocks
parent
02733aad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
stats.sty
+11
-3
11 additions, 3 deletions
stats.sty
test.tex
+8
-0
8 additions, 0 deletions
test.tex
with
19 additions
and
3 deletions
stats.sty
+
11
−
3
View file @
54358d01
...
...
@@ -4,6 +4,9 @@
\newtoggle
{
bestiarychapter
}
\settoggle
{
bestiarychapter
}{
false
}
\newtoggle
{
allyCharacter
}
\settoggle
{
allyCharacter
}{
false
}
% _ _
% ___| |_ __ _| |_
% / __| __/ _` | __|
...
...
@@ -431,7 +434,10 @@ You don't need to fall unconscious when making a Vitality check)%
\iftoggle
{
debug
}{
str:
\arabic
{
str
}
, strb:
\arabic
{
strb
}
, dex:
\arabic
{
dex
}
, dexb:
\arabic
{
dexb
}
, spd:
\arabic
{
spd
}
, spdb:
\arabic
{
spdb
}
,att:
\arabic
{
att
}
, damage:
\arabic
{
damage
}
, Attack total:
\arabic
{
attackXPtotal
}
, Def Total:
\arabic
{
defenceXPtotal
}}{}
\addtocounter
{
att
}{
7
}
% Stats for allies don't need to show Combat +1 as 'TN 8 to hit', they just need to show '+1'.
\iftoggle
{
allyCharacter
}{}{
\addtocounter
{
att
}{
7
}
}
\addtocounter
{
att
}{
\value
{
dex
}}
\addtocounter
{
spd
}{
3
}
\ifnum\value
{
weight
}
>
\value
{
str
}
% now to compute encumbrance
...
...
@@ -443,7 +449,9 @@ You don't need to fall unconscious when making a Vitality check)%
\addtocounter
{
weight
}{
-5
}
\fi
\begin{center}
\scshape
Att
\arabic
{
att
}
\ifnumcomp
{
\value
{
dexb
}}{
>
}{
0
}{
\addtocounter
{
att
}{
\value
{
dexb
}}
(
\arabic
{
att
}
)
}{}
,
\scshape
Att
\iftoggle
{
examplecharacter
}{$
2
D
6
$}{}
%
\iftoggle
{
allyCharacter
}{
\ifnum\value
{
att
}
>0 +
\fi
}{}
%
\arabic
{
att
}
\ifnumcomp
{
\value
{
dexb
}}{
>
}{
0
}{
\addtocounter
{
att
}{
\value
{
dexb
}}
(
\arabic
{
att
}
)
}{}
,
AP
\arabic
{
spd
}
\ifnumcomp
{
\value
{
spdb
}}{
>
}{
0
}
%
{
\addtocounter
{
spd
}{
\value
{
spdb
}}
(
\arabic
{
spd
}
)
}{}
\ifnumcomp
{
\value
{
heft
}}{
>
}{
1
}{
:
\arabic
{
heft
}}{}
,
\addtocounter
{
damage
}{
\value
{
str
}}
...
...
@@ -481,7 +489,7 @@ You don't need to fall unconscious when making a Vitality check)%
{}
%
\iftoggle
{
examplec
haracter
}{}{
\iftoggle
{
allyC
haracter
}{}{
\calculateXP
}
\end{center}
%
...
...
This diff is collapsed.
Click to expand it.
test.tex
+
8
−
0
View file @
54358d01
...
...
@@ -451,12 +451,18 @@ When using a bestiary chapter, the stats appear as dice rolls, rather than fixed
\subsection
{
Test subsection
}
\settoggle
{
allyCharacter
}{
true
}
\elf
\settoggle
{
examplecharacter
}{
true
}
\lipsum
[3]
\elf
\settoggle
{
allyCharacter
}{
false
}
\subsubsection
{
Test sub-sub-section
}
\lipsum
[10]
...
...
@@ -470,6 +476,8 @@ When using a bestiary chapter, the stats appear as dice rolls, rather than fixed
\elf
\settoggle
{
examplecharacter
}{
false
}
\lipsum
[10]
\section
{
Last Section
}
...
...
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