Change health/energy regeneration ?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Change health/energy regeneration ?

Post by cromcrom »

Hi, Is it possible to change these regeneration values ?
A trip of a thousand leagues starts with a step.
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Change health/energy regeneration ?

Post by Komag »

I remember some items from the game that affected these, so at least you could make custom objects with perhaps stronger effects
Finished Dungeons - complete mods to play
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: Change health/energy regeneration ?

Post by cromcrom »

Great tip komag, thanks, I will have a look.
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: Change health/energy regeneration ?

Post by cromcrom »

Gameeffects are hardcoded I presume. Anyways, I couldn't figure this out, and a damaging timer is not that cool...

But there must be a way, because when champions rest or are sick, regeneration is modified.
A trip of a thousand leagues starts with a step.
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Change health/energy regeneration ?

Post by petri »

Many of the original item effects were hardcoded (mainly because we were in a hurry and didn't have time to think about doing it properly). Looking at the kind of tricks you guys have been able to do with Lua, I'm sure you will find a clever way to control regeneration with timers and champion:setStat() ;-)
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: Change health/energy regeneration ?

Post by cromcrom »

Ok, that's what I thought. I indeed tried to damage the champions every few seconds, to counter the regeneration, but it didn't come well. I will think harder about this issue, and how to try to implement it. I will let you know if I succeed to create something appreciable.
A trip of a thousand leagues starts with a step.
User avatar
Montis
Posts: 340
Joined: Sun Apr 15, 2012 1:25 am
Location: Grimrock II 2nd playthrough (hard/oldschool)

Re: Change health/energy regeneration ?

Post by Montis »

If you want to set regeneration to 0 you could run a timer that resets the hp value all the time to a saved variable.
The variable would be saved each time someone receives damage or drinks a health potion.

Another solution I'm not sure would work could be playing with the food supply, since I think when you're running out of food, you don't regen health.
When destiny calls, the chosen have no choice.

My completed dungeon (LoG1): Hypercube
User avatar
Resu
Posts: 141
Joined: Tue Nov 10, 2015 12:09 am

Re: Change health/energy regeneration ?

Post by Resu »

petri wrote: Fri Sep 21, 2012 9:40 am Many of the original item effects were hardcoded (mainly because we were in a hurry and didn't have time to think about doing it properly). Looking at the kind of tricks you guys have been able to do with Lua, I'm sure you will find a clever way to control regeneration with timers and champion:setStat() ;-)
But is mana/health regeneration even a stat? I want to make items with +mana regen really badly. But HOW?

Also.. What about attack power on armor?
Post Reply