Firstly does your npcactions section have at least 4 items in it? you'll get the errors above if you only have one item. Also have you created a macro by the name of raw-traits ? Looking at the page you linked, this macro /w gm @{selected|wtype}&{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}}
/w gm @{selected|wtype}&{template:npcaction} {{rname=@{selected|repeating_npctrait_$1_name}}} {{description=@{selected|repeating_npctrait_$1_desc}}}
/w gm @{selected|wtype}&{template:npcaction} {{rname=@{selected|repeating_npctrait_$2_name}}} {{description=@{selected|repeating_npctrait_$2_desc}}}
/w gm @{selected|wtype}&{template:npcaction} {{rname=@{selected|repeating_npctrait_$3_name}}} {{description=@{selected|repeating_npctrait_$3_desc}}} is expected to be named raw-traits . This macro /w gm #raw-traits &{noerror} is simply a way to call that same macro and suppress the errors seen above. You should not have that last line inside the raw-traits macro, that'll definitely cause errors. If you call the first section raw-traits , and then create another macro, called lets say, raw-traits-noerrors , and make it just this /w gm #raw-traits &{noerror} it should hopefully work. I dont use that sheet so cant say if it will work, but its worth try. If it doesnt work, you might need to add &{noerror} to the end of each row of the first macro.