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 option vector

I gotta a spell macro where i list the dificult of casting it during the macro. ?{Magia|Bind Monster,4|Dread Curse of Azathoth,-2|Enchant Weapon,0|Find Gate,-1|Flesh Ward,-2|Heal,1|Mists of Releh,@{target|Alertness}|Red Sign of Shudde M'ell,-1|Shrivelling,-1|Voice of Ra,-1|Wither,0} is there a way to storage the ?{Magia} so if i call it again i can access diferent results other than the right side of the bracket ? for instance, when a player choose a spell (lets say "Dread Curse of Azathoth", the macro save the value (-2) inside the ?{Magia} parameter right ?  is there a way to save the left side ("Dread Curse of Azathoth") in another variable, so i can make constructions as such Spell Damage: ?{Magia|Bind Monster,1|Dread Curse of Azathoth,9|Enchant Weapon,0|Find Gate,0|Flesh Ward,0|Heal,0|Mists of Releh,0|Red Sign of Shudde M'ell,1|Shrivelling,2|Voice of Ra,0|Wither,1} So i can access a vector of properties based on ?{Magia} that i only need to call once (in this case, "Dread Curse of Azathoth" has dificult to cast -2 and to 9 damage) in order to use in a macro
1470004267
Silvyre
Forum Champion
How about putting the two Roll Queries together? &{template:default} {?{Magia| Bind Monster, {{Difficulty=4}} {{Damage=1}} Dread Curse, ... }
in this case, if i need to get the Bind Monster dificulty i shall call  ?{Magia|Dificulty}