This is a communally editable thread (aka wikipost) for collecting and aggregating mq2react global conditions and reacts so people can easily cut and paste into their configuration files.
YOU CAN CUT AND PASTE THESE INTO MQ2React.yaml
(mq2react no longer uses the ini file extension, rejoice!)
Once the servers come up and I get a chance to play, I'll be working on my additions as well! (I'll also test cutting and pasting the below into the mq2react.yaml file to make sure it doesn't cause parsing crashes w/o modification grin)
Suggestions for making Reacts:
[CODE lang="yaml" title="MQ2React Conditions & Reacts"]
globals:
GlobalExample: "${Me.CombatState.NotEqual[COMBAT]} && ${Me.PctHPs} <= 25"
NotCasting: "!${Me.Casting.ID}"
reacts:
DoHaste:
action: /cast Dark Cloak of the Sky
condition: "${Spell[Haste].Stacks} && !${Me.Song[Haste].ID} && ${React.Global[NotCasting]}"
EmpoweredBlade:
action: "/alt act ${Me.AltAbility[Empowered Blades].ID}"
condition: >-
${Target.PctHPs}<99 && ${Target.Named} && ${Me.AltAbilityReady[Empowered
Blades]}
ExampleReact:
action: >-
/multiline ; /echo Default Example react Disables itself when you're
at 100%HP and out of Combat ; /delay 5 ; /react disable ExampleReact
condition: "${Me.PctHPs} == 100 && ${Me.CombatState.NotEqual[COMBAT]}"
FalconStrike:
action: "/cast Aurora, the Heartwood Blade"
condition: >-
${Spell[Falcon Strike].Stacks} && !${Me.Buff[Falcon Strike].ID} &&
${React.Global[NotCasting]}
Hungry:
action: /useitem Fresh Cookie Dispenser
condition: >-
${FindItemCount[=Fresh Cookie]} < 5 && ${FindItemCount[Fresh Cookie
Dispenser]} == 1
ShrinkPet:
action: /useitem Curious Companion Compactor
condition: "${Pet.Height} > 2.04"
Thirsty:
action: /useitem Warm Milk Dispenser
condition: >-
${FindItemCount[=Warm Milk]} < 5 && ${FindItemCount[Warm Milk Dispenser]}
== 1
EtherealArrows:
action: "/useitem Huntsman's Ethereal Quiver"
condition: >-
${FindItemCount[=Ethereal Arrow]} < 50 && ${FindItemCount[Huntsman's
Ethereal Quiver]} == 1
SarnakFocus:
action: /useitem Sarnak Focus of the Elemental Deathseeker
condition: >-
${Me.PctMana}<=85 && ${Me.ItemReady[Sarnak Focus of the Elemental Deathseeker]} && ${Me.CurrentHPs}>50
UseBRDEpic:
action: /useitem Blade of Vesagran
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis} && ${FindItemCount[=Blade of Vesagran]}
&& ${Me.ItemReady[Blade
of Vesagran]}
UseSHMEpic:
action: /useitem Blessed Spiritstaff of the Heyokah
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis}
&& ${FindItemCount[=Blessed Spiritstaff of the Heyokah]} && ${Target.PctHPs}>50
&& ${Me.ItemReady[Blessed Spiritstaff of the Heyokah]}
UseFeather:
action: /useitem Unified Phoenix Feather
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis}
&& ${FindItemCount[=Unified Phoenix Feather]} && ${Me.ItemReady[Unified
Phoenix Feather]} && !${Me.Song[Grace of Unity].ID} && !${Me.Song[Blessing
of Unity].ID}
UseHorn:
action: /useitem Miniature Horn of Unity
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis}
&& ${FindItemCount[=Miniature Horn of Unity]} && ${Me.ItemReady[Miniature
Horn of Unity]} && !${Me.ItemReady[Unified Phoenix Feather]} &&
!${Me.Song[Grace of Unity].ID} && !${Me.Song[Blessing of Unity].ID}
[/CODE]
Please click the 'edit' link to contribute:
----------------∨
YOU CAN CUT AND PASTE THESE INTO MQ2React.yaml
(mq2react no longer uses the ini file extension, rejoice!)
Once the servers come up and I get a chance to play, I'll be working on my additions as well! (I'll also test cutting and pasting the below into the mq2react.yaml file to make sure it doesn't cause parsing crashes w/o modification grin)
Suggestions for making Reacts:
- Save commonly used base conditions in globals so you can reuse them between reacts (and elsewhere) without regularly having to retype them. For example if you wanted to use the NotCasting global in the examples below, you can refer to it with ${React.Global[NotCasting]}.
- Don't be scared to over define conditions. For example if you wanted a robust OKToCast check you may want a full condition like this:
!${Me.Casting.ID} && !${Me.Invis} && !${AdvPath.Following} && !${MoveTo.Moving} && !${Me.Moving} - Assume you may summon a few more items than you want and take that into account with your count checks.
- Check to make sure you have an item and its ready in your conditions.
- Remember that reacts are enabled and disabled per character so you can use a global for react conditions shared between characters and then leverage the React.Global[], i.e.,
${React.Global[NotCastong]}to reuse the common part between individual character reacts.
[CODE lang="yaml" title="MQ2React Conditions & Reacts"]
globals:
GlobalExample: "${Me.CombatState.NotEqual[COMBAT]} && ${Me.PctHPs} <= 25"
NotCasting: "!${Me.Casting.ID}"
reacts:
DoHaste:
action: /cast Dark Cloak of the Sky
condition: "${Spell[Haste].Stacks} && !${Me.Song[Haste].ID} && ${React.Global[NotCasting]}"
EmpoweredBlade:
action: "/alt act ${Me.AltAbility[Empowered Blades].ID}"
condition: >-
${Target.PctHPs}<99 && ${Target.Named} && ${Me.AltAbilityReady[Empowered
Blades]}
ExampleReact:
action: >-
/multiline ; /echo Default Example react Disables itself when you're
at 100%HP and out of Combat ; /delay 5 ; /react disable ExampleReact
condition: "${Me.PctHPs} == 100 && ${Me.CombatState.NotEqual[COMBAT]}"
FalconStrike:
action: "/cast Aurora, the Heartwood Blade"
condition: >-
${Spell[Falcon Strike].Stacks} && !${Me.Buff[Falcon Strike].ID} &&
${React.Global[NotCasting]}
Hungry:
action: /useitem Fresh Cookie Dispenser
condition: >-
${FindItemCount[=Fresh Cookie]} < 5 && ${FindItemCount[Fresh Cookie
Dispenser]} == 1
ShrinkPet:
action: /useitem Curious Companion Compactor
condition: "${Pet.Height} > 2.04"
Thirsty:
action: /useitem Warm Milk Dispenser
condition: >-
${FindItemCount[=Warm Milk]} < 5 && ${FindItemCount[Warm Milk Dispenser]}
== 1
EtherealArrows:
action: "/useitem Huntsman's Ethereal Quiver"
condition: >-
${FindItemCount[=Ethereal Arrow]} < 50 && ${FindItemCount[Huntsman's
Ethereal Quiver]} == 1
SarnakFocus:
action: /useitem Sarnak Focus of the Elemental Deathseeker
condition: >-
${Me.PctMana}<=85 && ${Me.ItemReady[Sarnak Focus of the Elemental Deathseeker]} && ${Me.CurrentHPs}>50
UseBRDEpic:
action: /useitem Blade of Vesagran
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis} && ${FindItemCount[=Blade of Vesagran]}
&& ${Me.ItemReady[Blade
of Vesagran]}
UseSHMEpic:
action: /useitem Blessed Spiritstaff of the Heyokah
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis}
&& ${FindItemCount[=Blessed Spiritstaff of the Heyokah]} && ${Target.PctHPs}>50
&& ${Me.ItemReady[Blessed Spiritstaff of the Heyokah]}
UseFeather:
action: /useitem Unified Phoenix Feather
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis}
&& ${FindItemCount[=Unified Phoenix Feather]} && ${Me.ItemReady[Unified
Phoenix Feather]} && !${Me.Song[Grace of Unity].ID} && !${Me.Song[Blessing
of Unity].ID}
UseHorn:
action: /useitem Miniature Horn of Unity
condition: >-
!${Me.Casting.ID} && ${Me.CombatState.Equal[COMBAT]} && !${Me.Invis}
&& ${FindItemCount[=Miniature Horn of Unity]} && ${Me.ItemReady[Miniature
Horn of Unity]} && !${Me.ItemReady[Unified Phoenix Feather]} &&
!${Me.Song[Grace of Unity].ID} && !${Me.Song[Blessing of Unity].ID}
[/CODE]
Please click the 'edit' link to contribute:
----------------∨
Last edited:


