|
Forlarren Newbie
Joined: 02 May 2002 Posts: 4 Location: USA
|
Posted: 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? |
|
|
|
Forlarren Newbie
Joined: 02 May 2002 Posts: 4 Location: USA
|
Posted: 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. |
|
|
|
Forlarren Newbie
Joined: 02 May 2002 Posts: 4 Location: USA
|
Posted: 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. |
|
|
|
|
|
|
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
|
|