trigger help

Scripts and support for your favorite MUD client.
amolol
Sojourner
Posts: 688
Joined: Mon Sep 30, 2002 5:01 am

trigger help

Postby amolol » Tue Oct 24, 2006 4:55 am

so i rolled a snake the other day and i had a thought. because of the way snakes and their speach patterns are depicted i was wondeing if there was a way, then it occured to me. if i alias say to emote %1 says ' ' then it would work out. but all i would need is the code to change my speach.

so in short what i need is a set of code that will allow me to double the s's in my speach and have other language modifications

i would like it to apear as %1 says 'thiss iss a ssnake'

possible randomize weather there is a double or triple s?

any thoughts or ideas would be much appriciated
i dont know what your problem is, but i bet its hard to pronounce

myspace.com/tgchef
moritheil
Sojourner
Posts: 4845
Joined: Wed Jan 31, 2001 6:01 am

Postby moritheil » Tue Oct 24, 2006 2:04 pm

1. Make a variable string that eats up what you're about to say.
2. Do a replace within that string of "s" -> "sss." Make sure this part doesn't trigger on itself.
3. Spit out your variable string.

This method should avoid messing with your commands that happen to contain s.
Yotus group-says 'special quest if you type hi dragon'
Shevarash OOC: 'I feature only the finest mammary glands.'
Silena group-says 'he was so fat and juicy..couldnt resist'
amolol
Sojourner
Posts: 688
Joined: Mon Sep 30, 2002 5:01 am

Postby amolol » Wed Oct 25, 2006 1:41 am

sorry mori i didnt process that, you wanna putit in lamens terms for me? i got the part about the variable for say. which is what i wanted but the rest i didnt get
i dont know what your problem is, but i bet its hard to pronounce



myspace.com/tgchef
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Wed Oct 25, 2006 12:41 pm

Code: Select all

#ALIAS ssay {say %replace( %0, s, ss)}

if you insist that it has to be say instead of ssay then you can just:

Code: Select all

#ALIAS say {sa %replace( %0, s, ss)}
amolol
Sojourner
Posts: 688
Joined: Mon Sep 30, 2002 5:01 am

Postby amolol » Wed Oct 25, 2006 7:55 pm

thank you disco
i dont know what your problem is, but i bet its hard to pronounce



myspace.com/tgchef

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 7 guests