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


Joined: 01 Jul 2002
Posts: 17
Location: USA

PostPosted: Wed Jul 03, 2002 6:09 pm   

Hissing Script
 
I am looking for a hissing script, such that every s I type is doubled. Example:
I type say This is a sample.
The MUD received Thiss is a ssample.
There is a post regarding this elsewhere, but the posted script did not work. I have seen the stuttering script and while it is elegant, It doesn't fit my needs. ANy help?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Jul 03, 2002 6:17 pm   
 
http://www.zuggsoft.com/forum/search.asp

Searched "hissing" and I got:

Examples

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
bkarasek
Beginner


Joined: 01 Jul 2002
Posts: 17
Location: USA

PostPosted: Wed Jul 03, 2002 6:36 pm   
 
Yes, thank you, I did that as well. The hissing script listed under that search crashed my computer. I need a new one, better one, etc.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Jul 03, 2002 6:56 pm   
 
Hmm perhaps you should uncheck the
trigger on trigger in the options tab. I find if
you don't you easily loop things especially
with #ONINPUT triggers.

To replicate every s into 2

#ONINPUT {({say|gossip|ct}) (*)} {%1 %replace(%2,"s","ss")}




Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
bkarasek
Beginner


Joined: 01 Jul 2002
Posts: 17
Location: USA

PostPosted: Wed Jul 03, 2002 8:08 pm   
 
Okay, I must be dumber than I thought. When I paste
#ONINPUT {({say|gossip|ct}) (*)} {%1 %replace(%2,"s","ss")}
Into the text box, it creates a trigger as it should, but it does not work. I get the MUD's error message for entering a non-command command.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Jul 03, 2002 8:20 pm   
 
Just surfed the forums to find the option
to take the trigger on trigger off.

Cut and paste this into the command line
area where you type commands to the mud.
I am not sure what you mean by text box.

#ONINPUT {({say|gossip|ct}) (%*)} {%1 %replace( %2, "s", "ss")} {notrig}

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Jul 05, 2002 7:14 am   
 
A simple alias should do the trick. You might be able to combine these into one alias, but I've only tested them as individual ones.
#AL say {~say %replace("%-1",s,ss)}
#AL gossip {~gossip %replace("%-1",s,ss)}
#AL ct {~ct %replace("%-1",s,ss)}


LightBulb
Senior Member
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