Im looking for a system of triggers that will heal me when my health drops below a certain amount it looks like this
H:3420 M:2140
However, i whould like it to have 2 settings, since most of the time, i dont really need max health while fighting so one whould heal whenever i drop to 3420, another whould heal whenever i drop to 2800. Also they cant conflict, since i need to time the drinking (you can only drink once per 2 seconds or so)
Or at least a idea how to do it... thanks!
Maybe a variable like h=health it should start healing at?
Ah, I had an extensive trigger/script that did something like that, it would match on a low HP, then do something, disable the trigger, then re-enable it a while later. I think I posted it on the forums. Let me look.
The Autohealer still exists, it's in Mushclient's own Plugins site. That one allows you to set as many health levels as you want. For example you could set up aliases to match on "h1", "h2", "h3", "h4", etc, and have each set the AutoHealer's healthFloor variable to a different value (in % of max health). The prompt trigger in that might need tweaking to suit your mud, but really - no better auto-sipper exists yet for IRE games ;)
I get errors from the health bar and the auto healer.... how can i do this wrong! *cry*
Auto healer
Line 47: C:\Program Files\MUSHclient\worlds\constants.vbs was not found. (include file not loaded)
Line 5: Tag not used: <plugin> (muclient)
Line 175: Tag not used: <script> (muclient)
Health bar
Line 26: Tag not used: <plugin> (muclient)
Line 77: Tag not used: <script> (muclient)
Line 166: Tag not used: <script> (muclient
You also need to change the path of the constants file, if youve installed MC somewhere besides default. Go to line 47 (or whatever it ends up being) and make sure you point to the constants file.
The 'tag not used' error is thrown when an unrecognized xml tag is used in a file loaded by Mushclient. If <plugin> and <script> tags aren't recognized then I can only guess that your version is 3.24 not 3.42, try downloading the most recent one - 3.49 and loading the plugins in that one
Double post nick? Tisk tisk. And I think he already changed that per my suggestion. Or at least, he seemed to have changed that from the time he reported his version.
Im probably wrong though. But I havent been able to replicate.
<edit in response to nicks response, since I didnt feel like starting a whole new post just for some personal chit chat>
Suuuure. Im sure it was an error nick, you just like bumping up your total posts. Not like you cant just edit the number yourself or anything. Congrats on 6K for that matter. Although, how can we all be sure its really not just 3K X 2?
Nah, Im just pulling your leg. And actually, Ive no idea if hes changed it or not, I just had to add SOME relevance to this thread to justify commenting on your duplicate.
As for the double post, which I have now deleted in case you are wondering what Flannel is talking about, that used to happen if you simply hit "refresh" in your browser after doing a post. However the forum normally discards exact duplicates, if done in sequence. I must have done some sequence that defeated that test.
Import is used to take segments of XML, like a single trigger and 'import' it into you 'main' world file, not load plugins. The reason it rejected the plugin tag and the script is because world files are not plugins and cannot contain scripts, so it ignored those parts and added everything else to your main world.
The prompt trigger might be different from your actual prompt. It is set to capture a prompt of the type <1234h, 1234m ex->, if you use willpower or endurance in it then it won't work. I am going to post a new version of that plugin soon, that one uses the OnPluginPartialLine event and has a more encompassing prompt regular expression. You can wait for that one, or post your prompt here and I'll make you a regexp to substitute in the prompt trigger.
Im on Aetolia, it was made for Achea, they are pretty much the same. Im not trying to complain i think its a awsome plugin... if i can get it to work. You think its becuase my constats.vbs is in worlds/plugins for anyreason )it came this way, dont ask me, i tried moving, it didnt help much)
im still getting
Line 8: C:\Program Files\MUSHclient\worlds\constants.vbs was not found. (include file not loaded)
Have you moved MC from the default directory to somewhere else, or is the constants file just missing? If it's missing, you could reinstall MC to fix it, otherwise you would have to change the value in the registry... Or perhaps remove the <include "constants.vbs"> line from the script, it might work.
If you are playing Aetolia then the prompt trigger will be off, and the plugin won't work, since in order to heal your health and mana it needs to know what it is, and the only way to know that is through the prompt. Post your actual prompt here, and I'll give you instructions on where to put it in the plugin.
You should be able to change the plugin to reflect the exact location of your constants.vbs file. It isn't a huge amount of work. Alternatively remove that line altogether, it sometimes isn't needed, or finally load the contants.vbs file into a word processor (eg. notepad) and paste it literally into the plugin at the start of the <scripts> section, so it is there in person, and not included.
If the plugin loaded OK it will be in the plugins list, otherwise not.
And paste it over the same line in the plugin. That will replace the regular expression for the Achaean prompt with a one for Aetolian format, and the plugin should start working.
Seems i found version 1.0 can you point me to 1.5?
all i have close to that is this:
<trigger
enabled="y"
keep_evaluating="y"
match="^(\d+)h, (\d+)m (\D{0,7})\-.*$"
name="prompt_trigger"
regexp="y"
script="DecipherPromptInfo"
sequence="1"
other_text_colour="black"
other_back_colour="black"
Check this post: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4190&page=999999
The link there takes you to a site with a zip which includes AutoHealer, that zip also contains a COM object - StatusGauge - used to display bar gauges, and used by AutoHealer 1.5 for displaying health/mana. If you aren't going to use StatusGauge then make sure you read the description of the AutoHealer plugin very carefully, especially the last bit about version 1.5, as it tells you how to disable StatusGauge support in the plugin - requires simply changing one number.
Also, it seems like I screwed up with the prompt trigger. Status flags in Aetolia take the form of '[ceb]', while I presumed that they were the same 'ceb-' as in Achaea. Use this line instead of the one I posted before:
Allright its working! both the bar and the healing! 2 quick questions?
1) can you change the layout of the health system from
H:XXXXXXXXX
M:XXXXXXXXX
to
H:XXXXXXXXX M:XXXXXXXXX
3 Does the timing of the healing zero down a bit more? it seems a tad long right now ( say .5 seconds to long or something? Hopefully the timing is the same as it is in achea.
Thanks for all your help! Id offer to give you what ive made, but its nothing all that impressive.
Yes, you can reduce the balance timing but it'll never be really accurate, since it's based on how often your prompt shows up and a Mushclient timer with 1 second precision. To change the timings you need to edit the values inside the TimingExpired function in the <script> section. Lines 367 and 378, I believe. The lines are commented to indicate where to change the timing values. Try setting them to 4.5, 4.6, 4.7 and see how it works.
As for changing the layout of StatusGauge bars from vertical to horizontal... Nope, can't do that right now, you can change the number of bars, but not the general layout. I plan to allow for a gauge with vertical bars:
X X
X X
X X
X X
X X
X X
H M
But that's likely to take some time, as I first want to finish an extra output window to replace Notepad, and then take a break from wxPython madness. But I'll think about your horizontal idea, if it can actually be done quicker than the vertical above than I might first do that instead.
Is there a way to set and alias for the % it heals at? 85% is a bit high (i have trollish regen) but when im fighting a person... id like that 85 again....
on a side note, anyway you can get it to do:
H: XXX%healthXXX
M: XXX%manaXXXXX
You can set the minimum levels of health and mana for drinking elixir, you can also set a minimum level of health to eat moss at. Here are some aliases.
If you are using a version with OnPluginPartialLine callback instead of a prompt trigger (1.5-1.51) then you need to replace the value of the "re" script variable, near the very beginning of the plugin's <script> section, with:
im having some problems with my auto healer too, i believe ive got everything set out lovely, its just that i get this one little problem which screws the whole thing up. When the H:2300 M:3100 comes up it, wont set off drink mana straight away, it waits untill another output comes from the mud then it triggers the drink mana which results in me drinking twice. So ill try to put an example of what happens
You form a lash of fire, and send it to scorch the flesh of a water weird.
H:2536 M:3074 B:100% [csb -b]
As you see it gets below 3100 which the mud is ment to trigger off drink mana, but it sits there untill another command pops up.
So it goes like this
You form a lash of fire, and send it to scorch the flesh of a water weird.
H:2536 M:3074 B:100% [csb -b]
drink mana
A water weird hits you with a glancing cut.
it wouldnt of ever triggered unless that next command comes up or i send something, is there possibly a switch or something to stop this annoying accurance?
Thats because your prompt doesnt have a newline sent, you get this from the mud:
H:2536 M:3074 B:100% [csb -b]
when you NEED:
H:2536 M:3074 B:100% [csb -b]\n
since MC doesnt evaluate triggers without the newline.
You have a few options, if you can add a newline to your prompt, that will solve it, since your prompt will be:
H:2536 M:3074 B:100% [csb -b]\n
(empty line, no new line here, not yet)
There are also some other options, a lot of people like the onpartialline plugin callback. Which I think is an updated version. I think it can be found in this thread, along with help setting it up to work with your prompt.