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 .
×

help with the 'Scenario' macro command

greetings,  let me explain the situation I am trying to make a macro and I am using the ?{Scenario, twice in the same macro but that is causing problems I put the following command on the damage ?{Scenario|normal,2d6+3  |boost, 3d6+4} so when click on the attack, I can choose to use either the regular damge or the boost one. however I do like to use gifs on attacks so I put gifs on the description using 'Scenario' as well but when I do, it doesn´t work. Is there a way that I can solve this problem? So I can use both in the same macro? this for a pathfinder spheres of power game.
1768770916
Gauss
Forum Champion
The multiple instances of the same query cannot have different outputs. It will only use the output from the first instance of that query.  Rename the second query to a different name, then it will work. 
IT WORKED! Thank you. Since that one worked, think you can help me with another one? on the attack, I want to add an option for normal or guided, guided is an option that adds +20 on to hit attacks. I am trying to put like this ?{type|guide, +20  |normal, +0 on damage, I put:  ?{blast|normal, 2d6+3  |plus, 3d6+4 but I keeep get an erro message
1768797239
Gauss
Forum Champion
Your queries do not have closing "}" brackets. 
oh yeah, I add it my bad but now I am getting a new problem, it keeps rolling 0 for some reason  ?{type|guide, +20|normal, +0}
1768859058
Gauss
Forum Champion
Please hover over the output in the Chat tab and screenshot it.
like this?
1768877021
Gauss
Forum Champion
Please push the button again, click on the chat box where you type, hit the up arrow, copy the text and paste it.
Eric C. said: like this? Where Gauss is going is this: See the row at the bottom where the roll parts are shown? (20)+6+0++ ... the thing is, whatever part of the command is between the two "+" symbols is not working. It comes back as nothing, and that turns the result into 0. 
1768926079

Edited 1768926090
Gauss
Forum Champion
Yup, which is why I'd like to see the template. It will show which field is causing it.
like this?
1768958759

Edited 1768958806
Gauss
Forum Champion
Eric C.  said: like this? No, please push the attack so that it appears in chat (like in your earlier screenshot where it rolled a 0). Then go to the Chat Tab, click the chat box (where you type).  Hit the up arrow on your keyboard. Copy and paste the code that appears. 
right on. @{Ferica|whispertype} &{template:pc} {{name=test}} {{type=attackdamage}} {{showchar=@{Ferica|rollshowchar}}} {{charname=@{Ferica|character_name}}} {{nonlethal=[[1[Nonlethal]]]}} {{attack=1}}{{roll=[[1d20cs>20 + 6[Ranged] + 0[Ability] + ?{type|guide, +20|normal, +0}[MOD] + 0[TEMP] + (@{Ferica|attack_condition})[CONDITION] + @{Ferica|rollmod_attack}[QUERY] ]]}} {{critconfirm=[[1d20cs20 + 6[Ranged] + 0[Ability] + ?{type|guide, +20|normal, +0}[MOD] + 0[TEMP] + (@{Ferica|attack_condition})[CONDITION] + @{Ferica|rollmod_attack}[QUERY] + @{Ferica|critconfirm_bonus}[CRIT CONFIRM BONUS] ]]}}{{atkvs=(Ranged vs AC)}}{{shownotes=[[1]]}}{{notes=}}{{damage=1}} {{dmg1flag=1}} {{dmg1=[[?{blast|normal, 2d6+3  |positive, 3d6+4}+0[Ability] + 0[MOD] + 0[TEMP] + @{Ferica|rollmod_damage}[QUERY]]]}}{{dmg1type=fire}}{{dmg1crit=[[((?{blast|normal, 2d6+3  |positive, 3d6+4}+?{blast|normal, 2d6+3  |positive, 3d6+4}) + (0[Ability] + 0[MOD] + 0[TEMP] + @{Ferica|rollmod_damage}[QUERY]) * 2)]]}} {{conditionsflag=[[@{Ferica|attack_condition}]]}} {{conditions=@{Ferica|conditions_display}}} {{conditionsnote= @{Ferica|attack_condition_note}@{Ferica|damage_condition_note}}}
1769028729
Gauss
Forum Champion
Replace:  [[1d20cs>20 + 6[Ranged] + 0[Ability] + ?{type|guide, +20|normal, +0}[MOD] + 0[TEMP] with:  [[1d20cs>20 + 6[Ranged] + 0[Ability] + ?{type|guide,20|normal,0}[MOD] + 0[TEMP] The problem:  you had "+ + 20" Which is effectively "+blank + 20" and breaks things.  Make sure you fix both instances ( roll= and critconfirm= )
oh, ok, I did that and it worked! thanks, now I can edit it and make everything into a single command rather than have to make a different attack for each one. can´t thank you enought