First I check if I am afflicted by doing a diagnose using an alias "diag"
The above makes check diag true so the system knows it was me that did it and not a illusion. ResetAff is to make all the afflictions = 0
First will trigger on the diagnose.
You are:
allergic to sunlight.
afflicted with clumsiness.
an insomniac.
H:2705 M:3436 E:99% W:100% XP:20% [-b]
The above is to check if I did indeed do a diagnose and changes Aff.Clumsiness to 1 which it does.
Now on prompt I run a HerbCuring function
That just says if I'm all above then cure it. It doesn't.
EatHerb function is as so
Now this changes my herb balance to 0.5 and changes it back when it says I have regained balance. tempTimer is there just incase something goes wrong.
Check.EatHerb is to make sure that I have indeed have eaten a herb.
I've been on this all day yesterday and half today. I got it working once but then it just stopped yet I'm sure I haven't done anything different.
Can anyone help me?
I also have done a quick video so you can hopefully see the problem. http://screencast.com/t/YTY0ZDI1NDE