Editing player's starting health?

Post » Sun Mar 10, 2013 11:38 pm

Hi,

I'm looking for ways to modify the player's starting health (100). I know I could do it by going to Actors > Player and tweaking the health offset but I've heard that editing the player actor directly is bad practise. Is there another way to do it?

There is a global setting in the CK called fPCBaseHealthMult but changing it does apparently nothing to base health.
User avatar
Natasha Callaghan
 
Posts: 3523
Joined: Sat Dec 09, 2006 7:44 pm

Post » Mon Mar 11, 2013 3:52 am

Make a quest add a player alias than attach this script to him:
Game.GetPlayer.SetActorValue("health", 50.0)
But it's good practice to do it this way:
Actor Property PlayerREF AutoPlayerREF.SetActorValue("health", 50.0)
you can use these to set the player's health to whatever you want.
User avatar
meg knight
 
Posts: 3463
Joined: Wed Nov 29, 2006 4:20 am

Post » Sun Mar 10, 2013 8:51 pm

Actors>player? There is no form for the player in the ck. You could modify the races but your changing would apply to any npc then. I would do this in-game by using a console command; not sure that it would work though. Maybe this command if you want to change the health level permanently:

player.setav health xx

where xx is the value you want the player to have. Or, if you want the player to have damaged health only:

player.damageactorvalue health xx

Otherwise I don't know.
User avatar
CYCO JO-NATE
 
Posts: 3431
Joined: Fri Sep 21, 2007 12:41 pm

Post » Mon Mar 11, 2013 7:19 am

Interesting! Thank you for the insight. I suppose using this method won't cause conflicts with other mods that also make the player a quest alias?

edit: @Therhatran: yes there is. See: http://i50.tinypic.com/29lzd47.jpg
User avatar
Steve Smith
 
Posts: 3540
Joined: Sat Jun 30, 2007 10:47 am

Post » Mon Mar 11, 2013 3:56 am

Nope, shouldn't cause any conflicts.
User avatar
Josh Lozier
 
Posts: 3490
Joined: Tue Nov 27, 2007 5:20 pm

Post » Mon Mar 11, 2013 12:11 am

Beautiful. Thank you for your help.
User avatar
Marcia Renton
 
Posts: 3563
Joined: Fri Jan 26, 2007 5:15 am

Post » Mon Mar 11, 2013 1:10 am

Np, glad I could help : )
User avatar
Carys
 
Posts: 3369
Joined: Wed Aug 23, 2006 11:15 pm


Return to V - Skyrim