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

Macro Text to Declare Variables Possible?

currently i am using this macro to roll for skills in my game... &{template:simple} {{mod=?{Skill|Acrobatics, [[@{Quip|acrobatics_bonus}]] (Acrobatics) |Athletics, [[@{Quip|Athletics_bonus}]] (Athletics) |Animal Handling, [[@{Quip|animal_handling_bonus}]] (Animal Handling) |Arcana, [[@{Quip|arcana_bonus}]] (Arcana) |Deception, [[@{Quip|deception_bonus}]] (Deception) |History, [[@{Quip|history_bonus}]] (History) |Insight, [[@{Quip|insight_bonus}]] (Insight) |Intimidation, [[@{Quip|intimidation_bonus}]] (Intimidation) |Investigation, [[@{Quip|investigation_bonus}]] (Investigation) |Medicine, [[@{Quip|medicine_bonus}]] (Medicine) |Nature, [[@{Quip|nature_bonus}]] (Nature) |Perception, [[@{Quip|perception_bonus}]] (Perception) |Performance, [[@{Quip|performance_bonus}]] (Performance) |Persuasion , [[@{Quip|persuasion_bonus}]] (Persuasion) |Religion, [[@{Quip|religion_bonus}]] (Religion) |Sleight of Hand, [[@{Quip|sleight_of_hand_bonus}]] (Sleight of Hand) |Stealth, [[@{Quip|stealth_bonus}]] (Stealth) |Survival, [[@{Quip|survival_bonus}]] (Survival) } }} {{rname=Skill Check}} {{r1=[[1d20@{Quip|halflingluck}+?{Skill}]]}} @{Quip|rtype} @{Quip|halflingluck}+?{Skill}]]}} however i want to skip the select menu and rather opt for a text only selection #macroname 'INPUT' and it would roll the macro for stealth, without having to make every macro for each skill it would read in "stealth" as a variable and execute the following macro &{template:simple} {{rname=Skill Check}} {{r1=[[1d20@{Quip|halflingluck}+[[@{Selected|'INPUT'_bonus}]]]]}}  @{Quip|rtype} @{Quip|halflingluck}+[[@{Selected|'INPUT'_bonus}]]]]}} can this be done?
1477145037

Edited 1477145179
Quip said: however i want to skip the select menu and rather opt for a text only selection #macroname 'INPUT' Unfortunately, this is not possible. The fastest and easiest way to navigating drop-down Roll Queries is purely using your keyboard. For example, Quip said: &{template:simple} {{mod=?{Skill|Acrobatics, [[@{Quip|acrobatics_bonus}]] (Acrobatics) |Athletics, [[@{Quip|Athletics_bonus}]] (Athletics) |Animal Handling, [[@{Quip|animal_handling_bonus}]] (Animal Handling) |Arcana, [[@{Quip|arcana_bonus}]] (Arcana) |Deception, [[@{Quip|deception_bonus}]] (Deception) |History, [[@{Quip|history_bonus}]] (History) |Insight, [[@{Quip|insight_bonus}]] (Insight) |Intimidation, [[@{Quip|intimidation_bonus}]] (Intimidation) |Investigation, [[@{Quip|investigation_bonus}]] (Investigation) |Medicine, [[@{Quip|medicine_bonus}]] (Medicine) |Nature, [[@{Quip|nature_bonus}]] (Nature) |Perception, [[@{Quip|perception_bonus}]] (Perception) |Performance, [[@{Quip|performance_bonus}]] (Performance) |Persuasion , [[@{Quip|persuasion_bonus}]] (Persuasion) |Religion, [[@{Quip|religion_bonus}]] (Religion) |Sleight of Hand, [[@{Quip|sleight_of_hand_bonus}]] (Sleight of Hand) |Stealth, [[@{Quip|stealth_bonus}]] (Stealth) |Survival, [[@{Quip|survival_bonus}]] (Survival) } }} {{rname=Skill Check}} {{r1=[[1d20@{Quip|halflingluck}+?{Skill}]]}} @{Quip|rtype} @{Quip|halflingluck}+?{Skill}]]}} After the Roll Query within this macro is opened, I would press the S key of my keyboard twice and then the Enter key to roll a stealth check (which is both faster than using a mouse or typing "stealth").
@Quip I was interested in using conditional statements. Which from what I'm looking at with the double bracket enclosures you may know something about. I was hoping to create a series of macros using this. Such as ?{Select a Color|Green,1|Blue,2|Red,3} Then have the macro determine whether to turn left or right at the If-Else statement based on the numeric value. [[{{x,something-less-than-A}>A}*(T-F) + F]] I can't even begin to tell how to use this. How do I designate X? Do I have to use the something-less-than-  text? Or can I use < or > ? How do I designate A?
What is it that you're trying to do, Avatar of Woah ?