You'll need to give more details on how you want that effect.
Most people use TP for similiar effects (TP can be gained by other skills, but is always gained when being damaged) which would not require scripts.
But because of that I haven't heard of a single script that uses a different mechanic for connecting damage to skill use.
There might be a way to use one of the skill condition scripts that allows for coded conditions, please check these (I think both Yanfly and Tsukihime wrote such scripts, but I don't remember their options.
And if a scripter is to write a new script for this request, more info is needed to know what it should do.