Code:
<!-- check for Sorc Ring if mid or low resist mob. HP values to compare to are in variables above. -->
<if advanced='"$SorcRing" = "1"'>
<!-- make sure we have an HP variable set for current subjob -->
<if Advanced='"$%SubJobRingHP" != "\$%SubJobRingHP"'>
<if Advanced='"%HP" > "$%SubJobRingHP"'>
<!-- if you have too much HP at the time of casting, equip minus hp -->
<equip set="MinusHP"/>
</if>
</if>
<else>
<!-- if no HP amount is specified for the current subjob, just always equip minushp as precast -->
<equip set="MinusHP"/>
</else>
<equip when="midcast">
<rring>Sorcerer's Ring</rring>
</equip>
</if>
or actually a simpler variant:
Code:
<!-- check for Sorc Ring if mid or low resist mob. -->
<if advanced='"$SorcRing" = "1"'>
<if HPPGT="75"> <!-- if you have too much HP at the time of casting, equip minus hp -->
<equip set="MinusHP"/>
</if>
<equip when="midcast">
<rring>Sorcerer's Ring</rring>
</equip>
</if>
In all cases, make sure your nuking set is MIDCAST and not precast (or else MinusHP and/or FastCast sets will overwrite your nuking sets)
Also, 2nd variant is assuming your Idle set has same MaxHP as your nuking set.