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 for Cthulhu with a drop down

Hi I have been trying to build a macro that allows to select a skill from a drop down list, and then roll the corresponding skill check with the standard Cthulhu template This is useful when you need to interact with many NPCs After many tries clearly I do not know how to program this selection Anyone has ever written a macro like that? Any gidance will be appreciated Thank you
1733969827

Edited 1733970603
Okay, so you want to set up a query to select from a bunch of template rolls? One thing to mind is that in queries you need to replace all instances of closing brace, commas, and pipes with html entities that are not  part of macro, attribute or ability calls (but any such characters in the expanded calls must be similarly substituted - you can't get around the parser by hiding the problem characters in attributes or abilities, because those are expanded before the query), within the query option content. (}, ,, and | are working substitutions for those characters). Armed with that and some elbow grease, you should get it working, but I'm gonna check in a bit if I can write a neater solution. 
Alright, I took a look at the sheet (I'm assuming you're using the 7th edition sheet by roll20), and you're better off using a chat menu instead. The sheet macro for skill checks uses a sheet attribute for the rolls that contains closing braces, so you'd need to replace those with custom versions for each skill, for each character - not worth the effort. The linked page explains fairly well how to set chat menus up, but if you have additional questions, do ask.
Thank you for the answer Somewhat relieved to learn that it is not so easy… I have created many buttons for individual skill rolls: NPC do nor use that many skills… normally. But I was looking for a neater solution. I did not consider chat menus: I will give it a try Thank you again