Percent-chance Condition

From AgentSheetsWiki

Revision as of 19:22, 20 April 2012 by Corrina (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

% chance action.png

Definition: The Percent-chance condition succeeds with a certain percent chance, as specified by a number or formula. For instance, with a value of 50 this condition will succeed, on average, 50% of the time. The Percent 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. Use this to introduce randomness to an agent's behavior.
Parameters: formula: a number or VAT formula
Personal tools