Thanks for the reply, Darq. And long time no see.
The following code seemed to work, with only one creepy hiccup.
Code:
OnTextChanged="
WardAmount = (INT(Parent.WardAmount.Text) ## ',' ## '0')
HealthAmount = (INT(Parent.HealthAmount.Text) ## ',' ## '0')
Parent.Test.Text = WardAmount / HealthAmount"
My Ratonga started to shout "I-I-I-I-I----" until I cancelled the Ward, then he began to repeat the phrase "I'll be just a moment, talks amongst yourselves," indefinitely.
But even if I find a way to solve this creepy bug, I'm not sure if CurrentHealth is enough. What I'm trying to accomplish is to make a ward bar that overlaps the health bar: As the ward (or wards) gets damaged, its progress bar shrinks. This way the ward is a visual cue, and there's no need for a list of wards with icons and text.
The best I can do is probably make the health bar purple when the target is protected by a ward, and display the sum of wards.