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
➜ Tips and tricks
➜ UOSSMUD need assistance making personal wimpy
UOSSMUD need assistance making personal wimpy
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Selvokaz
(2 posts) Bio
|
Date
| Wed 14 Nov 2018 01:30 PM (UTC) |
Message
| Is there a way to make a wimpy trigger, that works off percentages of whatever the mud displays my current HP as vs my Max HP? Basically I want to make a trigger that no matter what my max hp is when that number is below say 40% i automatically use a healing spell/skill.
HP is usually displayed like this in the mud.
HP: 1084/1619
the 2nd number is a example of the max hp, and the 1st is current.
How could i go about doing this? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 14 Nov 2018 08:05 PM (UTC) |
Message
| Well, yes there is. The trigger would be simple enough, matching on:
You could "send to script", divide one number by the other, and work out the percentage.
However you would need to be careful that you don't use up all your mana casting healing spells on yourself if the MUD doesn't immediately update your hit points. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Selvokaz
(2 posts) Bio
|
Date
| Reply #2 on Wed 14 Nov 2018 08:16 PM (UTC) |
Message
| I have no idea on how to create any triggers more complicated capturing the text i want to trigger off of, and then entering the command string I want to happen after words. Any kind of scripting or coding might as well be alien to me. How would I go about setting up what you're proposing? | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #3 on Thu 15 Nov 2018 10:10 PM (UTC) |
Message
| |
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.
15,465 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top