The desired effect is for VA to select a response to a prompt based on the actual clock time. A simplified premise as follows:
"Good morning." (user prompt)
IF [Time] = 0600 to 0900 then TTS "Good morning"
IF [Time] = 0901 to 1200 then TTS "Getting a late start are we?"
If [Time] = 1201 to 1400 then TTS "You sober yet or just wanna try again tomorrow?"
You get the idea....
I can ask VA what time it is and get the correct answer, so I know VA can access the clock. I just can't figure out how to get VA to make a selective decision comparing the "Time Now" against a set of parameters.
I went through Pfeil's code here
http://voiceattack.com/smf/index.php?topic=795.msg4036#msg4036 and see that he is doing calculations against Time, but my kung fu is weak. Guessing this sorta trick has been done before, can somebody point me to an example? Many thanks.