sheet-parser/sheet-parser.1

363 lines
5.4 KiB
Groff
Raw Normal View History

2022-08-23 20:58:04 +02:00
.\" Generated by scdoc 1.11.2
.\" Complete documentation for this program is not available as a GNU info page
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.nh
.ad l
.\" Begin generated content:
.TH "sheet-parser" "1" "2022-08-23"
.P
2022-08-21 01:12:22 +02:00
.SH NAME
2022-08-23 20:58:04 +02:00
.P
sheet-parser - D&D sheet parser utility written in go
.P
2022-08-21 01:12:22 +02:00
.SH SYNOPSIS
2022-08-23 20:58:04 +02:00
.P
\fBsheet-parser\fR [\fB-f\fR \fI<file>\fR] [\fB--file\fR \fI<file>\fR]
.P
\fBsheet-parser\fR [\fB-t\fR] [\fB--trivia\fR]
.P
\fBsheet-parser\fR [\fB-v\fR] [\fB--verbose\fR]
.P
\fBsheet-parser\fR [\fB--advantage\fR] [\fB--disadvantage\fR]
.P
\fBsheet-parser\fR [\fB--skill-list\fR] [\fB--stat-list\fR]
.P
\fBsheet-parser\fR [\fB--stat\fR \fI<stat>\fR] [\fB--save\fR \fI<stat>\fR] [\fB--skill\fR \fI<skill>\fR]
.P
2022-08-21 01:12:22 +02:00
.SH DESCRIPTION
2022-08-23 20:58:04 +02:00
.P
\fBsheet-parser\fR is a little utility written with the purpose of being able to parse 5e D&D sheets.\&
Digging through all the different stats and skills and keeping track of their modifiers got a rather tiresome after a while.\&
.P
This thing makes use of some of the functionality of dice-roller, mainly the way it deals with advantage and disadvantage.\&
.P
2022-08-21 01:12:22 +02:00
.SH OPTIONS
2022-08-23 20:58:04 +02:00
.P
\fB-f --file\fR
.RS 4
Specify path to character sheet.\& Example character sheet can be found at
\&'\&/etc/sheet-parser/example.\&json'\&
.P
.RE
\fB-v --verbose\fR
.RS 4
Show more information; to be used in conjunction with \fB--skill-list\fR or
\fB--stat-list\fR
.P
.RE
\fB-t --trivia\fR
.RS 4
Used to print character sheet'\&s name, race, class, level and proficiency
bonus
.P
.RE
\fB--stat\fR \fI<stat>\fR
.RS 4
Roll a stat check, standard stats can be printed using
\fB--stat-list\fR and are also listed in the a dedicated section
.P
.RE
\fB--save\fR \fI<stat>\fR
.RS 4
Roll a saving throw, standard stats can be printed using
\fB--stat-list\fR and are also listed in the a dedicated section
.P
.RE
\fB--skill\fR \fI<skill>\fR
.RS 4
Roll a skill check, standard stats can be printed using
\fB--skill-list\fR and are also listed in the a dedicated section
.P
.RE
\fB--stat-list\fR
.RS 4
Print list of standard stats
.P
.RE
\fB--skill-list\fR
.RS 4
Print list of standard skills
.P
.RE
\fB-v --verbose\fR
.RS 4
Print given character sheet'\&s scores and modifiers; to be used in
conjunction with \fB--stat-list\fR and \fB--skill-list\fR
.P
.RE
\fB--advantage\fR
.RS 4
Roll a check with 2d20 and take the highest number; to be used in
conjunction with \fB--save\fR \fB--skill\fR or \fB--stat\fR
.P
.RE
\fB--disadvantage\fR
.RS 4
Roll a check with 2d20 and take the lowest number; to be used in
conjunction with \fB--save\fR \fB--skill\fR or \fB--stat\fR
.P
.RE
2022-08-23 18:13:02 +02:00
.SH STATS & SKILLS
2022-08-23 20:58:04 +02:00
\fBsheet-parser\fR makes use of stats and skills according to the rules of D&D 5e.\&
This means that the modifies of all the skills and stats are based on the scores
of the stats.\&
.P
\fBDefault stats are:\fR
.RS 4
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
strength
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
dexterity
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
constitution
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
intelligence
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
wisdom
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
charisma
.RE
2022-08-23 20:58:04 +02:00
.RE
\fBDefault skills are:\fR
.RS 4
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
athletics
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
acrobatics
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
sleight_of_hand
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
stealth
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
arcana
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
history
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
investigation
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
nature
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
religion
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
animal_handling
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
insight
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
medicine
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
perception
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
survival
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
deception
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
intimidation
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
performance
2022-08-23 20:58:04 +02:00
.RE
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.IP \(bu 4
.\}
2022-08-23 18:13:02 +02:00
persuasion
2022-08-23 20:58:04 +02:00
.RE
.P
.RE
.SH CUSTOM CHARACTER SHEETS
To create a custom character sheet, copy the example file to some place where
you can edit it.\&
.P
.nf
.RS 4
cp /etc/sheet-parser/example\&.json foo\&.json
.fi
.RE
.P
From here, the most important fields are the stats scores, the proficiency and
expertise booleans; and the character level as these determine the results of
your rolls.\&
.P
.nf
.RS 4
"misc":{
"level": 1,
\&.\&.\&.
},
"stats":[
{"statName":"strength", "score":20, "proficient":false },
{"statName":"dexterity", "score":1, "proficient":false },
\&.\&.\&.
],
"skills":[
{"skillName":"athletics", "proficient":true, "expertise":false, "baseStat":"strength"},
{"skillName":"acrobatics", "proficient":false, "expertise":false, "baseStat":"dexterity"}
\&.\&.\&.
]
.fi
2022-08-23 18:13:02 +02:00
.RE