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

GURPS Macro for multiple rolls (and possibly query)

Hi! This is my first time making a macros, so please bear with me. I'm playing a fantasy bard on our GURPS campaign who casts spells via music. It has been fun and games, but every time I have to cast a spell, the game kind of halts because I have to roll a Sing check, then an Instrument check, then the appropriate spell check. I managed to add the fluff part of giggles (because of course every bard can figure this out!), but I haven't managed to find out how to roll the skills and spells. It would be required that the rolls calculate GURPS criticals normally. Since most of the time we are using Theater of the Mind instead of grid, it would be nice if I could call the macro without having to select the token (not sure if possible, since I'm not the GM). What I have so far: /em let's the magic of music fly! **SHOW TIME!** [solo intensifies](<a href="https://i.gifer.com/WTnW.gif" rel="nofollow">https://i.gifer.com/WTnW.gif</a>) Here are the following IDs for the skills: Sing:&nbsp;-lqydltybvvquyutqx3m Play instrument:&nbsp;-lqzhletlg6chdkf9zvw I know it's also possible to nest in a roll query and it would be sweet if someone helped me with making a query of the following skills/spells: Musical influence (skill):&nbsp;-lthpw4yzffkuc-3-8rz Superficial healing (spell (grimoire tab)):&nbsp;-lqcaspz3svsoiioxwwq Deep healing (spell (grimoire tab)):&nbsp;-lqcauhwdlebgpwxiazz Thanks for the attention.
1573380573
GiGs
Pro
Sheet Author
API Scripter
How did you get the IDs if you aren't a Pro user? Are they the rowids of a repeating section? rowids are not the same thing as the attribute id, but the attribute id is not exposed anywhere on the character sheet. You cant get it without an api script. Rather than using the ids exactly, what's your character name, and whats the skill name in the character sheet. You can do this @{CHARACTER|SKILL} to address a specific character's skill. So if your character is called Rollo, and the skill is called Sing, you just use @{Rollo|Sing}. If it's in a repeating section, you'd use @{CHARACTER|repeating_SECTIONNAME_ROWID_SKILL} So if that sing id above is the row id, and the repeating section is called skills, that would be @{Rollo|repeating_skills_ -lqydltybvvquyutqx3m _Sing} There's a possibly easy way though. Instead of using the row id, you can use the row number. The first row is $0, the second is $1, the third is $2, etc. since counting starts at 0. So, if Sing was the 7th row in the repeating_skills section this would be @{Rollo|repeating_skills_ $6 _Sing} This isnt quite as reliable, because you might reorder the rows and would need to change the number. The id never changes, but is a little harder to get for most people. Using these approaches means you can grab any skill or ability from the sheet and dont have to use a script to get its ID. Important: &nbsp;if you store these in an Ability on your character sheet (Attributes &amp; Abilities tab), you dont need to use the character name, You can just use the skill name, which may be one of these depending on whether your skill is in a repeating section or on its own. @{Sing} @{repeating_skills_06_Sing} @{repeating_skills_ -lqydltybvvquyutqx3m _Sing} All that said, addressing the skills means you still have to construct a roll, that follows the GURPS rules; But if your sheet already has roll buttons, you can just call them directly, and put them in a macro. Find the roll name (which will be something like roll_Sing , and ignore the roll_ part), and replace the @ with a % like so %{Rollo| Sing } %{Rollo| repeating_skills_ -lqydltybvvquyutqx3m _Sing } I think that syntax must always include the character name (or selected/target). If you want to embed a button in a macro, you'd use this syntax: [Rollo Sings!](~Rollo|Sing} [Rollo Sings!](~Rollo|repeating_skills_ -lqydltybvvquyutqx3m _Sing) The bit inside the [ ] is the label of the button. It can be anything, its just what appears in chat on top of the button you click. Using the tips here you should be able to construct you macro. If you need any more help, supply some more details about how the sheet is set up (character name, are the skills and spells inside repeating sections, what are they called, etc) and we can help more.
Hey! Thanks for the help. I managed to get most of it together. I think RowID for repeating lists is open to public (at least in GURPS sheet). In the wiki , they don't specify that it limited to pro or anything. On the sheet, I just clicked on the dropdown arrow for details. After playing around a bit and failing to make anything to fancy, I made two separate character sheet macros: one for the instrument and singing, with a button to roll "Musical Influence" skill; and one that lists spell buttons (Character's name is Alamir and the language is Portuguese): Hora-do-show (roll skill for singing and playing) [solo intensifies](<a href="https://i.gifer.com/WTnW.gif" rel="nofollow">https://i.gifer.com/WTnW.gif</a>) /em está **tocando** o terror! %{Alamir|repeating_skills_-lqydltybvvquyutqx3m_vsSL} %{Alamir|repeating_skills_-lqzhletlg6chdkf9zvw_vsSL} [Influência musical](~Alamir|repeating_skills_-lthpw4yzffkuc-3-8rz_vsSL) Magias (list some spells) [Conceder energia](~Alamir|repeating_spells_-lqc82tqylv6huk9gxyx_vsSL) [Conceder vitalidade](~Alamir|repeating_spells_-lqc8yuvbcsohdbnzaio_vsSL) [Cura superficial](~Alamir|repeating_spells_-lqcaspz3svsoiioxwwq_vsSL) [Cura profunda](~Alamir|repeating_spells_-lqcauhwdlebgpwxiazz_vsSL) [Despertar](~Alamir|repeating_spells_-lqc8r0er-lmv88gw8ql_vsSL) I still have a few questions: On the first ability, Hora do show, the pop-up window only asks for one modifier and it applies to both singing and playing instrument at the same time. Is there a way to make it ask for a different modifier for each skill? I couldn't figure out how to add the "Magias" ability as a button on "Hora-do-show" to give me the option of quickly calling the spells macro. I'll admit this isn't really important right now, since I've added them to the macro bar, but I may need it for future uses (I also DM sometimes). Is it possible to do that? Is there any way to edit chat buttons? More precisely, putting them in the same chat line, changing their colors and maybe making the buttons private so that only me and the GM can see them. This is an if-not scenario from the previous one: I have been trying to make these Roll Queries work, but I can't seem to get them right. If possible, could you provide an example where it would open a drop-down menu to each of the spells above (if it isn't too much work, of course)? Thanks again for the help.
1573419378

Edited 1573419504
GiGs
Pro
Sheet Author
API Scripter
Do those macros do anything? Attributes in a repeating section are made of 3 components: repeating section name row id specific attribute name&nbsp; so for instance it looks like these two %{Alamir|repeating_skills_-lqydltybvvquyutqx3m_vsSL} %{Alamir|repeating_skills_-lqzhletlg6chdkf9zvw_vsSL} are missing the 3rd part, the attribute name. It also looks like they are the same thing listed twice. Right click on one of the buttons, select Inspect, and look at what is selected. It should be a button that starts roll_ something, or an attribute that starts attr_something. The something is what you want, and that goes on the end of the names above. For your questions: 1. On the first ability, Hora do show, the pop-up window only asks for one modifier and it applies to both singing and playing instrument at the same time. Is there a way to make it ask for a different modifier for each skill? I cant answer this without seeing the specific macro contents. But it's likely theirs a roll query inside them and they use the same name. You'd likely need to build custom macros for each skill to fix this. You'd start by copying the existing macro, and tweaking it. 2. I couldn't figure out how to add the "Magias" ability as a button on "Hora-do-show" to give me the option of quickly calling the spells macro. I'll admit this isn't really important right now, since I've added them to the macro bar, but I may need it for future uses (I also DM sometimes). Is it possible to do that? Are you asking if you can have a single button to pick your spells from? If so, the best way to do that is to use a Chat Menu (see the Stupid Tricks thread ). 3. Is there any way to edit chat buttons? More precisely, putting them in the same chat line, changing their colors and maybe making the buttons private so that only me and the GM can see them. Indeed there is. Just dont put linebreaks in your code. Instead of&nbsp; %{Alamir|repeating_skills_-lqydltybvvquyutqx3m_vsSL} %{Alamir|repeating_skills_-lqzhletlg6chdkf9zvw_vsSL} [Influência musical](~Alamir|repeating_skills_-lthpw4yzffkuc-3-8rz_vsSL) If these were all buttons, you could do [whatever this is](~{Alamir|repeating_skills_-lqydltybvvquyutqx3m_vsSL}) [another button](~{Alamir|repeating_skills_-lqzhletlg6chdkf9zvw_vsSL}) [Influência musical](~Alamir|repeating_skills_-lthpw4yzffkuc-3-8rz_vsSL) Though you'll need to fix those buttons, because as I said they are missing attribute names. You can also put them in a roll template like the example at the end of this post. If you start each line with /w gm , only you and the GM will see it. You cant change the button oclors - the GURPS sheet probably has a rolltemplate which defines its own colours. 4. This is an if-not scenario from the previous one: I have been trying to make these Roll Queries work, but I can't seem to get them right. If possible, could you provide an example where it would open a drop-down menu to each of the spells above (if it isn't too much work, of course)? A drop down menu to pick the spells would be a nightmare to write, because of the issue described here: Nesting Roll Queries . You'd need to rewrite all your spell macros and combine them into one giant macro, with a lot of special syntax. A much better way is the previously mentioned Chat Menus, where you whisper to yourself a set of buttons, and then click them to launch. That would look something like /w gm &amp;{template:default} {{name=My Spells}} {{[spell name](~repeating_spells_ROWID_BUTTONNAME) [another spell name](~repeating_spells_ROWID_BUTTONNAME) [a 3rd spell name](~repeating_spells_ROWID_BUTTONNAME) }} note that if its in a repeating section, the button name will be the same for all spells, but the rowid will be different.
I'm going to drop this before I edit the macros any further: they work. Here's a print from the chat after rolling Hora-do-show and Magias respectively (before editing): &nbsp; All the buttons work when I press them. I think the issue here is that the button name on the GURPS sheet is vsSL (all of the buttons have them). I'll try these other suggestions out and report back if I had any success. Once again, thanks.
1573544204

Edited 1573544365
Update: I managed to make the macro within a macro work and managed to get all the buttons in the same line. I also made a variant with a template, but since I didn't like it much, my main one won't have it. Since I can't be bothered to go too in-depth to make custom rolling macros, I made a separate button for skills of singing and playing instrument, but I still need to manually scroll up or go back and forward pressing buttons in the macro bar and chat. This is likely to be the last request on the subject: is there a way to execute two functions via the same button? More specifically, I'd like to make Canto (Singing) and Violão (Guitar) recursively call the macro they are in (Hora-do-show) whenever I press their buttons to make the main macro option reopen for me. Current macros code: /em está **tocando** o terror! [solo intensifies](<a href="https://i.gifer.com/WTnW.gif" rel="nofollow">https://i.gifer.com/WTnW.gif</a>) [Canto](~Alamir|repeating_skills_-lqydltybvvquyutqx3m_vsSL}{~Alamir|Hora-do-show) [Violão](~Alamir|repeating_skills_-lqzhletlg6chdkf9zvw_vsSL)[Influência musical](~Alamir|repeating_skills_-lthpw4yzffkuc-3-8rz_vsSL) [Magias](~Alamir|Magias) Once again, thanks for the help.
1574118311
MadCoder
Pro
Sheet Author
Felipe, that's a cool macro.
Thanks!