|
Palmer Novice
Joined: 21 Mar 2003 Posts: 38 Location: USA
|
Posted: Thu Apr 03, 2003 6:48 pm
#COLOR trigger failure |
I have triggers to color different combat messages differently, and I can't figure out why they don't work. Output:
You skewer the paperboy's neck with one of your katars.
The paperboy punches at you but you dodge out of the way.
Hp: 654 (1419) Gp: 243 (294) Xp: 238393
#TR {You {pierce|messily stab|stab|perforate|skewer|impale|run|make a kebab} * with one of your katars.$} {#COLOR 206}
The pattern matches just fine when I test it, and if I use a #show to ouput the text myself, it colors properly, but it won't color the MUD output. I'm perplexed. |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Apr 03, 2003 7:54 pm |
It may not be seeing the end of line correctly. try removing the $ from your trigger and see if it works.
#TR {You {pierce|messily stab|stab|perforate|skewer|impale|run|make a kebab} * with one of your katars.} {#COLOR 206}
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.55a
Zmapper Version 1.14
http://www.dartmud.com |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Apr 04, 2003 3:52 am |
quote:
It may not be seeing the end of line correctly. try removing the $ from your trigger and see if it works.
#TR {You {pierce|messily stab|stab|perforate|skewer|impale|run|make a kebab} * with one of your katars.} {#COLOR 206}
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.55a
Zmapper Version 1.14
http://www.dartmud.com
If it wasn't seeing the end of the line correctly, the trigger would not be firing at all.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Mon Apr 21, 2003 4:42 pm |
I've seen on some muds occationally, some lines of text do not immediatly terminate after the period. sometimes they have a space at the end. I know this is poor mud coding, but it does happen. Therefor ".$" may not work. That is why I suggested removing it, was just a suggestion and since the original poster has not replied, I am gussing he/she has already figured it out by now.
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.56
Zmapper Version 1.14
http://www.dartmud.com |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Apr 21, 2003 11:49 pm |
Ah, seems I misread his post at the end there. I took it to mean that the actual trigger was firing (the pattern matched), but it was the #COLOR command specifically that wasn't doing anything--like when #PCOL had that word-wrap bug. The trigger would fire off just dandy, but only the #PCOL command would not work.
li'l shmoe of Dragon's Gate MUD |
|
|
|
Palmer Novice
Joined: 21 Mar 2003 Posts: 38 Location: USA
|
Posted: Wed Apr 23, 2003 9:16 am |
Sorry about not responding, Talahaski was, in fact, right. Thanks Talahaski!
|
|
|
|
|
|