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


Joined: 18 Dec 2002
Posts: 27
Location: USA

PostPosted: Fri Jun 20, 2003 9:18 am   

input trigger problems
 
I am attempting to create a trigger that replaces all the letters said with another character. I have a few problems, I can't get the syntax correct for replacing each different letter in a word and I can't keep the mud from receiving the initial command. Example:
say abc de fgh
That is what the mud sees and then it returns:
You say 'abc de fgh'
What I am trying to do is replace abcdefgh with say.. zyxwvuts, a with z, b with y etc, so that when it inputs it into the mud it returns:
You say 'zyx wv uts'
and nothing else. Also, I would like to do the opposite. Whenever anyone says something:
%1 says '%2'
The trigger unscrambles/scrambles what you actually see.

Any help would be so appreciated!
Reply with quote
ogretooth
Newbie


Joined: 16 Jun 2003
Posts: 6

PostPosted: Fri Jun 20, 2003 10:35 am   
 
You should check out the 'Decoder Ring' script in finished scripts for a way to do this. Sorry don't have a link, but you can try a search.

Have fun!

OgreTooth
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jun 20, 2003 11:28 am   
 
Take a look at the %subchar function.

Kjata
Reply with quote
Skaphia
Beginner


Joined: 18 Dec 2002
Posts: 27
Location: USA

PostPosted: Sat Jun 21, 2003 12:20 pm   
 
perhaps I should mention I have vs. 5.55, i can't seem to find anything that will help.
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