> For the complete documentation index, see [llms.txt](https://francobm.gitbook.io/streamevents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://francobm.gitbook.io/streamevents/scripting/event/goal.md).

# Goal

An EventGoal has 5 properties

```yaml
event_example: #Here is an example of how it is used in the scripts
    event_type: CHAT
    event_goal:
      type: NUMBER
      condition: '>'
      start: 0
      goal: 10
      increase-value: true
      change-value: true
    actions: action_test
```

type ([T](#types)): This will define what you will be able to enter in the start and goal fields. Either numbers or text

condition ([C](#conditions)): This will be the condition that will be taken with start and goal, once the condition between these two is fulfilled the event will execute the actions and return to the start again.

start: This will be the property with which the goal starts, it can be a number or text. ([Placeholders ](/streamevents/scripting/event/placeholders.md)can be placed)

goal: This will be the property with which the goal ends, it can be a number or text.

increase-value: This will only work if start and goal are numbers, this can be used as true or false.

change-value: If this is set to true and the conditional type is a number then the start value will change until the goal is reached. If false it will not make any change.

### Conditions

* \==
* \>=
* <=
* \>
* <

### TYPES

* STRING
* NUMBER
