Hello all, I am working on a project and would like some of the community's help figuring this one out.
My goal is to have a sound effect fire off any time an actor's HP drops to, or below, a set threshold - maybe 25% - as a warning to the player. This warning sound would not sound off again until the Actor's HP is brought up ABOVE this threshold, and then back to the warning limit. (I am not looking for a constant beeping sound, a one-off "this character is in danger" trill is all.)
I'd like this sound to fire off per-character. For example, if "Mark" takes a hit and drops to 20% of their max HP this sound fires, and then in the same round if "Lisa" takes poison damage and drops to 17% of their max HP, this sound would fire again. If Mark and Lisa do not change their health or it drops lower the sound does not fire, since neither of them went "above" the 25% warning threshold, thus "resetting" the warning.
I currently have an extremely simple Troop Event on my troops but this only fires once, for the 5th actor in the database. (This was mostly created as a proof of concept.)
My goal is to have a sound effect fire off any time an actor's HP drops to, or below, a set threshold - maybe 25% - as a warning to the player. This warning sound would not sound off again until the Actor's HP is brought up ABOVE this threshold, and then back to the warning limit. (I am not looking for a constant beeping sound, a one-off "this character is in danger" trill is all.)
I'd like this sound to fire off per-character. For example, if "Mark" takes a hit and drops to 20% of their max HP this sound fires, and then in the same round if "Lisa" takes poison damage and drops to 17% of their max HP, this sound would fire again. If Mark and Lisa do not change their health or it drops lower the sound does not fire, since neither of them went "above" the 25% warning threshold, thus "resetting" the warning.
I currently have an extremely simple Troop Event on my troops but this only fires once, for the 5th actor in the database. (This was mostly created as a proof of concept.)