You can find the git repo for this project on SourceHut: https://git.sr.ht/~bosco/asciidoctor-p2e.
This extension for Asciidoctor is designed to make it easier to create content to work with the Pathfinder Second Edition roleplaying system. Currently it only supports NPC/Creature stat blocks.
Usage
Once the asciidoctor-p2e
gem is installed you can run
asciidoctor -r asciidoctor-p2e <input>
to create your output.
Stat Blocks
A new block of type stat
can be used to create a stat block from
TOML input. For example the following TOML:
[stat]
--
name = "Dragon Cultist"
level = "1"
tags = ["ne","medium","humaniod"]
perception = "+4"
senses = "low-light vision"
skills = ["Athletics +6","Intimidation +2","Survival +4"]
[attributes]
cha = "-1"
con = "+2"
dex = "+1"
int = "-2"
str = "+3"
wis = "+1"
[defense]
ac = "16"
fort = "+7"
ref = "+6"
will = "+4"
hp = "20"
immunities = ""
reactions = ["Attack of Opportunity"]
[offense]
speed = "25"
otherSpeeds = ""
[[offense.attacks]]
actions = 1
damage = "1d10+3 slashing"
name = "Melee"
text = "claws +8"
[[offense.attacks]]
actions = 2
name = "Special"
text = """\
(fire) The dragon cultist breathes flames in a 15-foot cone that deals 2d6 \
fire damage to each creature within the area (DC 14 basic Reflex save). \
The dragon cultist can't use Breath Weapon again for 1d4 rounds.\
"""
--
Will create the following output:
name = "Dragon Cultist" level = "1" tags = ["ne","medium","humaniod"] perception = "+4" senses = "low-light vision" skills = ["Athletics +6","Intimidation +2","Survival +4"]
cha = "-1" con = "+2" dex = "+1" int = "-2" str = "+3" wis = "+1"
ac = "16" fort = "+7" ref = "+6" will = "+4" hp = "20" immunities = "" reactions = ["Attack of Opportunity"]
speed = "25" otherSpeeds = ""
actions = 1 damage = "1d10+3 slashing" name = "Melee" text = "claws +8"
actions = 2 name = "Special" text = """\ (fire) The dragon cultist breathes flames in a 15-foot cone that deals 2d6 \ fire damage to each creature within the area (DC 14 basic Reflex save). \ The dragon cultist can’t use Breath Weapon again for 1d4 rounds.\ """
Credits
-
The layout, much of the styling, and the demonstration creature come from the Pathfinder 2E Monster Creator
-
Action and reaction CSS icons come from CSS for Pathfinder 2nd Edition
-
Asciidoctor Extensions Lab was used as a reference in creating this extension.