Find out what healed the PC?

Post » Tue Nov 20, 2012 6:41 am

I have an issue with my Mod.

I'm running a Script to temporarily 'kill' the player for a few seconds, to represent injury.

First it sets the PC Essential, and then hits them with a Damage Health effect. This is all fine. The problem is, the PC INSTANTLY recovers all of their health from 'somewhere'.

In the script, this occurs twice, using the exact same coding except for different variable names (one is 'WoundTimer' the other is 'BeginTimer').

The BeginTimer works perfectly. The PC is hurt, and collapses until I heal them.

The WoundTimer does not, even if it is run immediately after the BeginTimer. There's nothing in the Script that should Heal the Player, and I've even deleted the entire Script except for the WoundTimer section to see if that solves the problem. But still no-luck.

This is my code for the death :
  If ( WoundTimer &--#62;= 60 )   Game.GetPlayer().GetActorBase().SetEssential()   If ( DownTimer == 0 )	DownTimer = 1   EndIf  EndIf  If ( DownTimer == 1 )   PlayerRef.AddItem(ZAEPlayerKillPotion, 1 , 1)   PlayerRef.EquipItem(ZAEPlayerKillPotion, 0, 1)   DownTimer = 2   ;Everything works, except here the PC instantly heals.  Elseif ( DownTimer == 8 )   PlayerRef.ModAV("Health", 20000000 )  ElseIf ( DownTimer == 10 )   DownTimer = 0   WoundTimer = 0   Game.GetPlayer().GetActorBase().SetEssential(0)   PlayerRef.AddItem(ZAEPlayerHealPotion, 1 , 1)   PlayerRef.EquipItem(ZAEVPlayerHealPotion, 0, 1)   PlayerRef.ModAV("Health", -20000000)  EndIf  If ( DownTimer &--#62;= 2 )   If ( DownTimer &--#60; 10 )	DownTimer = ( DownTimer + 1 )   EndIf  EndIf

Anyone any ideas?

Edit : Further research showed something is healing exactly 100 points of health, which is how much health the PC has. It seems like something is immediately 'fixing' the damage; but it didn't do that the first time around, only on the second one...
User avatar
trisha punch
 
Posts: 3410
Joined: Thu Jul 13, 2006 5:38 am

Post » Tue Nov 20, 2012 7:14 am

I've noticed that when I want to cast "Healing Hands" on my follower after a hard battle (they are bleeding out or just recovered from that state) sometimes they seem to have gotten all or most of their health back really fast. Your issue may not be isolated to your mod.
User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm

Post » Tue Nov 20, 2012 12:53 pm

That would be a relief, I guess... I'm gonna have to look into the recovery time setting, see if that affects anything. :)
User avatar
Laura Tempel
 
Posts: 3484
Joined: Wed Oct 04, 2006 4:53 pm

Post » Tue Nov 20, 2012 8:19 am

You may be suffering from this

While you are letting an essential character get back up, there is a small window in which you can damage them which will cause their health to reset to full instead of having to regenerate from nothing if you do not interfere.

Taken from UESPWiki
http://www.uesp.net/wiki/Skyrim:Bugs
User avatar
luis ortiz
 
Posts: 3355
Joined: Sun Oct 07, 2007 8:21 pm


Return to V - Skyrim