Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Sat Mar 30, 2002 8:55 pm   

#sub and logging
 
I always have logging on.
I have two major sets of #sub triggers.
One is plain text:
(has some small wounds.)->#sub {has some small wounds. [75-89]}

(is bleeding profusely.)->#sub {is bleeding profusely. [30-49]}

etc.. some more of those.
Those log correctly.
I have a second set of triggers, that do not log correctly. If I have log before triggers, then it gives me the pre-subbed, AND after subbed are logged.
Otherwise, nothing is logged, that line will be missing.
this trigger is:
(*)(%e[1~;31m)(*)(%e[0m) (*)->
#if (%ascii(%copy(%1,3,1)) <> 62) {#subst {%1%2%3%4 %5 %arrget(DamageArray,@DamageHash(%3))%{cr}}}

Basic rundown. The if statement runs a hash,
and finds the correct value.
IE misses=0, scratches= [1-4]
grazes=[4-8]
As you can tell, this involves color with the
(%e[1~;31m) and the (%e[0m)

I'm using zMUD 6.16, registered.
Any ideas?
Reply with quote
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Sat Mar 30, 2002 9:07 pm   
 
I modified the trigger to have the following

#if (%ascii(%copy(%1,3,1)) <> 62) {#subst {%1%ansi(high,red)%3%ansi(gray) %5 %arrget(DamageArray,@DamageHash(%3))%{cr}}}

Trying to use the internal %ansi command, but the same exact problem exists.
Reply with quote
Forlarren
Newbie


Joined: 02 May 2002
Posts: 4
Location: USA

PostPosted: Sat Mar 30, 2002 9:34 pm   
 
I changed it to
#subst PIZZA%{cr}
same problem
(reason I have %{cr} at end, is for some reason its stripping the carraige return and I need to add it.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net