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

(Macro help) mass combat attack macro gurps

I am designing a city siege for a gurps campaign and have been trying to design a macro to speed up combat and clean up the number of rolls in chat.  What I am trying to do is randomize the number of attacks each player will have to defend against while in the middle of a press of 2 armies. Each round each player will receive 1d4-1 attacks from nearby enemies.  So, if possible, I need a macro that with a single macro will roll 0-3attacks. Gurps uses 3d6 rolls for attacks and that is the part that is stumping me.
1446140891

Edited 1446140996
You can't with the default macros. You'd need to make a roll template for a character sheet or use an api script like PowerCards. If you don't want to do either of those, you could just do a macro like... Mass Attack /as "Number of Attacks" [[1d4-1]] /as "Attack #1" [[ attack roll ]] /as "Attack #2" [[ attack roll ]] /as "Attack #3" [[ attack roll ]] /as "Attack #4" [[ attack roll ]] ... and just ignore attack number four if not needed.
Appreciate the info badger.  I was thinking that it would not work but was hoping I was just doing something wrong. Unfortunately that macro would cause quite a bit of chat spam.  Maybe I can do it differently.  Roll table maybe.
1446209240
DK Heinrich
Marketplace Creator
Sheet Author
being pro - you should be able to use powercards to do it - and only 'show' what you want on the card, hiding the rest so its not so spammy. 
Dregen the Red said: Appreciate the info badger.  I was thinking that it would not work but was hoping I was just doing something wrong. Unfortunately that macro would cause quite a bit of chat spam.  Maybe I can do it differently.  Roll table maybe. Eh, it's only extra line.
HoneyBadger said: Dregen the Red said: Appreciate the info badger.  I was thinking that it would not work but was hoping I was just doing something wrong. Unfortunately that macro would cause quite a bit of chat spam.  Maybe I can do it differently.  Roll table maybe. Eh, it's only extra line. EXACTLY! extra lines.  :) I use a lot of GM rolls as well that I have to keep looking back at as well a PMs from players.  A single round of that macro would be 42 lines. (over 1/3 of the 120 lines allowed before it goes to archive)  just for my own rolls and each hit would require another defense roll from players. Then the players roll, enemies defend, and I have to roll for the NPC army attacking the Enemy army to see if the battle sways in favor of Enemies or Player army.  I tested a single round of combat with the bare minimum number of average rolls and it would fill the chat box every time before the round was over.  Don't get me wrong Badger, I am very thankful for the suggestion. It has at least got me thinking in a different direction on this problem. But with 6 players that is quite the spam in text. To Heinrick Power cards are something I am currently looking into but haven't had time to researched much yet for gurps like rolls today. 
If your concerns lie with the chat archive, look into Roll Templates or PowerCards (recommended); each count as "one line". What you ask for in the OP might look like this as a PowerCard: !power {{ --name|The enemy attacks... --hroll|[[ [$A] 1d4-1 ]] -- ?? $A == 0 ?? !|No attacks were suffered. -- ?? $A >= 1 ?? Attack #1|[[3d6]] -- ?? $A >= 2 ?? Attack #2|[[3d6]] -- ?? $A >= 3 ?? Attack #3|[[3d6]] }}
1446239209

Edited 1446239431
Finally got home and tried that out Silvyre.  That will work, but it displays extra lines that are not doing anything but take up the room I am trying to save.  I do not know how to show you what is coming up but here is what it looks like after a 3 attack roll.  I will put the lines in bold that are the issue. __________________ The Enemy Attacks... __________________ Attack 9              (this line is the 1st actually inline roll and is working right) Attack $[[2]]      (this line is one of the ones that I would like to get rid of.  Just wasting space.) Attack 14            (2nd attack displaying the inline roll.  Perfect!) Attack $[[4]] Attack $[[4]]      (These 2 lines are just taking up space) Attack 8              (the 3rd attack displaying right) __________________ I hope that helps.  Could it be something to do with me using Power Cards 3?   I just updated all my campaigns to it a few weeks ago. It only displays these extra lines when 2 or more attacks happen.  On a roll of 0 or 1, it displays as intended. 
Try !power {{ --name|The enemy attacks... --hroll|[[ [$A] 1d4-1 ]] -- ?? $A == 0 ?? !|No attacks were suffered. -- ?? $A >= 1 ?? First attack|[[3d6]] -- ?? $A >= 2 ?? Second attack|[[3d6]] -- ?? $A >= 3 ?? Third attack|[[3d6]] }}
Yep that fixed it thanx a lot
1446290361

Edited 1446290379
Silvyre, the issue was you used #1, #2, and #3 which tells PowerCards to make extra lines for that command. So it was trying to do a total of six attacks. If you still want to use #1 and such, you can just use a hidden tag and then put your "fake" tag in the content instead of the tag like this: !power {{ --name|The enemy attacks... --hroll|[[ [$A] 1d4-1 ]] -- ?? $A == 0 ?? !|No attacks were suffered. -- ?? $A >= 1 ?? !1|**Attack #1:** [[3d6]] -- ?? $A >= 2 ?? !2|**Attack #2:** [[3d6]] -- ?? $A >= 3 ?? !3|**Attack #3:** [[3d6]] }}
I'll keep that in mind, thanks HB.