Replacing words

Scripts and support for your favorite MUD client.
Yayaril
Sojourner
Posts: 2552
Joined: Sun Feb 18, 2001 6:01 am
Location: Green Bay, WI

Replacing words

Postby Yayaril » Mon Jun 25, 2001 12:02 pm

Is there any way you can have zmud replace one word or phrase of text with another? For instance, when a caster utters the garbled words for their spell, can you design a trigger to replace those garbled words with real words?

Another question- can you change just one word or phrase's color, as opposed to an entire line?


Yayaril
Altan
Sojourner
Posts: 34
Joined: Sun Jun 17, 2001 5:01 am
Location: Tx
Contact:

Postby Altan » Mon Jun 25, 2001 1:50 pm

Yayaril,
Me and Arishae played with this once before, I wanted to see for instance, heal, instead of pzar, only way we found to do it, was gag the line that has that in it, and echo a new line with the proper word it it, you can color the line however ya want. with the #co or #cw command. you'd have to play with it.
If someone else has figured out something better i'd LOVE to see it also, Was mostly doing this to my cleric cause I got tired of not know what spells the different class's were casting, so i'd capture it, ask them, and make my own syntax line for thier spells.

Altan
Gindipple
Sojourner
Posts: 676
Joined: Fri Jan 26, 2001 6:01 am
Location: O' Fallon, MO. USA
Contact:

Postby Gindipple » Mon Jun 25, 2001 2:33 pm

You want #SUB
and #CW
Xyd
Sojourner
Posts: 177
Joined: Thu Apr 26, 2001 5:01 am
Location: Naperville, IL US
Contact:

Postby Xyd » Mon Jun 25, 2001 3:56 pm

Use #SUBSTITUTE

e.g. For heal:
#sub pzar {heal}

.xyd
Yayaril
Sojourner
Posts: 2552
Joined: Sun Feb 18, 2001 6:01 am
Location: Green Bay, WI

Postby Yayaril » Tue Jun 26, 2001 1:02 am

Thanks, I've gagged out the magic missiles from people, now instead of seeing them utter the words 'wauaq wuggurz' or whatever, I'll imput the line - So-and-so sends forth a volley of magic missiles! or something like that..

Yayaril
Yayaril
Sojourner
Posts: 2552
Joined: Sun Feb 18, 2001 6:01 am
Location: Green Bay, WI

Postby Yayaril » Tue Jun 26, 2001 1:20 am

Substitute only seems to replace a single word- I want to replace an entire phrase or sentence..


Yayaril
Gindipple
Sojourner
Posts: 676
Joined: Fri Jan 26, 2001 6:01 am
Location: O' Fallon, MO. USA
Contact:

Postby Gindipple » Tue Jun 26, 2001 1:34 am

Well in 4.62 I just made this trigger and here is the results:

#TR {A huge buffalo} {#SUB "A vulture"} Test

A huge and regal looking buffalo is grazing here.
A huge and regal looking buffalo is grazing here.

< 351h/368H 89v/90V >
<>
A vulture walks in from the north.

< 351h/368H 90v/90V >
<>
A vulture walks south.
Yayaril
Sojourner
Posts: 2552
Joined: Sun Feb 18, 2001 6:01 am
Location: Green Bay, WI

Postby Yayaril » Tue Jun 26, 2001 1:55 am

Now I have a replacement trigger to replace the word 'Nilan' with 'A stinky pile of refuse'

Yayaril

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 11 guests