Re: [tf-dis] Complex highlighting in tf
Brought to you by:
kenkeys
|
From: Colin M. <zix...@gm...> - 2016-04-26 02:24:12
|
Thanks for the hint, but I don't think I quite have it yet.
So if I use this trigger, adding a command for the MUCK, it works:
/def -t'^-Location--.*' trig_whereare = \
:waves.
This makes my character pose a wave. But adding a highlight, which works
on it's own, does not:
/def -t'^-Location--.*' trig_whereare = \
/def -p9 -P1BCblue -F -t'^(\w.*?)\s+\d' highlight_whereare
Thanks.
On Fri, Apr 22, 2016 at 3:46 PM, Jacob Finn <sup...@gm...>
wrote:
> Within that block, it looks like any line that starts with a word
> character is a room name up until some whitespace is followed by a digit.
> This regexp would capture the room name from that: '^(\w.*?)\s+\d'.
>
> Lines outside that block might match but not be room names. You can
> create triggers on the opening and closing lines of the block (e.g.
> '^-Location--', '^\d+ rooms listed') to create and remove (or enable and
> disable) the room-name highlighting.
>
> On Fri, Apr 22, 2016 at 12:07 PM, Colin Mackay <zix...@gm...> wrote:
>
>> I'm still a bit of a noob to tf. Most of my experience has been with
>> logging and simple highlights, but I am wondering if it's possible to
>> highlight text that may change. For the example below, there are room
>> names, who is Present and Directions. The 'Present' and 'Directions' lines
>> are simple, but not always present.
>>
>> Anyone have an idea how I could highlight the room names, which do not
>> have a standard format?
>>
>>
>>
>> WhereAre 1.3b -- 59 Characters awake -- 1 to show a room
>>
>> -Location--------------Characters-Comments-----------------------------------
>> MakerSpots : Bay VI 1 Piper's bay in MakerSpots!
>> - Present: India(Z)
>> = Directions: luge s1 w1, ms, vi
>> Alexondra's (N3 E1, a) 1 Alexondra's restaurant & night club!
>> - Present: Beau Buck(Z)
>> The Rose Garden 7 The Rose Garden, center of the world!
>> - Present: Kamare Sondra Vahno(Z) Dragoncat Jukka Aldrinor
>> = Directions: rose
>> The Cartoon Jungle (N6 E0) 1 It's a jungle out here!
>> - Present: Casandro
>> = Directions: luge n6 e0
>>
>> -----------------------------------------------------------------------------
>> 4 rooms listed.
>>
>> Just FYI... The room names above are:
>> MakerSpots : Bay VI
>> Alexondra's (N3 E1, a)
>> The Rose Garden
>> The Cartoon Jungle (N6 E0)
>>
>>
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> _______________________________________________
>> TinyFugue-discuss mailing list
>> Tin...@li...
>> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss
>>
>>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> TinyFugue-discuss mailing list
> Tin...@li...
> https://lists.sourceforge.net/lists/listinfo/tinyfugue-discuss
>
>
|