Jump to content

Restoration-based healing


Domhnall

Recommended Posts

This script is to look at a character's Restoration Skill %, and then heal a # based on it.

 

The script:

Scriptname DJ_RBH

begin ScriptEffectStart

short Base
short Restore
float Percent

set Percent to ( Player.GetAV Restoration ) * 0.003


set Base to GetBaseActorValue Health
set Restore to (( Base * Percent ) + GetAV Health )

If Restore < Base
ForceAV Health Restore

Elseif Restore >= Base
ForceAV Health Base

endif
end

 

The healing works, but then it will put the current hit points over the character's maximum hit points.

 

Anyone know the cure to this?

 

Thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...