TrapThreshold

Will send TurnOn after having received a certain number of prior TurnOn messages. That is, every nth TurnOn will be relayed. The counter that tracks messages can be decremented by sending TurnOff. The trap itself does not send TurnOff messages.

Normally, there is a separate counter for each object that the script gets a TurnOn from. The global flag will count messages from all sources together.

Inherits GenericTrap
Parameters threshold (integer) Trigger after this many messages.
initial (integer) Start the counter at something other than 0.
floor (integer) Minimum value the counter can reach.
global (boolean) Use a single counter for all messages.

Discussion




Enter your comment:
If you can't read the letters on the image, download this .wav file to get them read to you.

 
  tnhscript/trapthreshold.txt · Last modified: 2009/03/03 18:42 by telliamed
 
Recent changes RSS feed Creative Commons License Tip Bucket Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki