Balance/Equilibrium Prompt capture in ZMud

by Geb

Back to Mechanic's Corner.

Geb2005-01-05 22:51:36
Is there any way to capture in Zmud via the prompt whether I have balance and/or equilibrium or not? One thing I would like to do is have a check that causes me to use tipheret when I have equilibrium/balance and writhe when that is not the case. I do not want to base the check on basic triggers, because that would be slow and inefficient in combat. (i.e. You do not have balance and such)
Terenas2005-01-05 23:21:16
Yeah. You can capture the 'exkdb' prompt and store it inside a variable, then use position to check to see if that is there. If so, then you have balance or eq. I'll post mine when I'm on my system if someone doesn't do it first.
Geb2005-01-06 00:47:26
Thank you Terenas.
Vesar2005-01-06 00:50:28
You can capture the prompt with:
^(%d)h, (%d)m, (%d)e, (%d)p (%w)-

And check for balance and eq with:
#if (%pos( e, %5)) {I have EQ} {I don't have EQ}
#if (%pos( x, %5)) {I have Bal} {I don't have Bal}

Hope this helps.
Geb2005-01-06 01:03:10
Thank you Vesar. That should help me out. Now I just need to sit down and read up on it. Perhaps I can find other uses for this info.
Vesar2005-01-06 04:56:28
There are lots of uses... for example, you can pick out what defenses you have and keep track of them. I think the most useful application is an autostand script which never lets me be prone without a good reason (i.e. when I say it's ok like meditating).

Glad I could help!
Unknown2005-01-06 13:18:45
QUOTE(Vesar @ Jan 5 2005, 07:50 PM)
You can capture the prompt with:
^(%d)h, (%d)m, (%d)e, (%d)p (%w)-

And check for balance and eq with:
#if (%pos( e, %5)) {I have EQ} {I don't have EQ}
#if (%pos( x, %5)) {I have Bal} {I don't have Bal}

Hope this helps.
25680



This is the sort of prompt trigger I see most people use, and there's just one problem with it. When you have no equilibrium, balance, blindness, deafness, kafe, and you're not prone, all you get is a dash at the end. This pattern won't cover that. Here's what I use to catch all prompts:

CODE
^(%d)h, (%d)m, (%d)e, (%d)p ()
Vesar2005-01-06 15:25:38
Good one... I didn't even notice that it never picked up the dash.
Gwylifar2005-01-06 16:29:20
I've IDEAd the idea of having a CONFIG PROMPT option that replaces/supplements the x with separate flags for arm and leg balances, for those of us who need such things.
Vesar2005-01-06 16:31:54
Good idea. In the meantime, I've had to do a little script to manually track arms and apply that to balance as a whole. Rather annoying, really.

Come on, you gods! Don't leave out the arms!
Unknown2005-01-06 16:40:07
I had fun making triggers to track my arms balance, and then I setup a custom function to determine if I had balance on both arms and in general and just return a single value. Made my scripting a lot easier.