Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ detecting hitpoints with a trigger

detecting hitpoints with a trigger

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Cnauir   (6 posts)  Bio
Date Sat 25 Jan 2020 03:58 PM (UTC)
Message
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 :)
Top

Posted by Fiendish   USA  (2,555 posts)  Bio   Global Moderator
Date Reply #1 on Sat 25 Jan 2020 07:31 PM (UTC)

Amended on Sat 25 Jan 2020 07:34 PM (UTC) by Fiendish

Message
Quote:
Can i

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

https://github.com/fiendish/aardwolfclientpackage
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,889 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.