|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|