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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: Wed Apr 12, 2006 4:35 am   

Accent Idea
 
Okay.. i have an idea i think will work for a find and replace type accent.

Here is what little i have so far:

#CLASS {Accent}
#VAR originalspeech {what are you doing foul knave?}
#VAR newspeech {what are you doing foul knave?}
#VAR royalaccent {youonemyOuriWemeYournamehere}
#VAR roughaccent {iAhillAh'llyouyerimAh'mgoing togonnawhat are youwhat'cha}
#ONINPUT {^'(*)$} {
originalspeech=%1
newspeech=@originalspeech
~' @newspeech
} "" {notrig}
#CLASS 0

Now i need so be able to sort the variables pairs by the length of the key (so that multi-word phrases can be replaced before the parts of it are to managled to be recognized).

Then parse @originalspeech for they keys and replace with the value.
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: Wed Apr 12, 2006 4:39 am   
 
hmm... the lil hollow square spereating the keys and values didnt quite post onto the forum properly... odd.
_________________
Discord: Shalimarwildcat
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