New actor values?

Post » Fri May 27, 2011 8:03 am

So, I've put together a timescale adjuster, but apparently the hardcoe mode needs rates are, for the most part, based on realtime rather than gametime, meaning that if you lower your timescale you still end up having to eat, sleep and drink like your timescale was 30. I've found the gamesettings associated with this, they start with fHC, but there's no vanilla script function to change them. So I was thinking I could set the rates to 0, and set the H20, Starvation, and SleepDepravation values by hand. Trouble is, I don't know where the numbers are stored or how to access them. They aren't globals, and the list of actor values hasn't been updated for NV. I've tried the obvious possible names, but no luck. Anyone know anything about this? I can think of a less elegant workaround, but if anyone knows the answer it'd save me some time.
User avatar
Talitha Kukk
 
Posts: 3477
Joined: Sun Oct 08, 2006 1:14 am

Post » Fri May 27, 2011 11:21 am

Her you go Imp:

fHCStarvationRate
fHCSleepDeprivationRate
fHCDehydrationRate
User avatar
Sabrina Steige
 
Posts: 3396
Joined: Mon Aug 20, 2007 9:51 pm

Post » Thu May 26, 2011 11:12 pm

He already knows how to change the rate at which you starve/etc - he wants to set them to 0 and then alter the character's current starvation/deprivation/dehydration levels via a script.

I don't know what the actor values are for them (or if they are truly actor values), but you can still modify them via script (even if you can't find out what they currently are). Do so via a quest script that applies a 'spell effect' or whatever it's called that modifies those values.
User avatar
Bambi
 
Posts: 3380
Joined: Tue Jan 30, 2007 1:20 pm

Post » Fri May 27, 2011 2:11 am

Found 'em.

hunger
dehydration
sleepdeprevation (note that this one is misspelled)

So you can use "player.setav hunger 500", etc. to adjust the values directly. And setting those game settings to zero didn't work - they're actually the realtime delay in seconds between incrementing each respective rate. Setting them each to 100000 did the trick though. The fHCSleepRestorationMOD, or whatever it is, also controls how quickly your sleep deprivation gets restored when you sleep. It seems to be the amount that is restored by 1 hour of sleep (and it doesn't seem to like being set to 0, but 0.01 is OK).
User avatar
Peter P Canning
 
Posts: 3531
Joined: Tue May 22, 2007 2:44 am


Return to Fallout: New Vegas