detecting hitpoints with a trigger

Posted by Cnauir on Sat 25 Jan 2020 03:58 PM — 2 posts, 10,351 views.

#0
Can i write a trigger command that activates when my character falls below a certain amount hps?

i have a "prompt" where hps are shown like this:

(90/100)

where the first is current hps and the second is max hps. This is not visible all the time though.


But whenever i i recieve damage i get an automated message showing me my currents hps and %, it looks like this:

Hp: 1000 100%

Hp: 900 90%

is there some way to detect when i get a hp notification and im below 50% - and then to send commands to the mud? forexample casting a healing spell or drinking a healing potion.

something like this:

Detect hp below 50% - drink potion - cast healing spell

thanks in advance :)
USA Global Moderator #1
Quote:
Can i

Yes. What have you tried so far? Have you seen the tutorial on how to make a trigger?