I sadly had to make 3 diff spellcast for legion/vw/anything else cause this SC is awesome and all but lacks of diff events rule, so I just load the right one depending on what im doing.
Same ***with Hybrid, I trigger em manually for embrava/apocAM/nothing up :(
I detect event by using <if buffactive="Voidwatcher">, <elseif area="*maquette*">, and then <else> for other situations.
Alternatively, one could set and call upon a variable $event which is used in determining what sets you equip. <if '"$event"="legion"'><equip when="aftercast" set="LegionSetA"/>. Or, <equip when="engaged" set="$EventMeleeA"/>.
There is some limit to the number of variables you can call upon per rule, though. For example, set="$Sub$event$regain$haste" would return WAR$event$regain26. As such, I let a series of checks in the rule section determine the event (and sub, regain, and LR/haste status) for me.
This approach can also be taken to swap to hybrid sets automatically: <if '"$melee"="hybrid"'><equip when="engaged|aftercast" set="hybrid"/>. One would be advised to create some form of easily accessed toggle between $melee=hybrid/pdt/mdt and $melee=attack or whatever to change on the fly.
Unsimplified version:
Code
<if buffactive="Last Resort">
<if advanced='"$melee"="hybrid"'>
<if advanced='"%SubJob"="SAM"'>
<if buffactive="Embrava">
<if buffactive="haste">
<equip when="aftercast|engaged" set="samlrh"/>
</if>
<else>
<equip when="aftercast|engaged" set="samh"/>
</else>
</if>
<else>
<equip when="aftercast|engaged" set="samh"/>
</else>
</if>
<if advanced='"%SubJob"="WAR"'>
<if buffactive="Embrava">
<if buffactive="haste">
<equip when="aftercast|engaged" set="warlrh"/>
</if>
<else>
<equip when="aftercast|engaged" set="warh"/>
</else>
</if>
<else>
<equip when="aftercast|engaged" set="warh"/>
</else>
</if>
</if>