[Home] [Downloads] [Search] [Help/forum]

Log on
Register forum user name Search FAQ

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  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] Refresh page


Posted by Cnauir   (6 posts)  [Biography] 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 :)
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] 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
[Go to top] 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.


1,498 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]