|
hykou Wanderer
Joined: 29 Apr 2004 Posts: 63 Location: USA
|
Posted: 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 |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: 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 |
|
|
|
hykou Wanderer
Joined: 29 Apr 2004 Posts: 63 Location: USA
|
Posted: Mon Jul 19, 2004 11:58 pm |
thanks, it works great!
|
|
|
|
|
|