Divinity: Original Sin 2

Divinity: Original Sin 2

112 ratings
Scale Experience By Player Level
   
Award
Favorite
Favorited
Unfavorite
Type: Add-on
Game Mode: Story
File Size
Posted
Updated
56.515 KB
27 Jul, 2020 @ 2:40pm
22 Jul, 2022 @ 5:32pm
14 Change Notes ( view )

Subscribe to download
Scale Experience By Player Level

In 1 collection by LaughingLeader
LaughingLeader's Mods - Definitive Edition
26 items
Description
This mod scales higher level enemy death experience to the level of the highest player, allowing you to use enemy level scaling mods without worry of leveling up too fast. Lower level enemies still use their level for the xp granted to the party.



For instance, if your party is level 15, and you kill a level 20 enemy, you get experience scaled to level 15. If your level 15 party kills a level 11 enemy, you get experience scaled to level 11.

Script Extender Required
Norbyte's Divinity Script Extender[github.com] is required for this mod to work.



How does this compare to other mods that modify experience?
Other mods out there tweak experience gained by editing character stats. A character stat may have a gain value of 3 for instance, so a mod may reduce that to 1 or 2 (it can't be 1.5). Unfortunately with that kind of change, you still will end up with a ton of experience if the level difference is too great.

This mod does the following:
  1. Default experience granted by characters dying is set to 0, thanks to the script extender formula override API.
  2. When a character that grants experience dies, the Gain value in their character stat is fed through a scripted experience formula, using the party's highest level, instead of the dying character's level.
  3. The scaled experience is then granted to the party.

So this mod modifies the actual experience gained, rather than a scaling value on the character.

Support
If you're feeling generous, an easy way to show support is by tipping me a coffee:

[ko-fi.com]

I love modding this game, and I love interacting with the community. Every bit helps to keep me doing what I'm doing. Thanks!

Additional Options (LeaderLib)
If LeaderLib is active, additional settings will be available in the Mod Settings menu (in the Options UI).

These include the following:
  • Ignore Alignments - All dying non-allied characters will grant experience one time upon death, effectively letting you get experience from neutral characters.
  • Always Scale to Player Level - If a lower-level enemy dies when this option is enabled, their experience will scale to the party's level.
  • Character Gain Modifier - This is a modifier that will be applied to the character stats gain value, allowing you to raise or lower experience gained further.

Links
52 Comments
Matchet 6 Jan @ 8:11pm 
What would be your setup in xp gain for a six party setup with a modifier on enemies to scale up to the player level, then go +2 levels beyond them? To keep levels as much as if it were on a vanilla play
-Snoopi- 22 Nov, 2023 @ 4:53pm 
Not sure exactly if this mod is working for me.

I was using -25% exp mod aswell as this, and I tested it.

With SEBPL (scale expereince by player level) and -25% exp, i got 5040EXP from the test enemy.

With SEBPL only, I got 10400 EXP from the test enemy.

With no mods, I got 10400 exp from the test enemy.
-Snoopi- 15 Nov, 2023 @ 10:12pm 
So am I suppose to use another less exp mod with this mod?
For example, do I use the -25% exp mod in conjunction with this mod?
Curco Vein 26 Sep, 2023 @ 7:13am 
Testing this mod (Default settings) alongside Enemy Upgrade Overhaul:

Party lvl 9 vs lvl 3 monster:

No mods: 200 XP
Enemy Upgrade Overhaul +1 (lvl 10 monster): 1400 XP
Enemy Upgrade Overhaul +1 and this mod: 1000 XP (x5 the vanilla experience)

Is there any setting I can turn on/off so enemies are at my lvl +1, but they give the vanilla experience, in this case, 200 XP?
OiI - it's not Oil, but OiI 17 Feb, 2023 @ 2:26am 
Recode the game I guess. You'd have to go into the base code of the game and change it from int to long int to be able to hand stuff bigger than 32bits.
KeeperOfTheNightmare 6 Nov, 2022 @ 12:49pm 
if any way to change exp variable type from int to longint, it would be great)
KeeperOfTheNightmare 6 Nov, 2022 @ 12:48pm 
RAM memory*(8b * 4B == 32, in x64 8b * 8B == 64 bites of memory for this variable (exp itself)

P.S. 1 bit == 2 state, 0 and 1, in 1 byte (B) 8 bit (b), x32 use 4B (bytes) for calculation, x64 use 8B (bytes),
So, max exp value in x64 will be 9'223'372'036'854'775'808
then in x32 it will be 2'147'483'648
KeeperOfTheNightmare 6 Nov, 2022 @ 12:40pm 
any fix to exp high level values? after 36 level exp become more then 2^32 (32 bit) and then become negative value, any way to make exp valuable to long int(x64), but not basic int(x32) in memory?
LoveMaker 23 Sep, 2022 @ 11:22am 
I didn't know there were more detailed descriptions in game. It seems like I do gain 3 times the XP from killing. "Enable Death Experience" does turn the mod on and off. I'm still not sure if I can turn off enemy XP gain being scaled down to my level.
LoveMaker 23 Sep, 2022 @ 11:07am 
Hello. I'm looking for a mod that increases the experience I gain instead of lowering it. I want to roleplay fully but that entails ignoring a lot of quests in the game.
I didn't quite understand the description fully. If I set the Character Gain Modifier to 3 will I gain 3 times the experience? Does "Enable Death Experience" turn on and off the mod or does it do something else? Are higher leveled enemies always scaled down to me regardless of what I options I enable or disable?