Hi everybody As I don't have any experience in programming, I'd like to apologize for what seems to be basic question, but after having read quite a lot of internet pages and wikis, I still have no idea what's wrong with my macro... I'd like to run a silent perception check for my party (composed atm of Gruuf and Gruuf2) with the Pathfinder Sheet If I select either one of the players and use the macro : /w gm &{template:pf_generic} @{selected|toggle_accessible_flag} @{selected|toggle_rounded_flag}{{color=@{selected|rolltemplate_color}}} {{header_image=@{selected|header_image-pf_generic}}} {{subtitle}} {{name=[Perception]( <a href="http://www.d20pfsrd.com/skills/perception" rel="nofollow">http://www.d20pfsrd.com/skills/perception</a>)} } {{Gruuf =[[(1d20 + [[@{Gruuf|Perception}]] [Perc] + [[@{Gruuf|perception-racial}]] [Race] + [[@{Gruuf|perception-trait}]] [Trait] + [[@{Gruuf|perception-feat}]] [Feat] + [[@{Gruuf|perception-item}]] [Item])]]}}{{Gruuf2 =[[(1d20 + [[@{Gruuf2|Perception}]] [Perc] + [[@{Gruuf2|perception-racial}]] [Race] + [[@{Gruuf2|perception-trait}]] [Trait] + [[@{Gruuf2|perception-feat}]] [Feat] + [[@{Gruuf2|perception-item}]] [Item])]]}} there's no problem whatsoever. However if I use : /w gm &{template:pf_generic} @{toggle_accessible_flag} @{toggle_rounded_flag}{{color=@{rolltemplate_color}}} {{header_image=@{header_image-pf_generic}}} {{subtitle}} {{name=[Perception]( <a href="http://www.d20pfsrd.com/skills/perception" rel="nofollow">http://www.d20pfsrd.com/skills/perception</a>)} } {{Gruuf =[[(1d20 + [[@{Gruuf|Perception}]] [Perc] + [[@{Gruuf|perception-racial}]] [Race] + [[@{Gruuf|perception-trait}]] [Trait] + [[@{Gruuf|perception-feat}]] [Feat] + [[@{Gruuf|perception-item}]] [Item])]]}}{{Gruuf2 =[[(1d20 + [[@{Gruuf2|Perception}]] [Perc] + [[@{Gruuf2|perception-racial}]] [Race] + [[@{Gruuf2|perception-trait}]] [Trait] + [[@{Gruuf2|perception-feat}]] [Feat] + [[@{Gruuf2|perception-item}]] [Item])]]}} it returns the error : TypeError: Cannot read property 'substring' of undefined I understand some of the code used (I copy pasted it from a website and tweaked it a bit), but I don't really understand how that template thingy works :s Hope you can help me Corwin