I've made a quick-and-dirty update to the script to add the ability to just send the hit or miss results to chat. So you can do
!hitormiss --name: a name --roll:[[3d6]] --target:@{bob|AC} --hit: #A-MACRO --miss: %{character|an-ability}
And it will run those.
It wont print out the number when doing this. There's no way to tell what your hit or miss outputs will look like, so hard to know how to format the roll to fit those outputs. If you want to include a roll in a header that gets posted before those outputs, i can add it. I just need you to know what it should contain.
You can still get the old template view by adding --template in the command. It doesnt need a value: this is fine -
!hitormiss --name: a name --roll:[[3d6]] --target:@{bob|AC} --hit: what happens on a hit --miss: what happens on a miss --template
!hitormiss --name: a name --roll:[[3d6]] --target:@{bob|AC} --hit: this is a multiline statement
it continues on this line --miss: what happens on a miss
You can also now include multi-line statements in the hit or miss lines, but must enclose them within {{ }} brackets, like so:
!hitormiss --name: a name --roll:[[3d6]] --target:@{bob|AC} --hit: {{this is a multiline statement
it goes on
and on
over multiple lines }} --miss: {{note that that the --miss statement
must be on the same line as the close brackets at the end of the hit statement.}}
If you want to include {{ }} characters within multi-line hit or miss results (such as when outputting another roll template), you must convert them into html entities. Calls to macros or abilities dont require editing.
If there's interest to be able to do this, and can handle it more elegantly.
Here's the script
https://gist.github.com/G-G-G/7993a0a72db66f8da49286bde7a1b790