There are people sorta randomly working on writing an opensource executable for Nwn2 and access to MaxHP could be implemented there …
That sounds interesting. If they manage to do it, I bet it could open up plenty of options for modding the game, which is really nice
Is there a website or a blog or something where these guys post their progress? I would really like to see how the project turns out.
@Akhacha Thanks for the scripts, it seems to somewhat work. I only tested it on a couple of characters with different stats and feats, and using the console to give them XP to level up.
So far, on each level-up the hit points gained are randomized, which is great. I did notice however that having a negative CON modifier doesn’t affect the results as it should.
For example, I created an Elf Wizard with 6 CON (-2).
Without your scripts, his HP on the 1st level was 2, and on each subsequent levels, he gained 2 HP. So it went from 2 to 4 to 6, etc.
When using your scripts however, on the 1st level, he had 4 HP (?), instead of 2 somehow, and on each subsequent level ups, up to level 20, he would gain HP in the range from 2-4, instead of 1-2 (hit die + CON = d4 + (-2) = 1 to 2)
I didn’t have Toughness feat or any similar feats that would affect the character’s HP.
Another thing that I noticed was that after de-leveling him (by giving him negative XP), his total health did not change and stayed the same (around 50 in this case) as when he was level 20. This behavior does not appear when running the game without the scripts, as his HP is reseted back to 2.
Upon joining, party members will have the lowest HP possible (1 per level + CON/feat bonuses).
I noticed that as well. After skipping the tutorial/Harbor Fair area, you and your companions are given enough experience for level 3, and I noticed that Amie and Bevil had only 3 HP (4 for Bevil because of his Toughness feat).
That’s all the testing that I did.
Overall, I think it’s an interesting workaround, so thank you for sharing. If you can somehow create a script without altering the 2DA files, or reducing companions HP, that’d be great, but I doubt we could do much at this point, as it seems to be hardcoded.
The only hope we have is for that open-source project that @kevL_s mentioned, or until someone figures out a way to un-hardcode functions from the game files.