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

Call back in a macro

1467920327
Matthew C
Pro
Sheet Author
I am curious and hope someone can help me. I currently have the following macro /e 's ?{Which Weapon|@{Syanna Lisowska|weapon_name-1}|@{Syanna Lisowska|weapon_name-2}|@{Syanna Lisowska|weapon_name-3}|@{Syanna Lisowska|weapon_name-4}} deals [[ { ( @{Syanna Lisowska|weapon_damage-1} + @{Syanna Lisowska|weapon_toggle-1} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-1} damage! However I would like it that in the case of: weapon_damage-1, weapon_toggle-1 and weapon_damagetype-1 would change depending on the choice made at the beginning of the macro (so if option 2 is chosen the -1 of everything becomes -2 and so on). is this possible. Further more I have seen it asked before but I will ask again, is it possible to add in anywhere that a 10 (the max that can be rolled) counts as 2 instead of 1 (this systen is for scion which is a storyteller system) The 10 counting twice is not as important but would be awesome. the macro is the main part as I swear there has to be a way but I have yet to find it....
You could try @{Syanna Lisowska|weapon_name-?{Which weapon|1|2|3|4}}, but I'm not sure if that'll work.
1467922133
Lithl
Pro
Sheet Author
API Scripter
SkyCaptainXIII said: You could try @{Syanna Lisowska|weapon_name-?{Which weapon|1|2|3|4}}, but I'm not sure if that'll work. It won't. Attributes are resolved before queries.
1467922169

Edited 1467922213
You could accomplish this using Advanced Usage for Roll Queries : /em 's ?{Which Weapon| @{Syanna Lisowska|weapon_name-1}, @{Syanna Lisowska|weapon_name-1} deals [[ { ( @{Syanna Lisowska|weapon_damage-1} + @{Syanna Lisowska|weapon_toggle-1} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-1} | @{Syanna Lisowska|weapon_name-2}, @{Syanna Lisowska|weapon_name-2} deals [[ { ( @{Syanna Lisowska|weapon_damage-2} + @{Syanna Lisowska|weapon_toggle-2} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-2} | @{Syanna Lisowska|weapon_name-3}, @{Syanna Lisowska|weapon_name-3} deals [[ { ( @{Syanna Lisowska|weapon_damage-3} + @{Syanna Lisowska|weapon_toggle-3} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-3} | @{Syanna Lisowska|weapon_name-4}, @{Syanna Lisowska|weapon_name-4} deals [[ { ( @{Syanna Lisowska|weapon_damage-4} + @{Syanna Lisowska|weapon_toggle-4} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-4} } damage!
1467922654

Edited 1467922728
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
SkyCaptainXIII said: You could try @{Syanna Lisowska|weapon_name-?{Which weapon|1|2|3|4}}, but I'm not sure if that'll work. Unfortunately, attribute calls resolve before roll queries, so that will just look for an attribute called @{Syanna Lisowska|weapon_name-?{Which weapon|1|2|3|4}}. Honestly Matthew, There are two ways to do what you're going for there. In order of complexity and difficulty to design: Make an  Ability Command Button menu that you can use to call macros for weapon 1, 2, 3, etc. The Hard way : If you're deadset on using a roll query (a totally valid decision), then you can make a roll query to call specific macros (so you'd have an option for weapon 1, 2, 3, 4, etc. See the Wiki  advanced roll queries , and one of several different forum posts which I cannot for the life of me find at the moment. -Silvyre beat me to the punch If you aren't using roll templates, option 2 becomes much, much easier as you have a lot less html escaping to do (still have to do it for any roll queries in the called macros unfortunately).
1467962420
Matthew C
Pro
Sheet Author
Silvyre said: You could accomplish this using Advanced Usage for Roll Queries : /em 's ?{Which Weapon| @{Syanna Lisowska|weapon_name-1}, @{Syanna Lisowska|weapon_name-1} deals [[ { ( @{Syanna Lisowska|weapon_damage-1} + @{Syanna Lisowska|weapon_toggle-1} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-1} | @{Syanna Lisowska|weapon_name-2}, @{Syanna Lisowska|weapon_name-2} deals [[ { ( @{Syanna Lisowska|weapon_damage-2} + @{Syanna Lisowska|weapon_toggle-2} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-2} | @{Syanna Lisowska|weapon_name-3}, @{Syanna Lisowska|weapon_name-3} deals [[ { ( @{Syanna Lisowska|weapon_damage-3} + @{Syanna Lisowska|weapon_toggle-3} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-3} | @{Syanna Lisowska|weapon_name-4}, @{Syanna Lisowska|weapon_name-4} deals [[ { ( @{Syanna Lisowska|weapon_damage-4} + @{Syanna Lisowska|weapon_toggle-4} + ?{Modifier to Damage?|0} )d10! }>7 + ?{Epic?|0} - ?{soak?|0} ]] @{Syanna Lisowska|weapon_damagetype-4} } damage! Scott C. said: SkyCaptainXIII said: You could try @{Syanna Lisowska|weapon_name-?{Which weapon|1|2|3|4}}, but I'm not sure if that'll work. Unfortunately, attribute calls resolve before roll queries, so that will just look for an attribute called @{Syanna Lisowska|weapon_name-?{Which weapon|1|2|3|4}}. Honestly Matthew, There are two ways to do what you're going for there. In order of complexity and difficulty to design: Make an  Ability Command Button menu that you can use to call macros for weapon 1, 2, 3, etc. The Hard way : If you're deadset on using a roll query (a totally valid decision), then you can make a roll query to call specific macros (so you'd have an option for weapon 1, 2, 3, 4, etc. See the Wiki  advanced roll queries , and one of several different forum posts which I cannot for the life of me find at the moment. -Silvyre beat me to the punch If you aren't using roll templates, option 2 becomes much, much easier as you have a lot less html escaping to do (still have to do it for any roll queries in the called macros unfortunately). I want to thank you both, you guys are my saviors. What Sil gave me is exactly what I was trying to do but the advanced roll queries etc. confused me a little, but seeing a great example I can now use this to make the macros for attack etc. as well as they follow the same system, so thank you guys so so so much :D