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

[Help] How to disable the the ability to drag and drop of roll buttons ?

1445934485

Edited 1445934532
sioc
Sheet Author
Hello, I almost finished a character sheet, but in my design the fields are filled with skills and not values, so the default request created when you drag and drop the buttons in the macro quick bar are just useless. Is there a way to disable the ability to drag and drop the roll buttons?
1445987156
Lithl
Pro
Sheet Author
API Scripter
sioc said: in my design the fields are filled with skills and not values, so the default request created when you drag and drop the buttons in the macro quick bar are just useless. I'm not sure what you mean by this.
1446028814

Edited 1446030173
sioc
Sheet Author
Ok, looks like my english is not clear enough, so with a sheet like this :  with field like that : <input type="text" name="attr_Fair2"/> and button roll like that <button type='roll' name='roll_@{Fair2}' value='/roll 4dF + 5 as test on @{Fair2}'> It is not working, i can't find a way to have the field value displayed on the dragged and dropped button. so i end with things like that : and it's not working at all (I know logical because you must call a "name" that is available) and if i put the code that way : <button type='roll' name='roll_Fair2' value='/roll 4dF + 5 as test on @{Fair2}'> i got that : It rolls ok BUT there is no interest to having 'fast' roll button if it is to reopen the sheet to see what was the Fair2 skill... So is there a way to fix that or a way to disable the drag to the macro quick bar ?
1446030795

Edited 1446030838
Lithl
Pro
Sheet Author
API Scripter
Attributes will not resolve to their values when used as the names for inputs or buttons, so you cannot fix the "problem" of desiring dynamically-named roll buttons. There is no way to prevent roll buttons from being dragged to the macro bar. But you could just, y'know, not  drag the button there. One thing you can  do is create a macro or ability (named whatever you please) and have the macro body call the roll button. For example, in the Attributes & Abilities tab, create a new ability named "Stealth". In the body of that ability, use "%{Foxy FOX|Fair2}". You'll get an ability macro named Stealth which, ultimately, executes "/roll 4dF + 5 as test on Stealth". You can then use the checkboxes in the Attributes & Abilities tab to put the Stealth ability on your macro bar or your token actions bar.
1446034827
sioc
Sheet Author
Thanks for the clear answer. I'll just write in the sheet description that the usage of the roll buttons of that sheet in the macro quick bar is not working and is not fixable.
1446061675
Lithl
Pro
Sheet Author
API Scripter
It's not really something "broken" that can't be fixed. Dynamic names just isn't a feature that's a part of the system.