Page 1 of 1

Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 12:45 am
by cromcrom
Hi, Is it possible to change these regeneration values ?

Re: Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 1:02 am
by Komag
I remember some items from the game that affected these, so at least you could make custom objects with perhaps stronger effects

Re: Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 1:10 am
by cromcrom
Great tip komag, thanks, I will have a look.

Re: Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 9:31 am
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.

Re: Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 9:40 am
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() ;-)

Re: Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 9:52 am
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.

Re: Change health/energy regeneration ?

Posted: Fri Sep 21, 2012 12:52 pm
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.

Re: Change health/energy regeneration ?

Posted: Thu Mar 03, 2022 3:14 am
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?