Monster Level

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Monster Level

Post by Soaponarope »

What exactly does monster level do now? I don't know where to find or alter this information since there are no increment definitions like in Grimrock 1.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Monster Level

Post by Batty »

Using this script:

Code: Select all

function mobLevel()
   print('crowern level: ' .. crowern_1.monster:getLevel())
   print('health: ' ..  crowern_1.monster:getHealth())
   print('evasion: ' ..  crowern_1.monster:getEvasion())
   print('exp: ' ..  crowern_1.monster:getExp())
   print('move cooldown: ' ..  crowern_1.move:getCooldown())
   print('attack power: ' ..  crowern_1.basicAttack:getAttackPower())
   print('attack cooldown: ' ..  crowern_1.basicAttack:getCooldown())
end
I got this:
Image
Image
I set its level in the inspector, you can only set a monster's level once but as it only seems to affect health, why bother, because you can adjust that (and all other properties) separately, I presume.

Edit: I spawned a crowern and did crowern_1.monster:setLevel(100) and got:
Image
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: Monster Level

Post by Soaponarope »

Good idea to check like that, but it can't be right. I know the level raises the exp for instance. The increment definitions were nice because you could make different monsters grow stronger in an unique way.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Monster Level

Post by Batty »

You're right, here's what happened, try this yourself.

I killed a level 1 Crowern with only champion(1) attacking and onscreen said +90 exp but each champ got +99 exp...

Then, I did the same with a level 5 Crowern and onscreen said +131 exp but each champ got +144 exp...

Then, I did crowern_1.monster:setExp(1000) (still level 5 Crowern) and onscreen said +1,464 and each champ got +1,610 exp...

So, the exp property is just a base which the final value is calculated from upon death but I don't understand why the champs receive more exp than what is displayed. Also, I thought exp only went to champs that hit the monster but only champion(1) did the damage. :?

Edit: they're all human and get +10% bonus exp :lol: but still don't understand the equal distribution of exp.
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: Monster Level

Post by Dr.Disaster »

Batty wrote:Also, I thought exp only went to champs that hit the monster but only champion(1) did the damage.
This was the case back in LoG1. AH changed that part for LoG2 so not every champion has to score a hit to get their full experience.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Monster Level

Post by Batty »

Dr.Disaster wrote:
Batty wrote:Also, I thought exp only went to champs that hit the monster but only champion(1) did the damage.
This was the case back in LoG1. AH changed that part for LoG2 so not every champion has to score a hit to get their full experience.
Oh, thanks, good to know, I did 2 playthroughs and made sure every champ got in a hit, all for naught. :lol: :oops:
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: Monster Level

Post by Soaponarope »

Yea the full party exp was a welcome change I thought. It was counter productive before that things like getting good backstabs meant the rest of your group got less.
Post Reply