[MOD] LevelUp Adjuster

A curated forum for approved mods. Users are unable to create new topics in this forum but can reply to existing topics. Please message a moderator to have your mod moved into this forum area.
User avatar
Ralzar
Posts: 1209
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: [MOD] LevelUp Adjuster

Post by Ralzar » Sun Mar 08, 2020 5:02 pm

Hm. I'm actually working on a mod for Racial Abilities at the moment that handles adjusting starting attributes by race. I could use the same code to add something more mod-setting controlled in this mod.

Good idea.
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

User avatar
Magicono43
Posts: 334
Joined: Tue Nov 06, 2018 7:06 am

Re: [MOD] LevelUp Adjuster

Post by Magicono43 » Sun Mar 08, 2020 5:19 pm

Ralzar wrote:
Sun Mar 08, 2020 5:02 pm
Hm. I'm actually working on a mod for Racial Abilities at the moment that handles adjusting starting attributes by race. I could use the same code to add something more mod-setting controlled in this mod.

Good idea.
You happen to know what namespace character/entity attributes are stored or used? I'm having some difficulty finding anything about those aspects in the API documentation.

User avatar
Ralzar
Posts: 1209
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: [MOD] LevelUp Adjuster

Post by Ralzar » Wed Jun 17, 2020 8:58 pm

Sandro wrote:
Wed Jun 17, 2020 8:07 pm
Also got some issues with the levelup adjuster mod. The attribute per level works just fine, but it doesn't give the class hp per level that I set in custom class, that still gets randomized. I've got the Change Hit Points ticked, I've got the Max hit points slider set to Class Max HP, the minimum slider set to Maximum Hit Points, Median is unticked, Retroactive Endurance is ticked.

The class hp is 30, current endurance bonus is +3, so I should be going from 55 to 88. But sometimes it takes me to 91? Is this just a case of me missing something?

Make sure you have activated the box "Change Hit Point" If this is not active, none of the HP-settings take effect.
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

User avatar
Sandro
Posts: 19
Joined: Mon Feb 25, 2019 4:26 pm

Re: [MOD] LevelUp Adjuster

Post by Sandro » Wed Jun 17, 2020 10:55 pm

Yep, it's on. I think the inconsistencies I'm getting might have something to do with the retroactive endurance thing. It just strikes me as odd that it just sometimes specifically adds an extra 3 hitpoints. Quickloading and levelling up from 1 to 2 always gets me either 88 or 91.

Edit: I turned off the Retroactive Endurance option and it stopped giving me different values. Maybe there's something weird about going from level 1-2 with it activated? I dunno.

User avatar
Ralzar
Posts: 1209
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: [MOD] LevelUp Adjuster

Post by Ralzar » Thu Jun 18, 2020 6:41 am

What values do you have you HP max and minimum set to in the mod settings? And how many HP is your character class max set to?

Also, it's been a while since I coded this, but I seem to remember that I had a really hard time getting it to act right for the first level up.
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

User avatar
Sandro
Posts: 19
Joined: Mon Feb 25, 2019 4:26 pm

Re: [MOD] LevelUp Adjuster

Post by Sandro » Thu Jun 18, 2020 11:12 am

They're set to Class Max HP and Maximum HP. The class max is 30.

User avatar
Ralzar
Posts: 1209
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: [MOD] LevelUp Adjuster

Post by Ralzar » Thu Jun 18, 2020 12:09 pm

Oh, I think I know what it can be. I think the retroactive HP adjustment is delayed up to 5 seconds. So if you level up and then wait at least 5 seconds before checking HP you should get the same each time. The reason for the 88 or 91 is that 88 is before the retoractive calcualtion is done and 91 is after the retroactive calculation.

I've learned a bit since I did that code so I think I'll make an update which makes the calculation more instantaneous.
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

User avatar
Sandro
Posts: 19
Joined: Mon Feb 25, 2019 4:26 pm

Re: [MOD] LevelUp Adjuster

Post by Sandro » Thu Jun 18, 2020 2:39 pm

Yup, that was it! Thanks!

Post Reply