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

Selected Token Skill Check based on Attribute

1459504266

Edited 1459540194
So I'm trying to make a macro that will run a query to select skills from a token. It should give a drop down menu to select the skill and then provide a blank popup to describe the skill check in further detail. However, this is the best I've been able to come up with (with this desired output format), which gives three pop ups rather than 2. Trying to get two to show up and add in the math correctly has been a bit of a task. Was hoping maybe someone else had an idea on how to deal with this problem. Output Example (Generates 3 popups): Garuk makes a roll on Acrobatics to jump. Check Result: 16 @{selected|token_name} makes a roll on ?{Skill|Acrobatics|Arcana|Athletics|Bluff|Diplomacy|Dungeoneering|Endurance|Heal|History|Insight|Intimidate|Nature|Perception|Religion|Stealth|Streetwise|Thievery} to ?{Action|}. **Check Result:** [[1d20+?{Value|@{selected|Acrobatics} Acrobatics|@{selected|Arcana} Arcana|@{selected|Athletics} Athletics|@{selected|Bluff} Bluff|@{selected|Diplomacy} Diplomacy|@{selected|Dungeoneering} Dungeoneering|@{selected|Endurance} Endurance|@{selected|Heal} Heal|@{selected|History} History|@{selected|Insight} Insight|@{selected|Intimidate} Intimidate|@{selected|Nature} Nature|@{selected|Perception} Perception|@{selected|Religion} Religion|@{selected|Stealth} Stealth|@{selected|Streetwise} Streetwise|@{selected|Thievery} Thievery}]]. For the above example, don't tell me to change "Value" to "Skill", because the math won't come out right. It will take whatever I get on the D20 and display it as the result, failing to add in the desired attribute modifier. If I have it written with Skill in both queries and when hovering over the inline roll, it looks like "Rolling 1d20 + Acrobatics = (19)". So it's clearly not adding in any kind of modifier as it should be doing. The below variation works, but doesn't clarify the skill immediately without hovering over the inline text if the player or person doesn't describe the action in enough detail. Acceptable solution I guess. Was hoping for something a bit more direct. Output Example (Generates 2 popups): Garuk makes a skill check (22) to jump. Inline Roll "Rolling 1d20 + 9 Acrobatics = (13) + 9"  @{selected|token_name} makes a skill check ([[1d20+?{Skill|@{selected|Acrobatics} Acrobatics|@{selected|Arcana} Arcana|@{selected|Athletics} Athletics|@{selected|Bluff} Bluff|@{selected|Diplomacy} Diplomacy|@{selected|Dungeoneering} Dungeoneering|@{selected|Endurance} Endurance|@{selected|Heal} Heal|@{selected|History} History|@{selected|Insight} Insight|@{selected|Intimidate} Intimidate|@{selected|Nature} Nature|@{selected|Perception} Perception|@{selected|Religion} Religion|@{selected|Stealth} Stealth|@{selected|Streetwise} Streetwise|@{selected|Thievery} Thievery}]]) to ?{Action|}. Another variation gives a wonky bit of text for the emote text by adding in a number to the actual skill used, rather than just the skill name like I was hoping to do. I reworded it so it's not so terrible looking this way... Output Example (Generates 2 popups): Check Result: 23 Garuk jumps with a +9 Acrobatics modifier bonus. Inline Roll "Rolling 1d20 + 9 Acrobatics = (14) + 9" **Check Result:**  [[1d20+?{Skill|@{selected|Acrobatics} Acrobatics|@{selected|Arcana} Arcana|@{selected|Athletics} Athletics|@{selected|Bluff} Bluff|@{selected|Diplomacy} Diplomacy|@{selected|Dungeoneering} Dungeoneering|@{selected|Endurance} Endurance|@{selected|Heal} Heal|@{selected|History} History|@{selected|Insight} Insight|@{selected|Intimidate} Intimidate|@{selected|Nature} Nature|@{selected|Perception} Perception|@{selected|Religion} Religion|@{selected|Stealth} Stealth|@{selected|Streetwise} Streetwise|@{selected|Thievery} Thievery}]] @{selected|token_name} ?{Action|} with a +?{Skill|Acrobatics|Arcana|Athletics|Bluff|Diplomacy|Dungeoneering|Endurance|Heal|History|Insight|Intimidate|Nature|Perception|Religion|Stealth|Streetwise|Thievery} modifier bonus.
You just need to combine your lines so you only need one query. Try this @{selected|token_name} makes a roll on ?{Skill|Acrobatics, Acrobatics **Check Result:** [[1d20+ @{selected|Acrobatics}]]|Arcana,Arcana **Check Result:** [[1d20+@{selected|Arcana}]]|Athletics,Athletics **Check Result:** [[1d20+ @{selected|Athletics}]]} It's a bit lengthier but it works. 
1459540126

