Firstaid breakthrough?

by Unknown

Back to Mechanic's Corner.

Unknown2010-03-31 20:42:52
So I've been making a config affmessages and firstaid system on Winnae, and I think I may have made a breakthrough.

The way the firstaid system works, is it chains a large number of lines together. It'll show you sending the outr command, then show you outr (unless that fails), then show you send the eat command, then show you eat (unless it fails, again).

From there, you will on the next line see either a prompt, another firstaid message (this is if the cure didn't do anything) or a cure message.

I'm thinking that with multiline triggers, I can identify cure messages without actually knowing what they say-- because if it's not a prompt or another firstaid message, it has to have been a cure message. From there I use a table to remove one affliction I have that is cured by that type. And of course, if a cure is used and doesn't heal anything, it removes all afflictions of that type.

I haven't tested it in a fight yet, but based on my experiments with adding afflictions and sipping various poisons, it seems to work. What do you guys think of it as a way to not have to gather cure messages immediately? You could plug them in as you acquire them of course for more accuracy.
Unknown2010-04-01 10:22:47
I think you want to track the correct afflictions, not just guessing. FirstAid does have priorities defined, if you're using the actual curing queue stuff.
Unknown2010-04-01 16:39:34
Well, you can't track the actual afflictions if you don't have the cure messages tongue.gif But doing this would keep the system for looping because you didn't remove something, and if you were able to keep on using the cures, would eventually remove all the affs if not necessarily in the best order.
Sior2010-04-01 16:45:13
Currently the firstaid herb, salve, purgative, and focus queues are in order alphabetically, if that helps. Aeon and sap healing are a bit more properly ordered.
Unknown2010-04-01 18:09:20
Wow, thanks for that smile.gif If I can figure out a good way to alphabetize then, it should be able to heal the afflictions in the correct order too, without knowing the healing messages. Strange thought!

Since I have your attention though, apparently... can we please get a config option for clotting? Pwease? smile.gif

I was playing yesterday and clotted through 2/3rds of my mana when my HP was almost full, off of like one firstaid curequeue command sad.gif
Ssaliss2010-04-01 18:52:10
QUOTE (Jello @ Apr 1 2010, 08:09 PM) <{POST_SNAPBACK}>
Wow, thanks for that smile.gif If I can figure out a good way to alphabetize then, it should be able to heal the afflictions in the correct order too, without knowing the healing messages. Strange thought!

Since I have your attention though, apparently... can we please get a config option for clotting? Pwease? smile.gif

I was playing yesterday and clotted through 2/3rds of my mana when my HP was almost full, off of like one firstaid curequeue command sad.gif

The queue is alphabetical, but I'm guessing the order they're cured is random if you've got more than one affliction.
Sior2010-04-01 19:10:44
QUOTE (Ssaliss @ Apr 1 2010, 01:52 PM) <{POST_SNAPBACK}>
The queue is alphabetical, but I'm guessing the order they're cured is random if you've got more than one affliction.

This is correct. Firstaid does not tell you currently what it is attempting to cure, and generally (I think regeneration salve is the only exception), afflictions cured by X are cured in a random order if you have multiple.
Unknown2010-04-01 19:26:09
In other words, suck it up and collect those cure messages. wink.gif
Esano2010-04-02 00:53:18
The other exceptions are fmind and impatience, which is always cured first, and cleanse/scrub (which actually have marginally different cure orders, I believe) which prioritize things, especially over stink.