|
AnatoleFarmond Newbie
Joined: 08 Mar 2010 Posts: 4 Location: Avalon: The Legend Lives
|
Posted: Mon Mar 08, 2010 5:59 am
#CAP Multi-Line = Answered |
Alright, So I've been bopping around these forums, and searching everywhere for the answer to this problem. Most likely, as is murphy's law, the answer is right under my nose so I figured it was just time to ask.
Anyway, my question is a follows:
How do you make a #CAP take multi line tells?
For example:
Someone tells you, "I've got a lovely bunch of cocoanuts
there they are standing in a row. Bit ones small ones some
as big as your head, give 'em a twist a flick of the wrist
that's what the showman said".
Right now my code looks like this:
#TRIGGER tells you
#CAP tells
#GAG
#BEEP
Now I tried using this also... but nothing happened:
#TRIGGER ^(%w) tells you,
#CAP tells
#GAG
#BEEP
I'm stumped... anyone who can help me out it will be greatly appreciated. |
|
Last edited by AnatoleFarmond on Mon Mar 08, 2010 4:32 pm; edited 1 time in total |
|
|
|
Martaigne Wanderer
Joined: 05 Jan 2002 Posts: 88 Location: Atlanta, GA
|
Posted: Mon Mar 08, 2010 6:27 am |
You need to make a condition for each successive line of the tell and capture that as well, but the question would be how to determine when the tell ended.
#TRIGGER {^(%w) tells you,} {#CAP Tells;#GAG;#BEEP}
#COND {*} {#CAP Tells;#GAG;#BEEP} {Within|Param=1} |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Mar 08, 2010 2:40 pm |
The other option is to see whether your mud has an internal setting to turn off server-side line wrapping. If so, you might be able to make the mud put that all on a single line, letting Cmud do the wrapping.
|
|
|
|
AnatoleFarmond Newbie
Joined: 08 Mar 2010 Posts: 4 Location: Avalon: The Legend Lives
|
Posted: Mon Mar 08, 2010 4:32 pm |
Martaigne:
Alright, I input the code you suggested, however... it didn't even read my tells at all. For some reason, I've had trouble when using the ^ function in CMUD.
Rahab:
Awesome, I asked around and found out that it does have a setting to disable server-side wrapping. Which basically solved all of my problems.
Thanks for not only a speedy replies, but a helpful ones!
I appreciate it. |
|
|
|
|
|