Pandorabot AIML2 icon Pandorabot AIML2 — Connect ARC to Pandorabots AIML2 to run AI-driven virtual personalities for human-like text or voice chat, using API keys and script hooks. Try it →

ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

#2  

I'm not sure I understand the question. I'm new to ez script but I'd guess you'd do it something like this....


$NumberA= 5
$NumberB = $NumberA - 2
#NumberB now = 3
#or you could do something like....
$NumberA = $NumberA - 2
#NumberA = 3
#There's a command to get servo position (I don't remember it off the top of my head) But you could do something like
$TiltPosition = GetServoPosition(Dx)
#Change servo position 5 positions mathematically 
Servo(Dx,$TiltPostion-5)

I'm not 100% on the command names but ez script works just like most other languages. I believe that all of the operators are covered somewhere in the script help section on the side when you are in the script editor. You may be able to find better info there.

Hope that helps.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#3  

Yep that's about right. All math functions are explained on the right hand side of EZ-Script, including advanced math functions.


$result = $valueA + $valueB * valueC / $valueD - $valueE
SayWait($result)