• Announcements

    • Ashal

      SITE MOVED - IN READ ONLY MODE   12/08/2015

      Please use http://www.loverslab.com moving forward. Site has been restored to a previous version, and this one placed into a read-only mode. This is available for a limited time so users may reference/copy content that has been lost in the transition. This will no longer be accessible by December 22nd, 2015.
Duefaku

Creating a constantly-running script to adjust NPC health

I've had a mod in mind recently - for balance (and the ease of which) all humans would have 100 health.


 


Now, the most straightforward way of doing that would editing all of the thousand or two NPCs' base health in the GECK. That's a ridiculous amount of work. So I thought, what about a script?


 


Only problem is, I have approximately 0 scripting experience. Only thing I've done is copy pasted a few (very simple) lines to expand a mod to cover more items. I'd need something to make NPCs have 100 health when they load. And not reset when they get hurt or die.


 


Is this even possible?


0

Share this post


Link to post

What happens if they have 50 health? Do you want to change value permanently?


0

Share this post


Link to post

I'm not sure what you mean by the first part, but yes I'd want a permanent change.


0

Share this post


Link to post

You should not do permanent changes to NPC around. What if they are non-vanilla? What if mod author wants NPC to have 1 health for cutscene or for player to kill him with  one shot?


 


I can literally do plugin with that code you ask for in 3 minutes . But I don't like the idea of permanently changing actor values. Even if you are restoring health - it still a great interruption to other mods. Your mod will be incompatible with most of the modifications which add NPC in the game.


 


So if I were you I would reconsider changin actor's health and tune other things in your balance mod (changing damage to races for instance). Or well, seek for kind scripter who will do these lines for you but if he will be able to do these lines (i.e. he is experienced) I think you'll get the same answer from him IMHO.


0

Share this post


Link to post

You do bring up some good points, but frankly I'd just deal with a few hiccups to have 99% of stuff doing what I want. And I was doing this more for personal use anyway.


0

Share this post


Link to post