The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Life Mana Stam Regen *solved*
Author Message
AmpereJoule
Journeyman
*

Posts: 59
Likes Given: 7
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #12
RE: Changing Life Regen
(09-14-2013 08:20 AM)Ben Wrote:  OK, I got a little more info on this regen stuff. It'S all messed up, so I will probably do some changes to it in the source

Right now, sphere.ini states that:
// Time in seconds for hitpoint regeneration
Regen0=40

Well that's not really in seconds, it's in tenths of seconds so 40 here is 4 seconds.

Now, for TAG.OVERRIDE.REGEN_0 in this case IT IS in SECONDS but it's not a total override like most people thought it was, it's a modifier to the default ini setting.
So if TAG.OVERRIDE.REGEN_0 = 3 in this case, you take the ini setting of 4 seconds, minus the 3 seconds of the override and your rate is down to 1 sec.
There are also other modifiers to take into account though, like Dex will affect STR regen and food level will affect all regens.
As for TAG.OVERRIDE.REGENVAL_0, this is in fact an override and the value set is the amount of the stat that will regen when it's time to regen.

As for setting it to 100, well, it can't go faster then 1 second. Smile

Is this more clear now?


WOW, thank you very much!

But I'm a noob about programming here, so, please explain me how do I do something like:
PHP Code:
[EVENTS E_REGEN]
on=@SkillChange
     TAG
.OVERRIDE.REGEN_0 healing///so, if healing = 100, it will be 20, lets remember that my sphere.ini is "Regen0=210", so 21 - 20 = 1, right?
     
TAG.OVERRIDE.REGENVAL_0 str/100 //when the player gets str=50 will he rocover 1,5 of health?
on=@StatChange
     TAG
.OVERRIDE.REGEN_0 healing///so, if healing = 100, it will be 20, lets remember that my sphere.ini is "Regen0=210", so 21 - 20 = 1, right?
     
TAG.OVERRIDE.REGENVAL_0 str/100 //when the player gets str=50 will he rocover 1,5 of health? 

is it like this:
PHP Code:
[EVENTS E_REGEN]
ON=@SKILLCHANGE
TAG
.OVERRIDE.REGEN_0 <EVAL (<HEALING>/5)>
TAG.OVERRIDE.REGENVAL_0 <EVAL (1) + (<STR>/100)> 
ON=@STATCHANGE
TAG
.OVERRIDE.REGEN_0 <EVAL (<HEALING>/5)>
TAG.OVERRIDE.REGENVAL_0 <EVAL (1) + (<STR>/100)> 
[
eof
??

PS: "Dex will affect STR regen"? You mean, Dex will affect Hits Regen? (forget about the hungry/food)
(This post was last modified: 09-14-2013 08:40 AM by AmpereJoule.)
09-14-2013 08:35 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Changing Life Regen - RanXerox - 09-13-2013, 06:55 AM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 10:04 AM
RE: Changing Life Regen - Extreme - 09-13-2013, 12:41 PM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 01:07 PM
RE: Changing Life Regen - Extreme - 09-13-2013, 01:24 PM
RE: Changing Life Regen - AmpereJoule - 09-13-2013, 01:33 PM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 04:41 AM
RE: Changing Life Regen - Extreme - 09-14-2013, 04:54 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 05:58 AM
RE: Changing Life Regen - Ben - 09-14-2013, 08:20 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013 08:35 AM
RE: Changing Life Regen - Extreme - 09-14-2013, 10:05 AM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 11:56 AM
RE: Changing Life Regen - Ben - 09-14-2013, 10:22 AM
Re: RE: Changing Life Regen - Extreme - 09-14-2013, 02:17 PM
RE: Changing Life Regen - AmpereJoule - 09-14-2013, 02:49 PM
RE: Changing Life Regen - Ben - 09-14-2013, 10:38 PM
RE: Changing Life Regen - AmpereJoule - 05-06-2015, 11:09 PM

Forum Jump:


User(s) browsing this thread: 9 Guest(s)