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
solem
Beginner


Joined: 16 Mar 2004
Posts: 20

PostPosted: Mon Nov 22, 2004 11:48 pm   

Removing Text from string.
 
I currently discoved the use of (&nn) in triggers and am useing it to consolidate multiple triggers with into one Very Happy

In my old triggers I would use {The|A||} to get rid of the THE's and A's at the begining of a string.

i.e.
#TR{^Zone: {The|A||} (%*)$}
Zone: The Good The Bad and The Ugly
%1 would equal "Good The Bad and The Ugly". (Which was perfect)

How can I do this with
#TR {^Zone: (&30)$}

I've searched and searched and tried and tried but can't find anything that works.

A am on the latest and greatest version of ZMud, running XP Pro SP2.

Thank you in advance.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Nov 26, 2004 11:49 pm   
 
I have not used the & in awhile but I think if you Put {} around it, that might solve your problem.

Example:

#tr {^zone: {(&30)}$}
_________________
megamog75 Smile
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere
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