scn HVHAbsorbFrostScriptOBSElong FrostMagref UserRefBegin OnEquip UserRef.PlayMagicShaderVisuals HVHEffectAbsorbFrostEndBegin OnUnequip UserRef.StopMagicShaderVisuals HVHEffectAbsorbFrostEndBegin GameMode set UserRef to GetContainer if ( UserRef.GetEquipped HVHIceRobeOBSE == 0 ) return endif set FrostMag to UserRef.GetTotalActiveEffectMagnitude FRDG if ( FrostMag >= 1 ) if ( UserRef.HasSpell HVHAbsorbFrostHeal == 0 ) UserRef.AddSpellNS HVHAbsorbFrostHeal endif set FrostMag to ( FrostMag * 2 ) SetNthEffectItemMagnitude FrostMag HVHAbsorbFrostHeal 0 else if ( UserRef.HasSpell HVHAbsorbFrostHeal == 0 ) UserRef.RemoveSpellNS HVHAbsorbFrostHeal endif endifEnd
Here's attempt #4. I modified attempt #2, under the assumption the problem was the 0-magnitude restore health ability. This method instead uses a 1-point restore health ability, applied only when the user is experiencing frost damage, and removed otherwise. Otherwise, it is the same as attempt #2. This script doesn't do much more than the previous 3 attempts however, but something interesting happened that may be significant.
When i looked in my "Active effects" page, I saw "Frost Damage" present (17 points of it, in fact). However, "restore health" was nowhere to be seen. This means that, for whatever reason, "UserRef.AddSpellNS HVHAbsorbFrostHeal" did not happen.
EDIT: Upon review, I found out why the spell isn't added. "if ( UserRef.HasSpell HVHAbsorbFrostHeal )" should be "if ( UserRef.HasSpell HVHAbsorbFrostHeal == 0) ". Testing now...
Tested. Nothing changed, the restore health ability still didn't apply.