View Full Version : random time delayed triggers?
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).
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.
Kool, so it is written right into the plug in?
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
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.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.