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

Adding inspiration to a skill check

Hello, I just found the old topic where a macro was presented to add Inspiration to a skillcheck. I think I added everything right, but the 1d6 will always result in "0". &{template:pf_generic} @{toggle_accessible_flag} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{scroll_desc=@{scroll-desc}}} {{color=@{rolltemplate_color}}} {{header_image=@{header_image-pf_generic-skill}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=^{acrobatics}}} {{Check=[[ @{skill-query} + [[ @{Acrobatics} ]]  ]]}} @{Acrobatics-ut} @{skill_options} @{Acrobatics-cond-notes} {{generic_note=@{Acrobatics-note}}}+?{Inspiration?|Yes,1d6|No,0} Can anyone see an error in the macro?
1614939962
Ziechael
Forum Champion
Sheet Author
API Scripter
I aren't familiar with the sheet/template but it looks like you've placed your query outside of the template and therefore not as part of the calculation: &{template:pf_generic} @{toggle_accessible_flag} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{scroll_desc=@{scroll-desc}}} {{color=@{rolltemplate_color}}} {{header_image=@{header_image-pf_generic-skill}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=^{acrobatics}}} {{Check=[[ @{skill-query} + [[ @{Acrobatics} ]] +?{Inspiration?|Yes,1d6|No,0}  ]]}} @{Acrobatics-ut} @{skill_options} @{Acrobatics-cond-notes} {{generic_note=@{Acrobatics-note}}}
That did it, thank you.
1614978279
Ziechael
Forum Champion
Sheet Author
API Scripter
No worries, happy to help :)
1614979256

Edited 1614979536
Mhm...or not. The single word skills work fine, but the skills with more words don't. I checked the attributes and noticed that in the macro are a lot "-" where "_" should be. I changed that and it still won't work. Strangley, the "Acrobatic" skill is wrong either and says: "Acrobatics-note" instead of "Acrobatic_notes", but the sheet doesn't seem to mind. Thats the error message I get for the skills: No attribute was found for @{Cinder 'the Crimson' Ash|disable_device-ut} No attribute was found for @{Cinder 'the Crimson' Ash|disable_device_cond_notes} No attribute was found for @{Cinder 'the Crimson' Ash|disable_device-note}
Okay, got it... "-" is actual right. ^^