PDA

View Full Version : random time delayed triggers?



pete
06-06-2007, 12:15 AM
I was think about the trigger sequences. Since the trigger is leaning towards Halloween and the element of surprise. Would it be possible to write in a random time delay with user set scale (0 to x secs).

KC
06-06-2007, 12:57 AM
Shouldn't be a problem. The trigger plugin would just start a thread to take the random interval upon itself and activate the trigger when it wanted. If there's something registered to respond, it will.

pete
06-06-2007, 01:17 AM
Kool, so it is written right into the plug in?

KC
06-06-2007, 02:06 AM
Yeah. The plugin (theoretical, someone would have to write it) would be started when the application starts. It is also provided the necessary interface in the application in order to activate a trigger. Whenever it feels that its particular trigger needs to be activated, it does so.

A Marchini
06-06-2007, 12:32 PM
Yeah. The plugin (theoretical, someone would have to write it) would be started when the application starts. It is also provided the necessary interface in the application in order to activate a trigger. Whenever it feels that its particular trigger needs to be activated, it does so.
Hey do you have a layout of the plugin capabilities yet? Or a sketch of how one might work?
Tony

KC
06-06-2007, 02:28 PM
Capabilities? Not much there. A trigger plugin specifies an interface name (any string, will be visible to the user) and trigger count. The user registers sequences to be responses to a trigger via an editor (can have multiple responses per trigger). Then when the plugin decides that a trigger should be activated (completely up to the implementor), it does so. That's the long and short of it.