Change health/energy regeneration ?
- 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 ?
Hi, Is it possible to change these regeneration values ?
A trip of a thousand leagues starts with a step.
Re: Change health/energy regeneration ?
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
- 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 ?
Great tip komag, thanks, I will have a look.
A trip of a thousand leagues starts with a step.
- 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 ?
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.
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.
Re: Change health/energy regeneration ?
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()
- 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 ?
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.
- Montis
- Posts: 340
- Joined: Sun Apr 15, 2012 1:25 am
- Location: Grimrock II 2nd playthrough (hard/oldschool)
Re: Change health/energy regeneration ?
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.
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.
Re: Change health/energy regeneration ?
But is mana/health regeneration even a stat? I want to make items with +mana regen really badly. But HOW?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()
Also.. What about attack power on armor?