Quote: 3732h, 2148m ex- (p.s, you probably know th ex part changes if you've eaten kola/cohosh, and if you have balance/eq)
So how exactly would I write that? (please put exactly what I would put in afflic message)
Wow, okay, the Achaea prompt is quite different, but it's still quite easy to make a trigger for that. This would be the text you match on:
^\d+h\, \d+m
Then you have to make sure you set it as a regular expression. This _should_ work, but test it and tell me if it's not. On a side note, you could make another trigger with the exact same text only with round () brackets around the \d+, so it would appear as ^(\d+)h\, (\d+)m to capture your current health and mana and begin sipping health and mana vials when you get low. But that's another thread altogether.
Quote: Second thing, if I were fighting a non-serpentlord class, wouldn't the Prompt trigger (afflictonsoff) affect my healing? because everytime it saw a prompt it would turn my healing off? (I'm probably now realizing something very simple.....so please enlighten me.....)
Yes, yes it would. I tried to remove some of the extras I have in my own subroutines (to personalize it to my class) and removed something I shouldn't have. Actually, since no other classes bite or dstab, it would only happen if you were struck by an arrow (recall that the prompt trigger is only turned on when you are bitten, dstabbed or struck by an arrow, and that it turns itself off when called, the world.enabletrigger "afflictionsoff", 0 does that). To handle this, make the following changes:
Sub snake (a, b, c)
world.setvariable "snake", "on"
world.enablegroup "afflictionson", 0
End Sub
Sub snakeoff (a, b, c)
world.setvariable "snake", "on"
world.enablegroup "afflictionson", 1
End Sub
Sub snakeattack (a, b, c)
dim snake
snake = worldgetvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 1
world.enabletrigger "afflictionsoff", 1
End If
End Sub
Sub snakeattackoff (a, b, c)
dim snake
snake = worldgetvariable ("snake")
If snake = "on" then
world.enablegroup "afflictionson", 0
world.enabletrigger "afflictionsoff", 0
End If
End Sub
It occurs to me now that I really need to choose better names for my triggers and groups. This could be confusing.
Anyway, the addition of the "snake" variable will make sure you have set the system to recognize that you're fighting snakes before switching your afflictions on and off. Just a word of warning though, if you use this system, you have to remember to use the "snakeoff" alias when you're done fighting a snake. If you don't and you start fighting other classes, none of your affliction triggers will fire and you'll be very dead, very fast.
Quote: do I put ALL my triggers in one group? or just the ones that set my variables to show that I have a certain affliction.
Just the ones that change your variables to show that you have a certain affliction.
There are a lot of other tricks to fighting snakes. If you construct your triggers carefully, using regular expressions, you can catch a lot of badly done illusions. I'm not sure about Achaea, but on Aetolia, if the snake knows where line breaks are inserted, they can put the proper amount of spaces into the illusion to get it to break over two lines. So instead of illusioning just one affliction, they'll give you two, like this:
3999h, 4850m ex-
Hmmmm. Why is everything so difficult to figure out?
A pr*ckly st*inging sensatio* overw*elms your body, fad*ng away into numbness.
3999h, 4850m ex-
Of course, if you get your system to work, a smart snake is going to realize what you've done and do this type of illusion.
3999h, 4850m ex-
Exodus sinks his fangs into your body and you wince in pain.
Hmmmm. Why is everything so difficult to figure out?
3999h, 4850m ex-
If they do that, the illusion will trick the system, because the inclusion of the bite in the illusion "fooled" the system into thinking that it was a real attack. I've adjusted my system so that it only pays attention to a bite if it gives me scytherus (it would be dumb for a snake to illusion giving you scytherus) since that tends to be the only thing they use bite for (for other venoms they'll just dstab you, it's more efficient).
If you're a priest or if you have diag in survival, you can set up a nifty system to reset your affliction variables and use diagnose to set them properly. I keep this as a type of "panic button" to use when I'm fighting and I realize the system thinks I have an affliction I don't actually have. Let me know if you're interested in that, but if you thought my other subroutines were long, you should see the ones for this. I need to think of a way to make them shorter.
Anyway, let me know if any of this isn't making sense. I know my explanations can be obtuse. |