Autosipper

by Hazar

Back to Mechanic's Corner.

Hazar2005-02-15 08:22:55
What's the basic mechanic behind an autosipper?
Daganev2005-02-15 08:23:44
I don't trust autosippers.
Unknown2005-02-15 08:25:47
QUOTE(Hazar @ Feb 15 2005, 09:22 PM)
What's the basic mechanic behind an autosipper?
50970


What exactly do you mean?

Just find someone else's, and have a look at theirs.
Vesar2005-02-15 08:28:03
Basically, you sip health, mana, or bromides when you need it.

So, what you need to do is create a system that keeps track of your health, mana, and ego.

Then, every time the prompt rolls around, do a check to see if these numbers are out of the parameters you set. Example: You set your health to sip if you're health goes below 2000. You take some damage. Your system realizes that your health is 1500, 500 below your threshold. Then, it checks to see if you have elixir balance. If you do, it sips health. If you don't, it waits.

This is just the basics. Hope it helps.
Unknown2005-02-15 08:30:24
Make it so it sips at a percentage loss of your health, not at a specific number... This will save you having to update it as you level-up.
Gwylifar2005-02-15 14:59:32
Of course the tricky thing is to make it deal with deep wounds damage. And then, depending on who you're fighting at the moment, sometimes you may have to prioritize mana over healing at different levels, sometimes the other way around, sometimes deep wounds over both. A smart enough autosipper for hunting is one thing, one smart enough for fighting is a lot more interesting.
Shiri2005-02-15 15:05:19
Quite apart from illusionary wounds abilities killing autosippers.
Vesar2005-02-15 18:40:44
Yes, there are all kinds of things to watch out for, especially with combat. My advice: Start with an easy to setup sipper, then add a feature, test it, add a feature, test it, etc.

Mine currenty sips all potions, deals with deepwounds, and will statue me if I go below a certain amount of health.

With knights and guardians, you have your chanting to think about as well.

Good luck!
Terenas2005-02-15 18:47:21
Or you could just manually sip while fighting, and maybe autosip when hunting. I don't like to rely on completely auto healing while fighting, too many random factors.
Amaru2005-02-15 20:11:58
#if (@hpbal=1 AND @donehp=0 AND @active=1) {#if (@hp<(@maxhp/2)) {drinkhealth} {#if (@ego<(@maxego/5)) {drinkbromide} {#if (@donedeep=0) {#if (@deephead<85) {ahhead} {#if (@deepchest<85) {ahchest} {#if (@deepgut<85) {ahgut} {#if (@deeprightleg<85 OR @deepleftleg<85) {ahlegs} {#if (@deeprightarm<85 OR @deepleftarm<85) {aharms} {#if (@hp<(@maxhp-690)) {drinkhealth} {#if (@mana<(@maxmana-450)) {drinkmana} {#if (@ego<(@maxego-550)) {drinkbromide} {#if (@hp=@maxhp) {#if (@deephead<100) {ahhead} {#if (@deepchest<100) {ahchest} {#if (@deepgut<100) {ahgut} {#if (@deeprightleg<100 OR @deepleftleg<100) {ahlegs} {#if (@deeprightarm<100 OR @deepleftarm<100) {aharms}}}}}}}}}}}}}}}}}}

*sage*
Gwylifar2005-02-16 03:11:05
That's about where mine is now, but I'm going to make a scoring-based one that adapts to different enemy types eventually.