 |
acaykath Wanderer
Joined: 03 Aug 2005 Posts: 84
|
Posted: Sat Nov 17, 2007 5:11 am
Insert Linebreak and Multiline triggers |
I have been looking to make cMud do more for me since I use only a small portion of its features. One thing I've been looking into is the mapper, and I am concerned that because there is sometimes no line break between the end of my prompt and the room name that this may make it difficult to use the mapper.
Because of this I wanted to create a trigger that detected the last line of my prompt (already escape charactered and wildcarded):
| Code: |
| ~({N|}{E|}{S|}{W|}{U|}{D|}~)~(%dqt~) |
And when it was detected, should anything follow it, the two would be separated into two distinct lines for the purpose of the mapper, and just making it look cleaner. The problem is, I am unsure about how to do this, but it must be a common problem so hopefully someone will have a solution for me.
Another this is that my prompt is 4 lines long:
| Code: |
(+++++++++)( )
(1130hp/1130hp 1210m/1210m 400mv/400mv 10b/10b)
(0g 0s 725048d 4119qp 40422xp)
(NESWUD)(0qt) |
The help file mentions tagging the prompt, and I have, one line at a time. It it possible to capture all four lines at once and tag them at the same time, or must I continue to use my triple trigger approach? Also which line is it important to tag, should I have just tagged one of them or should I leave all four tagged as prompt?[/quote] |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Nov 17, 2007 8:37 pm |
For your first part, here's what you want.
| Code: |
| #TRIGGER {(~({N|E|S|W|U|D}*~)~(%dqt~))} {#sub {%concat(%cr,%1)} } |
For the second stage what you want is a multi-state trigger. Try using a #CONDITION |
|
_________________ Asati di tempari! |
|
|
 |
|
|
|
|
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
|
|