|
fazeaway Newbie
Joined: 23 Dec 2001 Posts: 1
|
Posted: Sun Dec 23, 2001 10:37 pm
Need help with this trigger please! |
I'm trying to do a title/race/rank trigger to show me each person's rank etc.
these are the triggers...
#TRIGGER {~[ (*) ~] (*) the Warrior$} {#SUB {~[51 %1 War~] %2 the Warrior}} "warrior-title"
#TRIGGER {~[ (*) ~] (*) the Mage$} {#SUB {~[51 %1 War~] %2 the Mage}} "mage-title"
so I can turn this...
[ Arial ] (PK) Player1 the Warrior
[ Human ] (PK) Player2 the Mage
into this...
[51 Arial War] (PK) Player1 the Warrior
[51 Human Mag] (PK) Player2 the Mage
The problem is, if I turn on ansi trigger for them, so I can color the PK or the race the results look like this...
[51 Arial War] (PK) Player1 the Warrior[ Human ] (PK) [DAWN] Player2 the Mage
It runs the next line into it so to speak...any ideas as to how I can stop it from doing this?
It's driving me absolutely nuts.
Thanks
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Dec 24, 2001 6:38 pm |
Add a carriage return/linefeed to the end, maybe? Or perhaps just one of them, but I've provided both.
#TRIGGER {~[ (*) ~] (*) the Warrior$} {#SUB {~[51 %1 War~] %2 the Warrior%char(13)%char(10)}} "warrior-title"
Another alternative would be to remove the end-of-line character from your trigger so it doesn't get subbed out
#TRIGGER {~[ (*) ~] (*) the Warrior} {#SUB {~[51 %1 War~] %2 the Warrior}} "warrior-title"
LightBulb |
|
|
|
|
|