alias to modify a timer - "Omit From Output"

Posted by ErockMahan on Fri 14 Dec 2007 11:47 PM — 7 posts, 25,233 views.

#0
I have found and researched the GetTimerInfo and SetTimerOption features, but I can't seem to modify the "Omit From Output" boolean box.

I wrote an alias to do this:

world.SetTimerOption "breathlight", "Omit From Output", "1"

but it doesn't do anything. I just want to use an alias to toggle the "omit from output" box on or off. I don't want to turn the timer off, as I need it to keep going even if I can't see what it is doing.

Removing the quotes around the "1" doesn't seem to help, is what I'm attempting even possible?
Australia Forum Administrator #1
If you check that option in a test timer, and the use the Copy button to get a copy of the timer onto the clipboard, you can see the correct spelling of the option. Try this:


SetTimerOption "breathlight", "omit_from_output", "1"
#2
You are a brilliant, brilliant man.
#3
Can a timer call a variable? I don't see any option that makes that possible...
Australia Forum Administrator #4
How do you mean "call a variable"?

Timers can set variables, you can send to variable, or you can do it in scripting (send to script).
#5
I mean have a timer do "eat @food"
Australia Forum Administrator #6
Ah I see. It doesn't seem to support expanding variables, so just script it, like this (in Lua):


<timers>
  <timer 
   enabled="y" 
   second="5.00"    
   send_to="12"
>
  <send>

require "var"
Send ("eat " .. var.food)

</send>

  </timer>
</timers>


In VBscript, the 2 script lines would be replaced by:


Send "eat " & GetVariable ("food")