|
Acaila Apprentice
Joined: 30 Aug 2001 Posts: 187 Location: Netherlands
|
Posted: Sat Jun 15, 2002 8:45 pm
Request for "hissing" script |
Greetings everyone,
It's been a long time since I've been to this forum (basically since I quit mudding :( ), but I still see some familiar faces around :).
A friend recently asked me to write a script for him that would make his character talk as if he hisses. In effect adding two or three extra s's after each s in a normal word. It's been too long for me, I seem to have lost most of my zMUD scripting knowledge.
I remember seeing a few great scripts like that way back when, but I can't seem to find any of them anymore. Have they been deleted or something, or am I just getting blind? :)
If anyone has one of these lying around or if anyone knows a link to a thread that has one, it would be much appreciated.
Acaila |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Jun 16, 2002 12:44 pm |
Very easy solution is based on the %replace function.
#ONINPUT {({say|gossip|ct}) (*)} {%1 %replace(%replace(%replace(%replace(%replace(%2,"s ","ssss "),"s.", "sss."),"s,","ssss,"),"s?","ss?"),"s!","sssss!")} |
|
|
|
|
|
|
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
|
|