5 posts / 0 new
Last post
iamGBOX
iamGBOX's picture
Offline
Last seen: 1 week 5 days ago
Joined: 10/07/2017 - 19:17
Karma: 3
Player Health Resets When Changing Cells

Hey TTW! This is my first post, and I'm new to Fallout, a little less than one year initiated. I'm captivated by the Fallout world and community and look forward to learning more about both, including improving my ability to script. Thank you for being so welcoming! 

Here's my issue: Like the subject line holds, when my Player character changes cells, his health resets. All percentage, limb status, everything. Needless to say, this totally breaks the balance of the game and even makes certain quests practically impossible to finish. I started on a quick mod to patch the error by capturing the player health and limb status and checking for cell changes, but it's just not working for me. I have included my specs, modlist, and quest script for my attempted patch. Any help would be very much appreciated, because at present I'm no longer playing until I can get this solved.


SPECS:

CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz

Video Card: Intel(R) HD Graphics 4000

Memory: 12 GB

OS: Microsoft Windows 10 (build 15063), 64-bit  


MODLIST:

 


SCRIPT:

 


I checked the syntax with CIPSCIS's Script Validator (http://www.cipscis.com/fallout/utilities/validator.aspx) and tried other variants of the script, using timers and whatnot to try for the effect I want. Best I got was seeing my health remain the correct values for less than a second before changing back to top levels. My full .ESP is attached below. Thanks in advance!

File Attachments: 

TTW Version Compatibility: 

v2.9

Rating: 

0
Your rating: None
0
No votes yet
Edited by: RoyBatty on 10/07/2017 - 20:30
RoyBatty
RoyBatty's picture
Administrator
Offline
Last seen: 3 hours 53 min ago
Joined: 04/27/2014 - 03:26
Karma: 5373
Donor
https://geckwiki.com/index

iamGBOX
iamGBOX's picture
Offline
Last seen: 1 week 5 days ago
Joined: 10/07/2017 - 19:17
Karma: 3
Thanks Roy! I did try a timer

Thanks Roy! I did try a timer, hence the name of my float, timer1a. I decided to try a doOnce sort of script, which is what I have above; I just didn't change the name of the value. Do you think a timer would be more effective?

iamGBOX
iamGBOX's picture
Offline
Last seen: 1 week 5 days ago
Joined: 10/07/2017 - 19:17
Karma: 3
So after having just

So after having just completed the injury quest for Moira per this post, I am no longer seeing this error. Apologies for the duplicate, but I would still appreciate any constructive responses if you see anything wrong with the script, anything that would prevent it from working effectively. 

RoyBatty
RoyBatty's picture
Administrator
Offline
Last seen: 3 hours 53 min ago
Joined: 04/27/2014 - 03:26
Karma: 5373
Donor
Well you don't have a timer

Well you don't have a timer there, you have a flip flop which takes just one frame to change states.