As of right now, this is the code I used for sorc ring in aby, which appears to work fine when I have full buffs.
<!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
<if advanced='$Ring == 1'>
<!-- make sure we have an HP variable set for current subjob -->
<if advanced='"$%SubJobRingHP" > 0' notArea="Abyssea*">
<if Advanced='%HP > $%SubJobRingHP'>
<!-- if you have too much HP at the time of casting, equip minus hp -->
<equip set="MinusHP" />
</if>
</if>
<elseif area="Abyssea*">
<command when="Precast">cancel 88</command>
</elseif>
<else>
<!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
<equip set="MinusHP" />
</else>
<equip when="midcast">
<lring>Sorcerer's Ring</lring>
</equip>
</if>
I did, however, noticed that it doesn't put on -HP gear if I *don't* have HP buffs up, which worries me that maybe it's not working as planned (i.e. just taking off the buff). I have my SubRingHP set, but I am wondering if the elseif is messing up the -HP code?
inb4lolsorcringinaby