[TF] variable help
Brought to you by:
kenkeys
|
From: f00bar at mail.c. (F. Bar) - 2003-05-22 20:33:42
|
Nobody has a solution?
-foobar
----- Original Message -----
From: "Foo Bar" <f0...@ma...>
Date: Wed, 21 May 2003 13:42:57 -0500
To: jo...@st...
Subject: Re: [TF] variable help
> Hey Johan,
>
> That worked great. However, when I tried to apply the same principles to an auto assist function, it
> doesn't work.
>
> /def autoass = \
>
> /set ass1=%1%;\
>
> /def -wfoobar -p999 -t'%{ass1} OBLITERATES * with his deadly *!!' aa1 =\
> /if /eval /test %%foobar_assist==0%;\
> /then /send -wfoobar ass %P1%;\
> /eval /echo %P1%;\
> /set foobar_assist=1%;\
> /endif%;\
>
> /def -p1 -wfoobar -t'You receive * experience points for the kill.' ak1 =\
> /set foobar_assist=0
>
>
> When I look at the variable %{ass1}, which I set to barfoo, it shows:
>
> /eval /echo %{ass1}
> %1%;
>
> I'm guessing that is why it isn't doing anything.
>
> Thanks!
>
>
>
> ----- Original Message -----
> From: Johan van Selst <jo...@st...>
> Date: Wed, 21 May 2003 12:56:03 +0200
> To: Foo Bar <f0...@ma...>
> Subject: Re: [TF] variable help
>
> > Foo Bar wrote:
> > > The following looks like it should work, but it doesn't.
> > > /def fart = /set farthammer=%1
> > > /def -mregexp -t'%{farthammer} farts! Peeeeeeewwwwwwww!!!!' fart1 =\
> > > /echo FART%;\
> > > smack %{farthammer}
> >
> > %{farthammer} is expanded when the fart1 macro is defined - not when it
> > %is triggered. You will want to expand it after calling /fart. Like:
> >
> > /def fart = \
> > /set farthammer=%1%;\
> > /def -mregexp -t'%{farthammer} farts! Peeeeeeewwwwwwww!!!!' fart1 =\
> > /echo FART%%;\
> > smack %{farthammer}
> >
> >
> > Ciao,
> > Johan
> --
> __________________________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
>
> _______________________________________________
> TinyFugue mailing list
> Tin...@tc...
> http://www.tcp.com/mailman/listinfo/tinyfugue
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
|