
Hi, I've spent hours going over past posts and I figured out my other macro, but not this one.
I have a batttletech game and I've created rollable tables for each hit table. I have a macro that allows you to select that table and roll a hit location, but if you aren't selecting the default more than one in a row is annoying. I'm trying to make a macro that will ask you the hit location table you're using and the number of hits you got, then roll that table that many times.
Here is the single attack macro:
[[1t[?{Attack Table|Mech-Front-Rear-Hit|Mech-Left-Hit|Mech-Right-Hit|Left-Punch-Hit|Punch-Front-Rear-Hit|Punch-Right-Hit|Kick-Left-Hit|Kick-Front-Rear-Hit|Kick-Right-Hit}]]]
Here is my attempted at the nested macro. I was able to get something like this to work on the attack macro, then realized I didn't need it to be this complex, since the second variable wasn't being applied inside the nested portion of the macro. But I can't get it to work with this one. If I use } on the variables, it breaks the syntax, but this version just does nothing after the first instance, which is outside the nest:
! ?{Attack Table|Mech-Front-Rear-Hit|Mech-Left-Hit|Mech-Right-Hit|Left-Punch-Hit|Punch-Front-Rear-Hit|Punch-Right-Hit|Kick-Left-Hit|Kick-Front-Rear-Hit|Kick-Right-Hit}
/em Player 1 opens fire...
[[1t[?{Attack Table}]]] ?{Attacks|
1, |
2, • [[1t[{Attack Table}]]] |
3, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
4, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
5, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
6, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
7, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
8, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
9, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
10, • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] • [[1t[{Attack Table}]]] |
}
If I get this working, I might figure out next how to turn the bullets into carriage returns and then how to put it inside the attack template, but my first goal is to get it working at all.
Any ideas?