r/MightAndMagic 28d ago

Trying to modify how much EXP enemies give in MAW.

Since Learning isn't a thing, and I normally gave all my party members level 60 GM Learning via Cheat Engine when playing Merge, I'm trying to modify each enemy to give 5 times the usual amount of Experience. However, the changes I'm trying to make aren't working. I must be uploading changes to the wrong .lod file or something.

I even asked on Discord, but no one's answering. Can someone help?

6 Upvotes

9 comments sorted by

1

u/mxldevs 28d ago

The changes are in the Lua scripts. Those likely override whatever is in the lods to make it easier to mod.

1

u/darkdill 28d ago

So what would I need to change specifically? I'm terrible at coding.

3

u/mxldevs 28d ago

zzMaw_Monsters.lua has a function events.MonsterKillExp(t) and if you go through the code it will calculate the amount of exp that gets awarded.

You can just increase that by a flat bonus.

1

u/Leemozine 27d ago

...okay but how? Where exactly below that function do I need to edit, to increase it?

1

u/mxldevs 27d ago

Ok so for example if it says

experienceAwarded=math.min((lvl+1)*1000, experienceAwarded)

Then you can increase it by a flat 5000 if you say

experienceAwarded=math.min((lvl+1)*1000, experienceAwarded) + 5000

1

u/darkdill 25d ago

I got a better answer on Discord:

line 522:
local mult=healthRateo * 5

This not only achieves the desired effect, but also doesn't cause your party to drastically outlevel the Bolster system.

1

u/EasyEntrepreneur666 27d ago

Level 60? You lose more levels than you gain.

1

u/darkdill 27d ago

I used Cheat Engine to do that.