Jump to content

NPC / Companion Dehydration Starvation etc.


Katt7777

Recommended Posts

I would like to request a mod that makes your companions have basic needs like food, water, and sleep. If they are unable to get what they need they will die just like the PC does. I just don't care for NPC's being able to to be able to go on forever with out water etc. or worse still some seem to pull out bottles of water or food from thin air. I would really like the challenge of providing for myself and companions realistically. It might make the game too tough for some but I would like to see it.

 

If this mod is too huge an undertaking I would appreciate some help in making it a reality. I have tried myself to give actors dehydration effects but I haven't been successful in making a timer or counter tie into them like the player has, of course I'm a beginner. What I would like is some script help or even a way to make new script commands since I'm not sure if this can be done with the GECK as it stands.

 

Thank you, any help is appreciated :blush:

 

So far I have this for my script but I'm unsure of how to count or time the actor effects.

 

ScriptName 00NPCDehydrationSCRIPT

 

float HydrationCondition

short NDHPenalty

 

if((HydrationCondition >= 200) && (HydrationCondition < 400)) ; Dehydration200

Set NDHPenalty to 1

EndIF

 

if((HydrationCondition >= 400) && (HydrationCondition < 600)) ; Dehydration400

Set NDHPenalty to 2

EndIF

 

if((HydrationCondition >= 600) && (HydrationCondition < 800)) ; Dehydration600

Set NDHPenalty to 3

EndIF

 

if((HydrationCondition >= 800) && (HydrationCondition < 1000)) ; Dehydration800

Set NDHPenalty to 4

EndIF

 

if(HydrationCondition >= 1000) ; Dehydration1000

Set NDHPenalty to 5

EndIF

 

; Penalty Apply

if(NDHPenalty > 0)

if(NPC.IsSpellTarget Dehydration200 == 1)

NPC.RemoveSpell Dehydration200

EndIF

if(NPC.IsSpellTarget Dehydration400 == 1)

NPC.RemoveSpell Dehydration400

EndIF

if(NPC.IsSpellTarget Dehydration600 == 1)

NPC.RemoveSpell Dehydration600

EndIF

if(NPC.IsSpellTarget Dehydration800 == 1)

NPC.RemoveSpell Dehydration800

EndIF

if(NPC.IsSpellTarget Dehydration1000 == 1)

NPC.RemoveSpell Dehydration1000

EndIF

 

if(NDHPenalty == 1)

NPC.CastImmediateOnSelf Dehydration200

EndIF

if(NDHPenalty == 2)

NPC.CastImmediateOnSelf Dehydration400

EndIF

if(NDHPenalty == 3)

NPC.CastImmediateOnSelf Dehydration600

EndIF

if(NDHPenalty == 4)

NPC.CastImmediateOnSelf Dehydration800

EndIF

if(NDHPenalty == 5)

NPC.CastImmediateOnSelf Dehydration1000

EndIF

else

NPC.RemoveSpell Dehydration200

NPC.RemoveSpell Dehydration400

NPC.RemoveSpell Dehydration600

NPC.RemoveSpell Dehydration800

NPC.RemoveSpell Dehydration1000

EndIF

END

Link to comment
Share on other sites

  • Recently Browsing   0 members

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