% Chance Condition 

Definition: 
The % Chance condition succeeds with a certain percent chance, as specified by a number or a Visual AgenTalk Formula. For instance, with a value of 50 this condition will succeed, on average, 50% of the time. The % Chance condition chooses a random number between 1 and 100 whenever it is executed. If this number is less than the number indicated in its number field, the condition is true. Otherwise, the condition is false. 

Parameters: 

Example: 
The Ball agent in the Counting Pachinko project moves down if it does not encounter any obstacle, but when it moves down it also has a 50% chance of going to the left or to the right. 

 Next  Previous  Reference Manual  Getting Started Manual  