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

How do I reference the same attribute throughout a drop-down prompt macro?

Hi everyone! I'm trying to make a macro that allows a player to chose a weapon, but have different results for attack and damage - without having to use a drop down menu twice. I have this as an example:  Attack: [[?{Which Weapon?|@{selected|weapon-1-name} (Weapon 1),@{selected|weapon-1-attack}| @{selected|weapon-2-name} (Weapon 2),@{selected|weapon-2-attack} } [?{Which Weapon?|@{selected|weapon-1-name} (Weapon 1)|@{selected|weapon-2-name} (Weapon 2)} Bonus]]] vs. AC  Damage:  [[?{Damage?|@{selected|weapon-1-name} (Weapon 1),@{selected|weapon-1-damage}| @{selected|weapon-2-name} (Weapon 2),@{selected|weapon-2-damage} }]]  I'd like to have it so once I've selected which weapon I want to use, I don't need to have a second drop down for damage. How do I go about this? 
1568494687

Edited 1568494787
Kraynic
Pro
Sheet Author
Unless you have the entire macro for the first query answer, you can't.&nbsp; The easiest thing to set up would be to write a macro for however many weapon slots you might want, and then write a chat menu macro that just brings up a clickable button for each of them. Chat menu instructions: <a href="https://app.roll20.net/forum/permalink/5927072/" rel="nofollow">https://app.roll20.net/forum/permalink/5927072/</a>
Good to know, thanks! Is there a way to have the number in the "weapon-X-name, weapon-X-attack, etc" be variable? That way I could have a prompt to choose a weapon slot, then it would apply that to every missing field? That'd be a cool work around.
1568496031
GiGs
Pro
Sheet Author
API Scripter
No, you can't include variables or any kind of queries inside attribute names.&nbsp;