Asked
— Edited
Heloo Forum
I don't remember if it is answered this question: I want to ask my robot somethink or told, for examble: Hello, and the robot answer with many ways 1: hello, 2:i already told you 3:..... I want to choose the robot his own answer between 3 or more answers that i write to script.
Can i?
Yes.
Use the function GetRandom()
For instance;
I did an example of multiple choices the robot can make in my Jarvis project a while ago when I had him choose the colour he was going to be.
This script he is always unsure of his answer until he chooses the same one a few of times or twice in a row.
This great Rich. I've been wanting to add this to my B9 and was thinking about how to write the script. Now, Here it is! Thanks!
Yes.....
Now i remember it....
Thanks Rich
Thanks for sharing
Regards Sakis
That code is pretty old and probably could be written a lot better now so feel free to do so
To be honest, it was knocked up for a single run so provided it worked that's all that mattered, it only needed to work once.
It was also written before the syntax changes to EZ-Script so there may be a few errors, nothing too difficult to fix and ARC will tell you what the errors are if you run it. Personally I'd use it as a base but rewrite it from scratch to ensure no errors and to ensure it works the way you want it to, it should be pretty easy to follow
ok,
I'll try to write the code and use it with speech recognition.
i write & run the code
and i saw this message
Start 2: $answer = GetRadom (1,3) > Error on line 2: Missing String Quotes or Invalid Expression: GetRadom ( Done (00:00:00.0100000)
Check for typos
The command is GetRandom() you're missing an n
When you are in a hurry blush