Conflicting Equilibrium Info

by Raikas

Back to Mechanic's Corner.

Raikas2008-05-25 15:21:40
Okay, y'all. I've been playing with Nezha's free script (which is great, btw!), and it's gotten me into Lua. As my project to learn Lua tables and whatnot, I created a table of all my defenses and an alias to set specific defenses. For example, "defset basic" populates a "deflist" table with defenses to be set, and I cycle through them as the required equilibrium (general eq, or psionics channels) is available. Now... this works just fine, for the most part. I've hit a snag and I'm not sure if it's something that is intentional in Lusternia or if it's a bug, so I thought I would bring it here to find out. And if it's intentional, you can help me figure out how to deal with it (but we'll get to that if we have to. don-t_mention.gif ).

After setting a psionics defense that does -not- lock a channel, my prompt still shows the "e" at the tail end that indicates I have equilibrium. Since I process my eq and balances from the prompt, this creates a conflict: it looks like I have equilibrium, but if I try to use anything else I get the "you must regain equilibrium first" message. Here's how it looks in my output window, with my Notes prefaced by >.

CODE
psi super ironskin
You focus your mind on your skin, feeling it thicken and becoming as hard as iron.
3318h, 3612m, 2955e, 10p, 14200en, 16145w esix-
>defpause_27019
>--//---------------
>Defcount: 4
>Defname: ironskin
>Curr_def already set.
>--//---------------
>Defcount: 5
>Defname: malkuth
>Curr_def not set.
>Curr_balreq met.
evoke malkuth
You must regain equilibrium first.
3318h, 3612m, 2955e, 10p, 14200en, 16145w esix-


The Superstratus indicator disappears from my prompt, but it still says I have general equilibrium. Is this -supposed- to be reported this way, or is it a bug?
Malarious2008-05-25 15:48:58
QUOTE(Raikas @ May 25 2008, 11:21 AM) 515196
Okay, y'all. I've been playing with Nezha's free script (which is great, btw!), and it's gotten me into Lua. As my project to learn Lua tables and whatnot, I created a table of all my defenses and an alias to set specific defenses. For example, "defset basic" populates a "deflist" table with defenses to be set, and I cycle through them as the required equilibrium (general eq, or psionics channels) is available. Now... this works just fine, for the most part. I've hit a snag and I'm not sure if it's something that is intentional in Lusternia or if it's a bug, so I thought I would bring it here to find out. And if it's intentional, you can help me figure out how to deal with it (but we'll get to that if we have to. don-t_mention.gif ).

After setting a psionics defense that does -not- lock a channel, my prompt still shows the "e" at the tail end that indicates I have equilibrium. Since I process my eq and balances from the prompt, this creates a conflict: it looks like I have equilibrium, but if I try to use anything else I get the "you must regain equilibrium first" message. Here's how it looks in my output window, with my Notes prefaced by >.

CODE
psi super ironskin
You focus your mind on your skin, feeling it thicken and becoming as hard as iron.
3318h, 3612m, 2955e, 10p, 14200en, 16145w esix-
>defpause_27019
>--//---------------
>Defcount: 4
>Defname: ironskin
>Curr_def already set.
>--//---------------
>Defcount: 5
>Defname: malkuth
>Curr_def not set.
>Curr_balreq met.
evoke malkuth
You must regain equilibrium first.
3318h, 3612m, 2955e, 10p, 14200en, 16145w esix-


The Superstratus indicator disappears from my prompt, but it still says I have general equilibrium. Is this -supposed- to be reported this way, or is it a bug?


This is correct.

You are only able to use eq with channels all open. So you cant use all 3 channels then staff or something. Think of channels like one third of eq, if any of them are not available you dont have eq.

EDIT: A simple fix, that I dont knwo of causing any problems is that when a channel isnt open change eq to 0, since it should check the e and say 1 but will then see a channel is closed and turn it off that should help depending how fast the system fires.
Unknown2008-05-25 17:12:56
Make a Lua function that tells you when you have equilibrium (enough to cast a spell), and have it return 0 when any one of your channels is used or you really don't have equilibrium.