Re: [tf-dis] Capturing a gagged line in a variable
Brought to you by:
kenkeys
|
From: lost a. <fil...@gm...> - 2016-05-05 03:26:46
|
Pretty sure you'd need to do /eval /send say %{loc} because I think you
need the /eval to expand %{loc} or %{P0}. I'm not 100% sure but it's one of
the first things I try when I experience similar issues.
On Wed, May 4, 2016 at 4:05 PM, Colin Mackay <zix...@gm...> wrote:
> Hello folks.
>
> I've been fiddling with the idea of putting my current location into the
> status bar for a while, just got around to looking into it. Not sure if
> this is the best way, but as I connect to 'freeform' MUCKs, there isn't
> anything specific that I can use for my location, so I created a small
> command that will output:
>
> <loc>Room Name</loc>
>
> My plan was to gag the line, while hopefully figuring out how to place
> that line into a variable. This is my initial test:
>
> /def -ag -t'^<loc>[A-Za-z0-9].*<\/loc>$' loc_name = say %{P0}
>
> And hooray! My character says:
>
> Zxarr says, "<loc>Room Name</loc>"
>
> So I tried going a little farther, which is where I'm starting to lose
> control:
>
> /def -ag -t'^<loc>.*<\/loc>$' loc_name = \
> /set loc=%{P0} \
> /send say %{loc}
>
> Shouldn't this do the same thing?
>
> I've tried %%{P0} as well and replacing %{loc} with %{P0} in the /send
> command...
>
>
> Thanks everyone.
>
>
> ------------------------------------------------------------------------------
> 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
>
>
--
Film the dead; see how they lie.
|