Monster multiattacks hard to parse
See original GitHub issueI’m wondering if it’s possible to define multiattacks in a way that’s more easily parsed in code. Right now, the only place that specifies all of the possible attacks is the “desc” field of the “Multiattack” action. For example, in trying to figure out which attacks are available to the “Bandit Captain” on their turn, the only information I have is, “The captain makes three melee attacks: two with its scimitar and one with its dagger. Or the captain makes two ranged attacks with its daggers.”
This is tricky to parse out programmatically. One option I can think of is to maybe add an explicit list of “action sets”, where each set is considered a potential set of actions for each turn, something like:
"action_sets": [
{
"name": "Multiattack",
"actions": [
{
"name": "Scimitar",
"count": 2,
"type": "melee"
},
{
"name": "Dagger",
"count": 1,
"type": "melee"
}
]
},
{
"name": "Multiattack",
"actions": [
{
"name": "Dagger",
"count": 2,
"type": "ranged"
}
]
}
]
I wouldn’t mind giving this a shot if we can agree on a format.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
In most (if not all) cases,
Multiattack
is just using the already defined attacks on a monster. So you probably only need the name and count.I’m going to close this out for now as it’s technically done. Feel free to open a separate issue for parsing the notes field.