Script to restaure health in x points?

Post » Mon Nov 19, 2012 7:00 am

I want to change the health not the base health

if health and base health are 180

1) "player.setav health 100" and "player.modav health 100"change both, health and basehealth to 100

2) player.forceav health 100
and then:
player.getav -> the result is 100
player.baseav -> the result is 180

but in the game (the health bar) shows 100!!!!!

I do not understan anything!!!
User avatar
Marlo Stanfield
 
Posts: 3432
Joined: Wed May 16, 2007 11:00 pm

Post » Mon Nov 19, 2012 5:09 am

try damageAV and RestoreAV
User avatar
Francesca
 
Posts: 3485
Joined: Thu Jun 22, 2006 5:26 pm

Post » Sun Nov 18, 2012 10:11 pm

Thanks. I used them and it works like a charm.
I have use it in my fist version of http://skyrim.nexusmods.com/mods/23747/
Now in order to improve it, I'm going to make two diferent types of healing, soft and hard.
I have a bit of problems:
If "player.restoreav health 50.0" -> restore a lot, maybe 50 points
and if "player.restoreav health 10.0" also restore a lot, a bit less than in the previous case, but much more than 10 points.

My question is: the amount in restoreav what is it? points? a formula?

Thanks.
User avatar
Steve Fallon
 
Posts: 3503
Joined: Thu Aug 23, 2007 12:29 am

Post » Mon Nov 19, 2012 5:04 am

Its raw points, it shouldn't be adding more than 10 if thats what you put it in as.
User avatar
Curveballs On Phoenix
 
Posts: 3365
Joined: Sun Jul 01, 2007 4:43 am


Return to V - Skyrim