Simple Zmud question

by Shihsou

Back to Mechanic's Corner.

Shihsou2004-12-29 00:26:53
This is something that should be easy, but I can't think of how to do it at the moment, and I've been up for over 24 hours now, so....

Anyway, I just need to know how to parse equilibrium for a flag for use in an #IF statement.
Daganev2004-12-29 00:29:53
theres two ways of doing it,
one is from your prompt, the other is from messages that tell you when you gain it back and actions that make you lose it.

for your prompt, just use something like -ex*- and -x*-
Shihsou2004-12-29 00:44:05
Thanks Dag. I'm very very tired. Ugh. And as far as the whole messaging thing goes, it'd be too hard to script for every command I'm able to input. wink.gif
Unknown2004-12-29 13:10:14
Here's a simple prompt trigger, and all it does is check for balance and equilibrium:

CODE
#TRIGGER {^%dh, %dm, %de, %dp (%w)} {#if (%pos(e, %1)) {#var Eq 1} {#var Eq 0};#if (%pos(x, %1)) {#var Bal 1} {#var Bal 0}} "" {nocr|prompt}


Change the pattern for the prompt to match your own prompt. This is the default health/mana/ego/power pattern. You can also set it up to match things like deafness, blindness, kafe defense, prone, and even health, mana, ego, power, endurance, and willpower. Just make sure you disable the carriage return setting (nocr) and enable the prompt setting (prompt) in the options list.
Shihsou2004-12-29 19:47:04
Yeah, I got that. I just couldn't think of it at the moment when I first posted, as I'd been pulling one of my 72 hour insomniathons.