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 .
×

Having trouble with this nesting macro

So I am trying to make a nesting macro for my characters to use for rolling characteristics. Much like a dice nesting macro where the individual dice are in a nice template and you can click and roll. I have everything setup but when I click the button it does not roll. I tried making it on the character sheet and on the macros page to see what was wrong but I cannot quite figure it out. This is for Dark Heresy 2. Here is what I have for the code for the template and button prompt. /w gm &{template:default} {{name=Characteristic}} {{Roll=[WS](!#13;#WS ) }} Here is what I am using for the code on both the chracter sheet and the macro page. /w gm &{template:default} {{name=Weapon Skill}} {{Degrees=[[((@{WeaponSkill} + ?{modifier|0})-1d100)/10]] }} I would like to use this for weapon selection as well though after reading not sure if I should instead go with a roll query. Especially for reactionary actions.
1604233022
Oosh
Sheet Author
API Scripter
There's different syntax for the two. Collection macro buttons look like this: [Label](!
#Macro) and Ability macro buttons like this: [Label](~character|macro) A couple of things to note: character ability macros are not case sensitive, while Collection macro names are . The HTML replacement in the Collections version, 
, will be lost if it's in a Collections macro and you re-open it after saving. To avoid that, either have all the macros on a macro character sheet , or store the escaped HTML in an Attribute on a character sheet somewhere, and use that instead, e.g. [Label](@{macro|13}#Macro) and then store !
 as an Attribute '13' on the character 'macro'
Thank you very much! :)
I also had another question. Would this work the same with typing your weapons as an ability or would that be something else?
1605003241
Oosh
Sheet Author
API Scripter
Do you mean entering your weapon attack as an Ability macro on your character sheet? That can be accessed directly with %{character|ability} or if you wanted a button: [Button Label](~character|ability)