> For the complete documentation index, see [llms.txt](https://temp-17.gitbook.io/trmenu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://temp-17.gitbook.io/trmenu/francais/actions/action.md).

# Action

Actions can be used in the actions section of the buttons, in menu events, tasks, input catchers, etc...

## Normal Example

```yaml
actions:
 - 'tell: Hello, %player_name%'
```

## Conditionnal Example

```yaml
actions:
  condition: 'hasMoney.100'
  actions:
  - 'tell: You have enough money.'
  deny-actions:
  - 'tell: You don''t have enough money.'
```

## Multi-Conditions Example

```yaml
    actions:
      all:
        - condition: 'utils.chance(0.1)'
          priority: 3
          actions:
            - 'tell: Prize 1'
            - 'return'
        - condition: 'utils.chance(0.5)'
          priority: 2
          actions:
            - 'tell: Prize 2'
            - 'return'
        - condition: 'true'
          priority: 1
          actions:
            - 'tell: Prize 3'
```

## Note

* When using multiples groups of conditions, you can set priorities to define the order to check the conditions&#x20;
* If a break/return/cancel action is executed, the entire group will stop
* There are many aliases for nodes names such as:

```yaml
requirement: 'hasPoints.100'
execute: 'tell: You have 100 points'
deny: 'tell: You dont have 100 points'
```
