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

[V20] Attack and damage macro

Hello Roll20 community. I have a little problem with my damage macro. In v20 you add extra succeses from attack to damage dice pool. WIth one attack it is easy, but the problem occurs when I have several attacks. I can just click my attack several times, but I want to make the macro for all of them in one. For example my character makes 4 attacks:  &{template:default} {{name=John hit the enemy! }} {{1=[[[[@{Dexterity} +@{Melee}]]d10>?{Difficulty?|6}sd]]}} {{2=[[[[@{Dexterity} +@{Melee}]]d10>?{Difficulty?|6}sd]]}} {{3=[[[[@{Dexterity} +@{Melee}]]d10>?{Difficulty?|6}sd]]}} {{4=[[[[@{Dexterity} +@{Melee}]]d10>?{Difficulty?|6}sd]]}}  Somehow this macro asked me about difficulty only once, but in this case it is fine because attacks usualy are made vs the same difficulty. I've tried to make somthing similiar to this in case of damage: &{template:default} {{name= Damage pool }} {{damage 1=[[[[@{Strength} +1+?{Extra successes?|0}]]d10>6sd]]}} {{damage 2=[[[[@{Strength} +1+?{Extra successes?|0}]]d10>6sd]]}} {{damage 3=[[[[@{Strength} +1+?{Extra successes?|0}]]d10>6sd]]}} {{damage 4=[[[[@{Strength} +1+?{Extra successes?|0}]]d10>6sd]]}}  but in case of damage macro has to ask the player several times, because the number of extra successes in each attack is different. How can I make my macro to ask me several times?
You need to makethe queries different, if you ask the same question several times it will accept the first answer and use that for all the queries.  If you use something like ?{Attack 1 Extra Successes|0}, ?{Attack 2 Extra Success|0}, etc. instead of just ?{Extra Successes|0} in each case, it should ask then how many extra successes are needed for each attack seperately.
Ooo, thank you so much
I don't know if this will be of any interest to you, but as someone else who runs V20 I managed to sort out a general perpose macro using drop down boxes and queries (I had a lot of help from this forum with it so feel it is only fair to pass it along), you do need to have a token selected to use it so it can be a bit of a problem if you do a lot of theatre of the mind.  I use the Vampire the Masquerade 20th Aniversary Edition character sheet, if you don't use that one, it may not work.  Copy and paste the following into the macro box and it should work (fingers crossed) @{selected|token_name} rolls [[ [[ ?{Attribute| Strength, @{selected|strength} [Strength]| Dexterity, @{selected|dexterity} [Dexterity]| Stamina, @{selected|Stamina} [Stamina]| Charisma, @{selected|Charisma} [Charisma]| Manipulation, @{selected|Manipulation} [Manipulation]| Appearance, @{selected|Appearance} [Appearance]| Perception, @{selected|Perception} [Perception]| Intelligence, @{selected|Intelligence} [Intelligence]| Wits,@{selected|Wits} [Wits]} + ?{ability| Alertness, @{selected|Alertness} [Alertness]| Athletics, @{selected|athletics} [Athletics]| Awareness, @{selected|Awareness} [Awareness]| Brawl, @{selected|Brawl} [Brawl]| Empathy, @{selected|Empathy} [Empathy]| Expression, @{selected|Expression} [Expression]| Intimidation, @{selected|Intimidation} [Intimidation]| Leadership, @{selected|Leadership} [Leadership]| Streetwise, @{selected|Streetwise} [Streetwise]| Subterfuge, @{selected|Subterfuge} [Subterfuge]| Animal Ken, @{selected|AnimalKen} [Animal Ken]| Craft, @{selected|Crafts} [Crafts]| Drive, @{selected|Drive} [Drive]| Etiquette, @{selected|Etiquette} [Etiquette]| Firearms, @{selected|Firearms} [Firearms]| Larceny, @{selected|Larceny} [Larceny]| Melee, @{selected|Melee} [Melee]| Performance, @{selected|Performance} [Performance]| Stealth, @{selected|Stealth} [Stealth]| Survival, @{selected|Survival} [Survival]| Academics, @{selected|Academics} [Academics]| Computer, @{selected|Computer} [Computer]| Finance, @{selected|Finance} [Finance]| Investigation, @{selected|Investigation} [Investigation]| Law, @{selected|Law} [Law]| Medicine, @{selected|Medicine} [Medicine]| Occult, @{selected|Occult} [Occult]| Politics, @{selected|Politics} [Politics]| Science, @{selected|Science} [Science]| Technology, @{selected|Technology} [Technology]|} + ?{any additional dice|0} [other modifiers]+@{selected|bar1} [health] ]]d10>?{difficulty|6}f1! ]] success(es) from $[[0]] dice