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


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Mon Nov 24, 2003 3:31 pm   

Variables
 
Hi i have this line.

Limdul R'yleh the female drow

and wanna make it
Limdul(Enemy) R'yleh the female drow

With this this type of trigger
{@enemy}
Since i have a list of many enemies.

Anyway todo it?
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Mon Nov 24, 2003 5:28 pm   
 
#tr {^({@enemy}) (*)} {#sub {%1~(Enemy~) "%2"}}

Put () around {@enemy}
This will make it a wildcard
Use sub to replace the line
I used two spaces between #sub and the text because this helps with trigger loops
Also I inclose what I wantd into a {} to make sure every thing got evaluated befor being #sub'd out.
Reply with quote
Trind
Beginner


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Mon Nov 24, 2003 6:02 pm   
 
Worked greatly thanks
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