I got the counter working, but the issue I come up with now is that when someone says the sentence I use to trigger the counter it changes one of the statusbaritems to "(name) says - (name)" instead of just keeping the target name as is. Also, when I clear the counter it completely deletes the target name from the statusbar. Although the variable itself never changes from the target name.
So far what I've come up with works as such. I type in tar %0 IE: tar Rugal and I get a statusbar item that looks like Target - Rugal. What I'm desiring is a counter to the right of it that would see "Rugal eats a sensu bean." and add 1 to it. IE: Target - Rugal 0 would become Target - Rugal 1. That is a part I cannot figure out, I've been fiddling with it for a couple hours now. I would also like a command to reset the counter to 0. But as of yet I am unable to get the math and if statements right...
I have been trying to figure out how I could make a counter for when a target "eats a" is seen. I've never been very good at programming, so I was wondering if someone could help me out here. Basically I want to be able to target a character and have their name and a count in the status bar. Then when they were to "eat" an item I would like to have it increase said counter by 1. I've been trying to do this on my own, but I've got a very poor grasp on the variables and math functions and how to combine...