Download Game! Currently 131 players and visitors. Last logged in:ElwynesHurinArcanautTume

BatMUD Forums > Batclient > Re: Triggering

 
 
#1
25 Nov 2014 21:54
 
 
Hello, I was attempting to recreate one of my tinyfugue scripts in batclient
and I kept running into a looping issue and couldnt figure out why.
This script simply takes your combat hits, gags them, then reprints
them with a rank at the end. The ranks are derived from
"help hit messages xxx" and look similar to this...
You scrape Golden eagle causing a small scratch. (4/26)

When I attempted to do the same thing in batclient, it would give a
stack overflow error, and loop out of control and I couldn't figure out
why. Thela kindly took a look at the script and made 1 change, the
capital Y at the beginning of the line I was writing to the mud from
the client was changed to lowercase, and the looping stopped.
This seems to me that the batclient triggers on TEXT IT ECHOES to
the screen as well as text received from the mud. IMO this is kind of
stupid. Perhaps other people like this feature but to me it makes
no sense, it limits what you can echo to the screen because you
might just trigger on what you are echoing.

Just my 2 cents.

--Hair

 
 
 
Hair
N e w b i e  H e l p e r
3y, 197d, 4h, 43m, 13s old
Level:
100
 
 
#2
25 Feb 2015 00:48
 
 
You can get around it by using a script that calls ParsedResult trigger(),
processing the argument, then returning the processed argument. It will not be
acted upon by any other script or plugin if you return anything other than
null.

 
 
 
Cream
28d, 21h, 56m, 36s old
Level:
51