Vertical Servo icon Vertical Servo Drag vertically to control a servo within set min/max limits; center, release, invert, and mirror to other servos. For 3-wire GVS servos. Try it →

ARC Pro

Upgrade to ARC Pro

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

#1  

Absolutely.... Have you read down the script commands... You should check out all the available commands so you will be able to do this kind of easy stuff yourself... Below are reserved script variables that will get you what you want...

$date $month $year $day $dayName $hour $minute $second $monthName $time

#2  

Here is the script that I use to tell the time. It is not my code, I believe it is from Rich but not sure.


# ------|
# Time |
# ------|

:Initialise
$hour_word=$hour
SayWait("According to my data calculations the time is ")

IF ($hour>12)
$hour_word=$hour-12
Elseif ($hour=0)
$hour_word=0
#$hour_word=12
ENDIF 

$hour_word=$hour_word + ":"

IF ($Minute=0)
SayWait($hour)
goto (AM_PM)
ELSEIF ($minute<30)
Say($minute + "minutes past " + $hour_word)
ELSE 
SayWait($hour_word + $minute)
goto(AM_PM)
ENDIF 

:AM_PM
IF ($hour<12)
SayWait("a.m.")
ELSE 
SayWait("p.m.")
ENDIF 

halt()
Author Avatar
PRO
USA
#3  

awesome, thanks for everyones help.