am not sure if i ever did that before but what you can do is, in action player, add:

var tests;

while(player)
{
tests=my.hp;

......

then use the var 'tests' in the digit parameter . . .