
treemonkey232
USA
Asked
— Edited

How do I do this, do i insert actions somewhere or what.
Please help!
*stress*
How do I do this, do i insert actions somewhere or what.
Please help!
*stress*
If you added the EZ-Script component, click the gear and give it a name then write your script. If you added a the EZ-Script Manager, click the add Script button and give it a name, the start your script.
Also, many controls give you the ability to add scripts to things, like the speech recognition component allows you to add a script to each of the speech commands that you add.
A script means a billion things - please be specific and someone can help you
Thanks anyway!
Also, have a look at the link below which is a tutorial for creating scripts. It will help you understand the basics. Don't worry about asking questions, just give as much detail as you can with what your asking. Details are your friend.
www.ez-robot.com/Tutorials/Lesson/23
As you mentioned "actions", another useful tutorial is for the auto positioner linked below, and it has a great video demonstration too.
www.ez-robot.com/Tutorials/Help.aspx?id=180
ControlCommand("Auto Position", AutoPositionAction, "testAction")
The testAction text would be replaced with the name of the action you are trying to perform.
So if you want a condition to be met, to then call this action, your script would be something like this.
Code:
The first line is just a label that tells the goto at the end where to go back to
The second like looks for the value returned by ADC port 0 to be greater than 50.
The third line will cause the action called "testAction" to run if the value in the previous line greater that 50.
The fourth line goes back to the label DoActionWhenADCConditionMet
There are a huge number of things you can do in scripts so knowing when you want to fire the action will help us to provide an answer that is more relevant to your exact situation.
treemonkey do you have skype.
The example revolution robots also use control commands in their init script and in any dancing scripts.