This has solved my issues Dave. Thanks. Of course I made the classic MLInstaller mistake and clicked install before I clicked download and it took me an hour before I realized I hadn't updated MLServer, but all is good now.
For those that want my script I have a simple 2 function script. Someone said you could actively debug, but I haven't figured out how to do that yet.
From MLLigthing, I set an event to the On condition of the lights I want to monitor like my sons room and I use the follwoing command.
The first parameter is the timer number I want to set and the second is the number of minutes for the timer and the third is the light number or name (my names aren't unique). This is way easier than managing the whole command in MLLighting due to the single line edit box for the command.
When you call SetTimer it sets a MLTimer with a command to call MLScript again. I had to do this because you can't put ~ characters in the MLTimer Command, so I call MLScript and have it call MLLighting.
-------------- LIGHTINGTIMERCOMMAND SCRIPT ---------------------
Sub SetTimer (Params)
MLServer.cmdReceive "MLServeCmd.MLTimer|SetTimer~" & Params(0) & "~NoRepeat~" & Params(1) & "~minutes~MLServeCmd.MLScript|LightingTimerCommand??LightOff??" & Params(2) & "~enable"
Sub LightOff (Params)
MLServer.cmdReceive "MLServeCmd.MLLighting|Off~" & Params(0)