# Chance Condition

<figure><img src="/files/egT29npNkT0BxjIN1etZ" alt=""><figcaption></figcaption></figure>

This condition sets a percentage chance for actions to be taken. You cannot exceed 100%. The remainder of the blocks percentages are gathered in the else block.

## Percent Chance

This field is where you enter the percentage of how likely the action will be occurring. This field only accepts integers as values.

{% hint style="info" %}
Click the Add Condition button to add the block to your builder.
{% endhint %}

<figure><img src="/files/MKmz3rCKVjxESXK1Z25Z" alt=""><figcaption></figcaption></figure>

Here is an example layout of this condition:

<figure><img src="/files/Xi9W3cyXFtcxvtF3pnUx" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.botghost.com/custom-commands-and-events/conditions/chance-condition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
