Code xml
<if HPPLT="26">
<equip when="all">
<head lock="true">Twilight Helm</head>
<body lock="true">Twilight Mail</body>
</equip>
</if>
That should do it, just change the "26" to whatever number you want it - this one will only equip it when you're 25% or lower.
Note though, Spellcast
won't automatically change your gear for it and you
will need to perform an action.