Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Two Weapon Combo Attack Macro vs Multiple Targets?

I'm running a MERP game and I have a few players with Dual Weapon Wielding Characters.  I've set up all kinds of Macros for all kinds of skills and attacks and I even have something set up for a TWC vs a single opponent, but I'm having some slight difficulty figuring out how to get the roller to prompt the player for separate information vs separate targets.  This is the Macro I have, which almost works, but if, for example, I have two or more targets, each with a different Defensive Bonus, I am unable to figure out how to get the Macro to prompt for separate DB's for the separate targets.  It's probably something really simple that I am missing, but to be honest with you, I'm as close to a Roll20 idiot as a guy can be and I'm lucky I've been able to figure out the little bit I've been able to figure out so far.  Any help would be appreciated.  The Macro works, as far as rolling against two targets, but I can't figure out how to get it to ask for separate variables for each target.  Here's that Macro (hope it's not too confusing): /em @{Selected|Token_Name} uses a Combo Attack to attack @{Target|Target1|Token_Name} with a right-hand Broad Sword! Rolling... [[d100!>96 + @{Selected|Melee #1 OB} + @{Selected|Negative to Activity} + ?{Magical Bonus|0} + ?{Attacker Position|Normal, 0|Flank, 15|Surprise-Flank, 35|Rear-Flank, 35|Surprise-Rear-Flank, 55} + ?{Defender Status|Normal, 0|Stunned, 20} + ?{Attacker Status|Normal, 0|Under ½HP, -20} + ?{Am I drawing or changing weapons?|Yes, -30|No, 0} - ?{How many feet (over 10') have I moved?|100} - ?{Defender DB|0} - ?{Defender Parry|0} + ?{Other Modifiers|0}]] /em and @{Target|Target2|Token_Name} with a left-hand Broad Sword! Rolling... [[d100!>96 + @{Selected|Melee #2 OB} + @{Selected|Negative to Activity} + ?{Magical Bonus|0} + ?{Attacker Position|Normal, 0|Flank, 15|Surprise-Flank, 35|Rear-Flank, 35|Surprise-Rear-Flank, 55} + ?{Defender Status|Normal, 0|Stunned, 20} + ?{Attacker Status|Normal, 0|Under ½HP, -20} + ?{Am I drawing or changing weapons?|Yes, -30|No, 0} - ?{How many feet (over 10') have I moved?|100} - ?{Defender DB|0} - ?{Defender Parry|0} + ?{Other Modifiers|0}]]
1526381498

Edited 1526381538
Ziechael
Forum Champion
Sheet Author
API Scripter
Your primary issue is that you are using queries rather than attribute calls, does the system have a sheet with these values recorded on them or do you have to manually input things like Defender Parry? If the latter, you'll need to change the name of the queries as identical ones will reuse the same value each time. The downside here is twice as many queries to answer :( /em @{Selected|Token_Name} uses a Combo Attack to attack @{Target|Target1|Token_Name} with a right-hand Broad Sword! Rolling... [[d100!>96 + @{Selected|Melee #1 OB} + @{Selected|Negative to Activity} + ?{Magical Bonus|0} + ?{Attacker Position|Normal, 0|Flank, 15|Surprise-Flank, 35|Rear-Flank, 35|Surprise-Rear-Flank, 55} + ?{Defender 1 Status|Normal, 0|Stunned, 20} + ?{Attacker Status|Normal, 0|Under ½HP, -20} + ?{Am I drawing or changing weapons?|Yes, -30|No, 0} - ?{How many feet (over 10') have I moved?|100} - ?{Defender 1 DB|0} - ?{Defender 1 Parry|0} + ?{Other Modifiers|0}]] /em and @{Target|Target2|Token_Name} with a left-hand Broad Sword! Rolling... [[d100!>96 + @{Selected|Melee #2 OB} + @{Selected|Negative to Activity} + ?{Magical Bonus|0} + ?{Attacker Position|Normal, 0|Flank, 15|Surprise-Flank, 35|Rear-Flank, 35|Surprise-Rear-Flank, 55} + ?{Defender 2 Status|Normal, 0|Stunned, 20} + ?{Attacker Status|Normal, 0|Under ½HP, -20} + ?{Am I drawing or changing weapons?|Yes, -30|No, 0} - ?{How many feet (over 10') have I moved?|100} - ?{Defender 2 DB|0} - ?{Defender 2 Parry|0} + ?{Other Modifiers|0}]] If there is a sheet... and it has these values as attributes you can call them automatically using the same @{target|Target n ... syntax you've used for the name :)
Sadly, there is no MERP sheet at this point in time and I don't have enough smarts to code one yet, so I have been manually doing all the work for all the Players in my two groups, setting up each individual Journal with Attributes and Macros and Tokens...etc.  I am going to try your Macro adjustments and see how they work.  They look like they make sense and you are right...it's a lot of extra queries until I can figure out a better way or figure out how to code a sheet.  Someone else I am acquainted with may be currently working on a sheet, so I'll keep my fingers crossed that he eventually gets it done.  I have to hit the sack, but I am definitely going to try these out and see how they work!!!  I will let you know.  Either way, I really appreciate your help...and the quick response too!!!  Thank you!!!
1526393442
Ziechael
Forum Champion
Sheet Author
API Scripter
No problem, this community is full of helpful people so if you have any issues getting it to work just shout and someone will get you up and running in no time I'm sure :) Best of luck!
I just have to thank you again!!!  I made a few minor tweaks to your setup and it's doing exactly what I want it to do now.  First, I needed someone with brains to show me that it could be done, before I spent too much more time trying to figure out how.  And I also needed a way to make sure if someone is attacking multiple opponents and forgets which opponent is which target, the Macro would ask the right information for the right target. A "Master" Dual Weapon Wielder in my system, could theoretically attack up to 6 (my set max for the hex grid, which is what I've been using) or 8 (set max for the square grid) adjacent opponents in one round, with the OB divided between targets as dictated by the player (in which case I will be setting up queries for the OB amount to be directed at each target), and could therefore easily get confused, during the query process, as to which opponent was which target.  Allowing any more than 6 or 8 with a super high level Pole Arm user would be me asking for a major headache!  ;) Now that I have the foundation for the Macro...I just have to figure out how to ask "how many targets" and then have it prompt for the specified amount of targets...which I think will be easy enough to figure out.  Fortunately I currently have zero "Masters" yet, so I have plenty of time to figure that out. Anyway, you are awesome!!!  Thanks again.  Hope my rambling didn't get confusing.  And just in case you were curious about what I changed (since you can probably read a Macro like I can read a kid's book), here's the new Macro...and it works like a charm for two opponents!!! /em @{Selected|Token_Name} uses a Combo Attack to attack @{Target|Target1|Token_Name} with a right-hand Broad Sword and @{Target|Target2|Token_Name} with a left hand Broad Sword! vs @{Target|Target1|Token_Name} ... [[d100!>96 + @{Selected|Melee #1 OB} + @{Selected|Negative to Activity} + ?{Magical Bonus vs @{Target|Target1|Token_Name}|0} + ?{Attacker Position vs @{Target|Target1|Token_Name}|Normal, 0|Flank, 15|Surprise-Flank, 35|Rear-Flank, 35|Surprise-Rear-Flank, 55} + ?{@{Target|Target1|Token_Name} Status|Normal, 0|Stunned, 20} + ?{Attacker Status|Normal, 0|Under ½HP, -20} + ?{Am I drawing or changing weapons?|Yes, -30|No, 0} - ?{How many feet (over 10') have I moved?|100} - ?{@{Target|Target1|Token_Name} DB|0} - ?{@{Target|Target1|Token_Name} Parry|0} + ?{Other Modifiers vs @{Target|Target1|Token_Name}|0}]] vs @{Target|Target2|Token_Name} ... [[d100!>96 + @{Selected|Melee #2 OB} + @{Selected|Negative to Activity} + ?{Magical Bonus vs @{Target|Target2|Token_Name}|0} + ?{Attacker Position vs @{Target|Target2|Token_Name}|Normal, 0|Flank, 15|Surprise-Flank, 35|Rear-Flank, 35|Surprise-Rear-Flank, 55} + ?{@{Target|Target2|Token_Name} Status|Normal, 0|Stunned, 20} + ?{Attacker Status|Normal, 0|Under ½HP, -20} + ?{Am I drawing or changing weapons?|Yes, -30|No, 0} - ?{How many feet (over 10') have I moved?|100} - ?{@{Target|Target2|Token_Name} DB|0} - ?{@{Target|Target2|Token_Name} Parry|0} + ?{Other Modifiers vs @{Target|Target2|Token_Name}|0}]]
1526458329
Ziechael
Forum Champion
Sheet Author
API Scripter
You are most welcome, there is certainly a learning curve to these things but once you've crested that first overhang its a relatively pleasant stroll to the summit ;) You can totally evolve this to include a 'number of targets' query to limit just how many questions you have to answer before getting the result but I should warn you that it would involve the next overhang of the climb...  html replacements for nested queries ! More than happy to help you figure it out if needed but the general gist of it would be: ?{Number of targets|1,[insert macro text for one attack, replacing offending characters with html entities as per the link above]|,2,[insert macro text for two attacks, replacing offending characters with html entities as per the link above]|3,[rinse and repeat etc etc]} You'll end up with a monstrous macro by 8 attacks but only a single macro for someones macro bar... the key to html replacements is to remember that attribute calls (@{selected, @{target, @{... or @{[character_name]) don't need replacements, just the '}','|', and ',' outside of them, usually found in other queries. Also, it is highly recommended to store these complicated macros in an external editing program such as google docs to keep those carefully placed html entities intact (global macros in the VTT will replace them with their values if you reopen the macro!), you can also store them as a character ability, these don't replace the html. Ps. Hope my  rambling didn't get too confusing! If you wanted to explore the API route (since you are a pro subscriber) I would recommend checking out  powercards , this has built in logic for being able to select a number of targets and replicate attacks but with differing values/results! Be prepared for a whole new learning curve with that beast though ;)
Thank you.  My brain is half fried already, but I've definitely got the basic multiple target macro set up and tested (only two queries...lol).  Now I'll have to go back and take some time to add all the other queries, for each potential target.  I'm quite sure I'm probably going about it the long and hard way, but I will definitely be looking this other stuff over when my mind is more clear and the eyes aren't begging for sleep.  ;)  Can't tell you how much I appreciate the help!!!  A year ago, I didn't even know what a Macro was.  The more I work with them, the more they make sense to me.  Kind of like learning a new language.  My biggest concern at the moment is trying to not lose this post, so I can refer to it again when I need to.  I know it probably sounds stupid, but I have no idea how to retrieve my previous posts and conversations on Roll20.  I just bookmarked this page, so we'll see if that works for getting me back here after a reboot.  I just know I've tried to go back to other posts or messages, but they all seem to vanish into the cosmos or something.  haha  Thanks again for all your help!!!
1526465946
Ziechael
Forum Champion
Sheet Author
API Scripter
Since you started this topic, your best method (other than bookmarking ;) ) would be to head to your profile and use 'view topics', then all you need to do is remember the name of the topic... unless you become a prolific thread starter in which case I'd stick to bookmarking lol!
Thank you!  I don't plan on starting too many threads, but knowing me, I'd probably never remember the name of the topic...in fact...I already don't know, without looking, what the name of this topic is.  HAHA  Something to do with Macros though...  ;)  It is good to know the bookmarking works.
1526632742
GiGs
Pro
Sheet Author
API Scripter
John M. said: Sadly, there is no MERP sheet at this point in time and I don't have enough smarts to code one yet, so I have been manually doing all the work for all the Players in my two groups, setting up each individual Journal with Attributes and Macros and Tokens...etc.   There's no MERP sheet but there are a couple of rolemaster ones, of which MERP is a streamlined version. Can you use one of those? Also, if you are setting up Abilities, you can also set up Attributes, to make those macros easier. Having attributes set up would let you remove a lot of the queries. You are a Pro user so you could use ChatSetAttr to add a bunch of empty attributes to everyone's characters very quickly, and let the players fill values in. Or you could use chatsetattr to fill them in individually. Attributes don't need to be stats like STR, CON, etc. They can also be skill values, saving throw bonuses, level, attack modifiers, etc. They can be any number (or text!) that you need, and you can then call them with @{ATTRIBUTE} or @{CHARACTER|ATTRIBUTE} or @{selected|ATTRIBUTE} or @{target|ATTRIBUTE} (replace anything in all caps with the appropriate labels. They don't look as pretty and aren't as well organised as a properly designed character sheet, but they are simple to use.
Haha.  Sure enough, I probably did it the hard way.  I went in and added the Attributes for each individual Character and added all the Bonuses and the Macros.  I gave some thought to using the RM sheets last year, but then I decided to try to tackle a MERP Sheet.  That didn't get very far, as I had no prior knowledge in Coding and was only then trying to learn how to Code.  After running into the proverbial wall, I decided to leave that to younger and brighter minds than my own.  After being a Pro user for a year, I am FINALLY starting to get a grip on setting up the Dynamic Lighting and all kinds of other kool things.  The more I work with it, the more I start figuring things out and realizing how much I've been doing things the hard way all this time.  It's like anything else in life; almost anybody can do almost anything the hard way, but if you have the right tools and you know what you're doing, those difficult tasks become a lot easier.  Thank you for your input...I want to keep all this information handy, so I can refer to the advice some of you have been giving me so far!!! Just out of curiosity, if I am understanding you correctly about the "ChatSetAttr", I could have easily set up a single "set" list of Attributes that would have automatically showed in all of the Journals?  Instead of me adding every single one of them to every single Journal?  If that is the case...I would really like to know where I'd find that option, because now that I feel like I am getting slightly better at knowing what I'm doing, I'd like to get myself reorganized on a separate Roll20 game page and start fresh, because my page right now is starting to get organized, but it's really still pretty cluttered up and I'm almost afraid to delete anything yet.  haha  But if I do start fresh, something like that "ChatSetAttr" would save me a lot of time.  On a positive note, this year I was at least smart enough to copy every Macro I figured out so far and save them to a Word Document.  After accidentally deleting a few of them, I got smart real quick.  Just copying and pasting similar Macros has saved me a lot of time already.  But I would really like to know how to utilize that "ChatSetAttr" tool.  Seems like I could put it to good use if I do start fresh.  Thanks again!!!