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
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Mon Jul 19, 2004 7:33 pm   

changing words
 
hello i play materia magica, as seen by my signature :) i would like to know what the scripting would be to change words to others... i wanted to do this in the past... but now i forget what exactly it was. heres an example thogh.
Code:
Kyros is right here to the west. i would like to change right here to (1)

thank you
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Mon Jul 19, 2004 7:45 pm   Re: changing words
 
This may do it for you:

#TRIGGER {%w is (right here) to the %w.} {#PSUB "(1)" %x1}

Or if it's alright for every occurrence of "right here" on the MUD to be replaced, you could do something like:

#TRIGGER {right here} {#SUBSTITUTE "(1)"}
_________________
- Charbal
Reply with quote
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Mon Jul 19, 2004 11:58 pm   
 
thanks, it works great!
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