Error on Trigger - Function call

Post Reply
User avatar
Rakon
Posts: 350
Joined: Tue Feb 16, 2010 7:41 pm
Contact:

Error on Trigger - Function call

Post by Rakon »

I've been having an issue for a while, with a function being called on a prompt.

On the IRE mud Achaea, I have a prompt trigger that calls the prompt() function.

In this prompt function, I delete the entire line, and reecho out the prompt for the way I want to view it.
This reparsing/echoing works, flawlessly. There is never a missed prompt/trigger. However, within this prompt() function, I also call ANOTHER function to cure. THIS cure() function WILL NOT run, unless another line is recieved, AFTER the prompt. That is, if the last line recieved and in the output window, is a prompt, the cure function does not run, until another line is parsed. Why?

Example:
cure() function is called on the line AFTER a prompt. Not on the prompt. Please look at the time stamps. siz seconds of time between the prompt calling cure() and the actual action.

4865h, 2811m CXEK||HeSFT -<21:03:19:519>
<-DEF DWN->: Mass down!
4865h, 2796m CXEK||HeSFT -<21:03:19:799> [-15m]
A ghostly apparition glides into view from the west.
amas
apply mass
4865h, 2781m CXEK||HeSFT -<21:03:25:450> [-15m]
You take out some salve and quickly rub it on your skin.
<-DEF UP->: You got MASSED!
696 applications of mass remaining.
4865h, 2781m CXEK||HesFT -<21:03:25:545>

Post Reply