Speech Synthesis Settings icon Speech Synthesis Settings Configure Windows Audio.say()/Audio.sayEZB() TTS on EZB#0: voice, emphasis, rate, volume, speed/stretch and audio effects; copy control script. Try it →
Asked — Edited

Yes Or No Script

I want to make my robot able to choose yes or no by itself. I made this script but theres something wrong with it because I can't save it.

$Yes=0

$No=0

$choice1 = GetRandom(0,1)
If $choice1= $Yes
   Controlcommand("script manager", scriptstart, "Yes")
Else If $choice1= $No
   Controlcommand("script manager", scriptstart, "No")
ENDIF 

ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#9  

The script works fine. Have a look at this project here. Set the confidence with the slider and start the Yes No Script.

Let me know how you get on. If you still have trouble let me have a look at the project as something else may be causing it to always say no.

#11  

I bookmarked this script, it can be very useful method to call. Technopro way to go!