I'm trying to write a script that will change the meal I order based on the time of day.
In the game I play, you have three options for meals.
Breakfast, Lunch, or Dinner.
In order to get a meal, you type "get (meal) from Melvin" (Melvin being the distributer).
So far, I have had only one problem. How can I set the script to recognize times of day? The @time command, which returns the current time, lists in a 24-hour format of 00:00:00.
I would like something to the effect of:
if (time) > 00:00:00 < 12:00:00
world.send "get breakfast from melvin"
or some such.
Thank you.
Jay
In the game I play, you have three options for meals.
Breakfast, Lunch, or Dinner.
In order to get a meal, you type "get (meal) from Melvin" (Melvin being the distributer).
So far, I have had only one problem. How can I set the script to recognize times of day? The @time command, which returns the current time, lists in a 24-hour format of 00:00:00.
I would like something to the effect of:
if (time) > 00:00:00 < 12:00:00
world.send "get breakfast from melvin"
or some such.
Thank you.
Jay