TempTimer with variables

Post Reply
zialeah
Posts: 2
Joined: Sat Jan 24, 2015 8:36 pm

TempTimer with variables

Post by zialeah »

I'm trying to make an alias that will allow me to do one thing to a variable, then do another thing a few seconds later, and another thing a few seconds after that. This is what I've got so far:
pattern: ^hunt (.+)$

send("outr 3 yellowink")
send("outr 1 purpleink")
send("outr 1 greenink")
send("sketch berkana on "..matches[2])
tempTimer ( 1.5, [[send("sketch algiz on "..matches[2])]] )
tempTimer ( 3.0, [[send("sketch jera on "..matches[2])]] )

The first sketch command fires fine, the second and third don't. I've also tried doing "..matches[2]")]], "..matches[2]..")]] - for whatever reason I cannot get the variables to play nicely with TempTimer. Any help would be appreciated, thanks!

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: TempTimer with variables

Post by Vadi »


zialeah
Posts: 2
Joined: Sat Jan 24, 2015 8:36 pm

Re: TempTimer with variables

Post by zialeah »

Thank you! I've run through the manual in the past but I must have missed that part. You're a lifesaver.

Post Reply