UOSSMUD need assistance making personal wimpy

Posted by Selvokaz on Wed 14 Nov 2018 01:30 PM — 4 posts, 20,138 views.

#0
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?
Australia Forum Administrator #1
Well, yes there is. The trigger would be simple enough, matching on:


HP: */*


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.
#2
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?
Australia Forum Administrator #3
Please read some of the tutorials here:

http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=120

They show things about scripting and making triggers.