• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - X% PctHP loss within the last X seconds

Joined
Mar 20, 2024
RedCents
1,051¢
I am coding a certain script that relies on tracking whether any of my group members experiences a rapid loss of HP. So, my aim is to trigger certain actions if any character loses more than X% of PctHP within the last X seconds, but I cannot figure out any logic to get it done.

Any insights? Thanks!
 
I would use a pair of timers and os.time() this will return in seconds and you can do a check if timerb - timera < x then
 
Question - X% PctHP loss within the last X seconds

Users who are viewing this thread

Back
Top
Cart