Variable Timer?

Post Reply
Zunnoth
Posts: 3
Joined: Wed Oct 17, 2018 3:01 am

Variable Timer?

Post by Zunnoth »

Is there some way I can script a timer so that it goes off at a different time based on input? For example, capturing a number with perl and using that as the timer length.

Jor'Mox
Posts: 1142
Joined: Wed Apr 03, 2013 2:19 am

Re: Variable Timer?

Post by Jor'Mox »

Sure, you just need to convert the string captured into a number, and use a tempTimer.

Zunnoth
Posts: 3
Joined: Wed Oct 17, 2018 3:01 am

Re: Variable Timer?

Post by Zunnoth »

Maybe I just did something wrong then, because that didn't work for me. I'll have to mess around some more. Just to be sure I understand, I should just be able to pass a Number containing variable as the time?

Jor'Mox
Posts: 1142
Joined: Wed Apr 03, 2013 2:19 am

Re: Variable Timer?

Post by Jor'Mox »

Yes.

Zunnoth
Posts: 3
Joined: Wed Oct 17, 2018 3:01 am

Re: Variable Timer?

Post by Zunnoth »

Thanks! I'll figure out what I did wrong.

Edit: For reference, it's that I didn't put brackets around the send command in the timer, making it spam

Post Reply