Search found 7 matches

by pax
Wed May 20, 2009 6:04 pm
Forum: Help Forum
Topic: Help with events
Replies: 10
Views: 10022

Re: Help with events

So far in the debug all I've seen is that everything that I'm trying to capture gets captured and that my prompt trigger runs successfully. There are no reported errors, and no mention of anything but the initial trigger, from what I can tell.
by pax
Tue May 19, 2009 6:25 pm
Forum: Help Forum
Topic: Help with events
Replies: 10
Views: 10022

Re: I'm confused...

gah. I was being stupid. The function was working, it just wasn't doing anything. Apparently it works all right when I take the math out of the if conditions. Is there a way to leave it there, or should I do math outside of the conditions before plugging it in, or am I just using an incorrect syntax...
by pax
Tue May 19, 2009 1:28 pm
Forum: Help Forum
Topic: Help with events
Replies: 10
Views: 10022

Re: I'm confused...

function eventHandlerOnPrompt(event) if affAnorexia == false then if balanceSip then if currentHealth < (3/4 * maxHealth) then send("sip health") balanceSip = false elseif currentMana < (5/8 * maxMana) then send("sip mana") balanceSip = false end elseif balaceToadstool and (curr...
by pax
Mon May 18, 2009 11:41 pm
Forum: Help Forum
Topic: Help with events
Replies: 10
Views: 10022

Re: I'm confused...

Another addition to this. I apologize for being dense or plain stupid, but I don't get what I"m doing wrong with this. In a trigger that fires on my prompt in Imperian: currentHealth = matches[2] maxHealth = matches[3] currentMana = matches[4] maxMana = matches [5] balanceStatus = matches[9] ra...
by pax
Thu May 07, 2009 8:41 pm
Forum: Help Forum
Topic: Help with events
Replies: 10
Views: 10022

Help with events

Not being a trained coder, I'll probably have lots of questions as I work on building a system here. I'll try to keep the lot of them in this thread, unless it's suggested otherwise. For now, if affAnorexia == 0 then if balanceSip == 1 then if 8 * currentHealth < 7 * maxHealth then send ("sip h...
by pax
Thu May 07, 2009 3:33 am
Forum: Help Forum
Topic: Regex issues
Replies: 3
Views: 4876

Re: Regex issues

Cool, thanks very much for the help
by pax
Wed May 06, 2009 1:42 am
Forum: Help Forum
Topic: Regex issues
Replies: 3
Views: 4876

Regex issues

You quickly flow into the (\w+) stance. I use this to capture which stance I'm in as I do my dance as an Idras in Imperian. The stances are: None, Gyanis, Rizet, Laesan, Vae-Sant, and Ein-Fasit. I can catch any but the last two. I guess it's because of the hyphen, but I don't know. Is there any eas...