Award
Congratulations DJ Sures, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Auto Position Action In Random Modus

Assistance Requested

Help Asimo with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

Products: (click to view product details)

EZ-Builder Control: (click to view manual page)

Asimo claims to have checked these sources:
 
#1

Dear EZ-Robot Team and Fans,

If my camera notice something.. I want to play an action from auto position..
but not every time the same.. I want a Random-Modus for all my actions..
I found nothing to play actions random ? I hope someone can help me.

regards

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

Programming.... Start watching The Robot Program to learn how to start programming. Here's an example of how your program would look.

Blockly:
User-inserted image

EZ-Script:
User-inserted image

Code:


$RandomAction = GetRandom(0, 5)

if ($item = 0)

ControlCommand("Auto Position", "AutoPositionAction", "Be Awesome")

elseif ($item = 1)

ControlCommand("Auto Position", "AutoPositionAction", "Dance")

elseif ($item = 2)

ControlCommand("Auto Position", "AutoPositionAction", "Jump")

elseif ($item = 3)

ControlCommand("Auto Position", "AutoPositionAction", "Smile")

elseif ($item = 4)

ControlCommand("Auto Position", "AutoPositionAction", "Super Action")

else

ControlCommand("Auto Position", "AutoPositionAction", "Wave")

endif

#3

thank you :-)

its working fine for me !