# MQ2Events

## Description

## Commands

* *'/event \[* load\*\</span> |

  *deletename*| *settriggernametrigger text*|

  *setcommandnamecommand text*| \*list'' ]

### Variables

```
EventArg1 these are set acording to last event triggered and correspond to #1# .. #9#
EventArg2 these are not cleared so you can have one event use #9# and once set it will stay set until another #9# is encountered.
EventArg3
EventArg4
EventArg5
EventArg6
EventArg7
EventArg8
EventArg9
```

### INI file

MQ2Events\_CharacterName.ini

Format:

```
[eventname]
trigger=trigger text
command=command to execute when triggered
```

## Examples

### INI Entries

```
[enrage]
trigger=|${Target.DisplayName}| has become ENRAGED#2#
command=/attack off

[relaytell]
trigger=#1# tells you, #2#
command=/tell relaytargetname ${EventArg1} told me, '${EventArg2.Mid[2,${Math.Calc[${EventArg2.Length}-2]}]}'

[group]
trigger=#1#To join the group, click on the 'FOLLOW' option, or 'DISBAND' to cancel.#2#
command=/timed ${Math.Calc[3+${Math.Rand[4]}].Int}s /keypress ctrl+i

[raid]
trigger=#1#To join the raid click the accept button in the raid window or type /raidaccept.#2#
command=/timed ${Math.Calc[3+${Math.Rand[4]}].Int}s /raidaccept
```

## See Also

* [Plugins](broken://pages/-Me4I94WGlOtA0pQ_0oB)


---

# 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://macroquest.gitbook.io/macroquest/plugins/community-plugins/mq2events.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.
