- Other Authors
- drwhomphd, Knightly
- Included in Very Vanilla
- Included! No need to download.
MQ2React
MQ2React is a plugin that allows users to define actions, as well as conditions that determine when to perform those actions. Conditions are defined in MQ2 Macro syntax and actions are mq2 commands. It's up to the user to make sure their defined conditionals and reactions do not conflict with one another; mq2react does no additional action deconfliction. This is similar to the "HolyShit" and "DownShit" behavior of MQ2Melee without the additional automation behavior that exists within the plugin. MQ2React also allows for complex conditions to be defined as global conditions and reused throughout multiple reacts, thus making reacts considerably easier to maintain and reuse.
Configuration
MQ2React uses a yaml format for configuration. Upon initial execution, a default configuration file will be created with example reacts and an example global condition. The configuration file is case sensitive. It's recommended you use a code editor for manually editing .yaml files, such as VS Code.
CONFIGURATION FILE: MQ2React.yaml
Commands
TLOs
Note: For TLOs that return condition statements, MQ2, by design, will parse these conditions automatically. These TLOs are most useful to provide shortcuts to complex conditions for macros like KissAssist.
Known Issues
We're excited to see what configurations people come up with. Please share your creations here,
MQ2React is a plugin that allows users to define actions, as well as conditions that determine when to perform those actions. Conditions are defined in MQ2 Macro syntax and actions are mq2 commands. It's up to the user to make sure their defined conditionals and reactions do not conflict with one another; mq2react does no additional action deconfliction. This is similar to the "HolyShit" and "DownShit" behavior of MQ2Melee without the additional automation behavior that exists within the plugin. MQ2React also allows for complex conditions to be defined as global conditions and reused throughout multiple reacts, thus making reacts considerably easier to maintain and reuse.
Configuration
MQ2React uses a yaml format for configuration. Upon initial execution, a default configuration file will be created with example reacts and an example global condition. The configuration file is case sensitive. It's recommended you use a code editor for manually editing .yaml files, such as VS Code.
CONFIGURATION FILE: MQ2React.yaml
Commands
/react [option] [<value>...] | Enable, disable, list, add and remove reactions. |
TLOs
Note: For TLOs that return condition statements, MQ2, by design, will parse these conditions automatically. These TLOs are most useful to provide shortcuts to complex conditions for macros like KissAssist.
Known Issues
- There's currently a very simple yaml example, I'd like to have us communally put more together, especially as folks have pointed out not everyone is familiar with yaml.
- This documentation should probably include a set of assumptions and potentially best practices when handling conditions and actions.
- The YAML library used doesn't yet support the escaping of double-quotes in its serializer (e.g.,
action: "/cast \"My long spell name\""
)
We're excited to see what configurations people come up with. Please share your creations here,
- Source Repository
- https://github.com/RedGuides/MQ2React
- [git] Automation options?
- Yes