Looks like $targetname would do it. Sometime the name does not show up and sometime it shows up as a_large_rat000. Be cool if that underscore and zeros were left out. lol. I could probably try to pause the npc to give it time to target or put in $combatstate==0.
|