lunatic mode note tag problems

hi everyone i'm having a little trouble with some of the lunatic mode note tags... i have all of the required plug ins for them and will ask one at a time


first one is blue magic i took the code straight from the tips and tricks page on you tube made by yanfly here is the video 


<Post-Damage Eval>


 if (target.isActor() && target._classId === 1) {


  if (!target.isLearnedSkill(21)) {


   target.learnSkill(21);


    var text = target.name() + ' has learned '


    text = text + Super Sonic + '!';


    $gameMessage.add(text);


  }


}


</Post-Damage Eval>


but when ever the skill is usedon the actor that can learn the skill i get an error:


12662631_584331068385318_3821504540362582400_n.jpg



and here is what it looks like in data base (this could be where the error is occuring


12647279_584331115051980_2787884257357229402_n.jpg
i figured out the problem.... i changed item.name to the name of the skill which is what i thought was suppose to do.... turns out that was cuaseing the syntax error

Original thread: https://forums.rpgmakerweb.com/threads/lunatic-mode-note-tag-problems.56459/