Edited 1459542864
That works perfectly. Guess I should have re-read the macros section on  Drop-Down Prompts for Roll Queries . Thanks so much for your help. :) For anyone reading this, you must use this macro under the gear tab. @{selected|token_name} ?{Action|} and makes a roll on ?{Skill|Acrobatics, Acrobatics. **Check Result:** [[1d20+ @{selected|Acrobatics}]]|Arcana, Arcana. **Check Result:** [[1d20+@{selected|Arcana}]]|Athletics, Athletics. **Check Result:** [[1d20+ @{selected|Athletics}]]|Bluff, Bluff. **Check Result:** [[1d20+ @{selected|Bluff}]]|Diplomacy, Diplomacy. **Check Result:** [[1d20+ @{selected|Diplomacy}]]|Dungeoneering, Dungeoneering. **Check Result:** [[1d20+ @{selected|Dungeoneering}]]|Endurance, Endurance. **Check Result:** [[1d20+ @{selected|Endurance}]]|Heal, Heal. **Check Result:** [[1d20+ @{selected|Heal}]]|History, History. **Check Result:** [[1d20+ @{selected|History}]]|Insight, Insight. **Check Result:** [[1d20+ @{selected|Insight}]]|Intimidate, Intimidate. **Check Result:** [[1d20+ @{selected|Intimidate}]]|Nature, Nature. **Check Result:** [[1d20+ @{selected|Nature}]]|Perception, Perception. **Check Result:** [[1d20+ @{selected|Perception}]]|Religion, Religion. **Check Result:** [[1d20+ @{selected|Religion}]]|Stealth, Stealth. **Check Result:** [[1d20+ @{selected|Stealth}]]|Streetwise, Streetwise. **Check Result:** [[1d20+ @{selected|Streetwise}]]|Thievery, Thievery. **Check Result:** [[1d20+ @{selected|Thievery}]]} Output Example (Generates two popups): Garuk jumps and makes a roll on Acrobatics. Check Result: 17 Variation on the macro for use under the Character handout. /em ?{Action|} and makes a roll on ?{Skill|Acrobatics, Acrobatics. **Check Result:** [[1d20+ @{Acrobatics}]]|Arcana, Arcana. **Check Result:** [[1d20+@{Arcana}]]|Athletics, Athletics. **Check Result:** [[1d20+ @{Athletics}]]|Bluff, Bluff. **Check Result:** [[1d20+ @{Bluff}]]|Diplomacy, Diplomacy. **Check Result:** [[1d20+ @{Diplomacy}]]|Dungeoneering, Dungeoneering. **Check Result:** [[1d20+ @{Dungeoneering}]]|Endurance, Endurance. **Check Result:** [[1d20+ @{Endurance}]]|Heal, Heal. **Check Result:** [[1d20+ @{Heal}]]|History, History. **Check Result:** [[1d20+ @{History}]]|Insight, Insight. **Check Result:** [[1d20+ @{Insight}]]|Intimidate, Intimidate. **Check Result:** [[1d20+ @{Intimidate}]]|Nature, Nature. **Check Result:** [[1d20+ @{Nature}]]|Perception, Perception. **Check Result:** [[1d20+ @{Perception}]]|Religion, Religion. **Check Result:** [[1d20+ @{Religion}]]|Stealth, Stealth. **Check Result:** [[1d20+ @{Stealth}]]|Streetwise, Streetwise. **Check Result:** [[1d20+ @{Streetwise}]]|Thievery, Thievery. **Check Result:** [[1d20+ @{Thievery}]]} 2nd variation on the macro for use under the Character handout to whisper check to a GM. /w gm ?{Character Name and Action|} and makes a roll on ?{Skill|Acrobatics, Acrobatics. /w gm **Check Result:** [[1d20+ @{Acrobatics}]]|Arcana, Arcana. /w gm **Check Result:** [[1d20+@{Arcana}]]|Athletics, Athletics. /w gm **Check Result:** [[1d20+ @{Athletics}]]|Bluff, Bluff. /w gm **Check Result:** [[1d20+ @{Bluff}]]|Diplomacy, Diplomacy. /w gm **Check Result:** [[1d20+ @{Diplomacy}]]|Dungeoneering, Dungeoneering. /w gm **Check Result:** [[1d20+ @{Dungeoneering}]]|Endurance, Endurance. /w gm **Check Result:** [[1d20+ @{Endurance}]]|Heal, Heal. /w gm **Check Result:** [[1d20+ @{Heal}]]|History, History. /w gm **Check Result:** [[1d20+ @{History}]]|Insight, Insight. /w gm **Check Result:** [[1d20+ @{Insight}]]|Intimidate, Intimidate. /w gm **Check Result:** [[1d20+ @{Intimidate}]]|Nature, Nature. /w gm **Check Result:** [[1d20+ @{Nature}]]|Perception, Perception. /w gm **Check Result:** [[1d20+ @{Perception}]]|Religion, Religion. /w gm **Check Result:** [[1d20+ @{Religion}]]|Stealth, Stealth. /w gm **Check Result:** [[1d20+ @{Stealth}]]|Streetwise, Streetwise. /w gm **Check Result:** [[1d20+ @{Streetwise}]]|Thievery, Thievery. /w gm **Check Result:** [[1d20+ @{Thievery}]]}