Ok, so I have this script, and it does its job wonderfully:
Obviously, the &C and &R and the like are my mud's colour coding. What I have done to help with roleplaying a bit, is for each of my characters, I've set up a colour scheme and a accent function on all IC channels. The accent function works fine, adjusting for each character depending on the language they are currently speaking. It's awesome and I get lots of Roleplaying cudos.
What happens is, whenever I speak, the first letter of the message is Bright Yellow, and the rest comes as Brown. It's a cool affect that I like a lot. Now, here's what I want to do:
I want to make it so not just the first letter of the whole message, but rather the first letter of each sentence is the bright yellow. (Or red for another character, or green for another character)
I've tried combining this alias with another that matches all single periods and takes the first letter after \s+ and then does that, using "keep evaluating" in each of the aliases, the one above, and the one with the periods. It doesn't seem to work, it crashes the client, actually.
Is there a way I can do this? I've tried all sorts of things and even have a few more ideas. But I've run out of time tonight and wanted to go ahead and ask you guys.
<aliases>
<alias
match="^chat (.?)(.*)"
echo_alias="y"
group="Neo"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>if Speaking == nil then
Speaking ="basic"
end --if
if Speaking == "basic" then
Send("chat &R(&CIn a Neutral Corellian accent&R): &Y%1&O%2")
elseif Speaking == "clan" then
Send("chat &R(&CIn clan, in a Neutral Corellian accent&R): &Y%1&O%2")
else
Send("chat &R(&Cheavily accented&R): &Y%1&O%2")
end</send>
</alias>
</aliases>
Obviously, the &C and &R and the like are my mud's colour coding. What I have done to help with roleplaying a bit, is for each of my characters, I've set up a colour scheme and a accent function on all IC channels. The accent function works fine, adjusting for each character depending on the language they are currently speaking. It's awesome and I get lots of Roleplaying cudos.
What happens is, whenever I speak, the first letter of the message is Bright Yellow, and the rest comes as Brown. It's a cool affect that I like a lot. Now, here's what I want to do:
I want to make it so not just the first letter of the whole message, but rather the first letter of each sentence is the bright yellow. (Or red for another character, or green for another character)
I've tried combining this alias with another that matches all single periods and takes the first letter after \s+ and then does that, using "keep evaluating" in each of the aliases, the one above, and the one with the periods. It doesn't seem to work, it crashes the client, actually.
Is there a way I can do this? I've tried all sorts of things and even have a few more ideas. But I've run out of time tonight and wanted to go ahead and ask you guys.