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/Ability not working

Hello, I am working on an ability macro and have no idea why it isn't working. For context; "/w Dan ?{Augment Type| Weapon, [Weapon](~Ki-Sarge|Weapon)| Unlock The Seals, [UnlockTheSeals](~Ki-Sarge|UnlockSeals)}" This is under the abilities of a specific character. (Pay no attention to one of my player's silly name :P) When I use the test function, the macro works perfectly, but if i use the macro properly, it fails. If you look at what was actually being inputted into roll20, it changes between the two buttons. The test button inputs the text above exactly as written. The 'proper' button, however, inputs  "%{Ki-Sarge|Augments}" Which ends up with "[Weapon](~-M8D0ddQmIaSn_8IlPiB" in the chat log It seems to be accurately grabbing the roll query, but I have no idea why it isn't working. Anybody know why its failing and hopefully a way to fix it? Thanks!
1595206739
Oosh
Sheet Author
API Scripter
Try this: /w Dan ?{Augment Type| Weapon, [Weapon](~Ki-Sarge|Weapon)| Unlock The Seals, [UnlockTheSeals](~Ki-Sarge|UnlockSeals)} Also, do you really need the button? You're already making the choice in the pop-up Query, do you want to just activate the Ability instead of having to click a second time? /w Dan ?{Augment Type| Weapon,%{~Ki-Sarge|Weapon}| Unlock The Seals, %{Ki-Sarge|UnlockSeals}} This would also avoid the need for all the HTML replacement.
First one works, thanks! The second one doesn't work, I originally tried that but couldn't get it to work and ended up going with the other way.  says no ability found for  %{~Ki-Sarge|Weapon}
1595218640

Edited 1595218688
Oosh
Sheet Author
API Scripter
Ah yeah, sorry. You would have to use HTML replacement in the Weapon and UnlockSeals macros in order to use them from a Query. This is why most people go for chat menus instead of Query nesting.