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
fazeaway
Newbie


Joined: 23 Dec 2001
Posts: 1

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
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