Broken Night person trait

Discussion in 'Fallout Tactics Modding' started by nadeauhugo, Jun 15, 2018.

  1. nadeauhugo

    nadeauhugo Author of FOT mod THE SUM Modder

    468
    Mar 9, 2014
    In all those years, or with today's imagination and hack skills ;), does anyone came/can come up with a solution for the broken Night person trait? I received a suggestion to change it in my mod, but besides not using it at all, I don't know what to do. I don't mind having it fixes, I kind of like the idea of it.

    But it could also be replaced by a totally new trait. In the case of my mod, I'm thinking about something like this : Resilient = "You can improvise meals anywere. You don't have to search for food, (100% radiation resistance) but you have -2 constitution."
     
  2. Melindil

    Melindil First time out of the vault

    67
    Apr 15, 2018
    I'd need to poke a bit into how exactly the Night Person bonus is applied. I seem to remember the behavior being something like:
    1) At character creation, character with the trait gets -1 to permanent PE and IN
    2) When character is in the dark, they gain +2 to permanent PE and IN (canceling out the -1, leaving a +1 bonus)
    3) I think #2 is tied to the "doNightPerson" internal trait flag, this is what I need to check
    4) When back to daytime, the doNightPerson flag isn't reset, leaving the bonus on the character permanently
    5) I've seen mention that NPCs don't properly receive the bonus, so this also needs to be checked

    Assuming the above is correct, there are a few possible ways to fix:
    1) See if there is already any code that turns off the doNightPerson flag, and figure out why it isn't called, and apply a hex edit to fix
    2) Add a hex edit to one of the timer routines to perform this check
    3) Use FOTExtender + Lua code to check the current time (day/night), and on any transition adjust the flags for all actors appropriately.
     
  3. nadeauhugo

    nadeauhugo Author of FOT mod THE SUM Modder

    468
    Mar 9, 2014
    He what is Lua code? I guess if this is feasible with FOTEXtender, we should simple wait until that is available then. Why not. From the moment the problem is solvable, I'm good with it! Thanks for your timely intervention like always. Yes! :D
     
  4. Imagination Engineer

    Imagination Engineer First time out of the vault

    11
    Jun 14, 2018
    Looks like a trait designed with Nightkin mutants in mind..
     
  5. nadeauhugo

    nadeauhugo Author of FOT mod THE SUM Modder

    468
    Mar 9, 2014
    Yeah.... oh, that gives me an idea... A thing that could be even more interesting I think for Fallout related mods would be a trait reflecting years and years of confinement. Something like : "Years of life underground has seriously altered your internal clock. You sleep less often and you're healing rate is reduced, but you can concentrate for hours on solving problems (+1 INT)". Something like that...
     
  6. Gizmojunk

    Gizmojunk Half-way Through My Half-life

    Nov 26, 2007
    ...To eat things, that would make a billy-goat puke!