Lionel V. said: I don't understand a problem i Have on a script from Nick Olivo. I can't find anywhere where to contact him directly so i take my chance on you, maybe you can help. I Want to use the Custom spell book script from nick. on("chat:message", function(msg) { if (msg.type == "api" && msg.content.indexOf("!customSpellbook") == 0){ var args = msg.content.split(/\s+/); var spellName = args[1].toLowerCase(); var spellLevel = Number(args[2]); var tokenid = msg.selected[0]._id; var token = getObj("graphic",tokenid); var charID = token.get("represents"); var tokenName = token.get("name"); switch(spellName){ case "magicmissile": magicMissile(spellLevel); break; case "scorchingray": scorchingRay(spellLevel,tokenName); break; } sendChat("API",`!modbattr --charid ${charID} --lvl${spellLevel}_slots_expended|-1`); } }); function magicMissile(spellLevel){ var numberOfDarts = spellLevel + 2; var dartOutput = ""; for(counter=1;counter<=numberOfDarts;counter++){ dartOutput+=`{{Dart ${counter} = [[1d4+1]]}}`; } var outputMessage = `&{template:default} {{name=Magic Missile}} ${dartOutput}`; sendChat("API",outputMessage); } function scorchingRay(spellLevel,tokenName){ var numberOfRays = 3 + (spellLevel-2); var rayOutput = ""; if(spellLevel<2){ sendChat("CustomSpellbook","Scorching Ray requires at least a level 2 spell slot"); return; } for (counter=1;counter<=numberOfRays;counter++){ rayOutput+=`{{Ray ${counter} Attack [[1d20+@{${tokenName}|spell_attack_bonus} ]]=[[2d6]] Fire Damage}}`; } var outputMessage = `&{template:default} {{name=Scorching Ray}} ${rayOutput}`; sendChat("API",outputMessage); } I created the ability on my character sheet, i select my character, i use the token action button but i get an error message telling me that no ability was found.... I really don't get it. I have the ChatsetAttr installed as well...I control the character, it represents the character and so on.... I've checked it all... Thanks for your help if you can,or indicate a way to contact Nick directly if you don't have time to have a look at my issue.... Where do I go wrong. Now, I am no expert by any stretch of the imagination, but it could be because you created the ability in the character sheet instead of dragging and dropping from the compendium?