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: #10
RE: Changing Life Regen
(09-14-2013 04:54 AM)Extreme Wrote:  Ahh, now I understand you...
You wrote this:
Code:
I would like to change the life regen formula to:
" Life_regen = str/100 + healing/50 " (per second)
So I understood you wanted to regen str/100 + healing/50 on every second...

Well, the TAG.OVERRIDE.REGEN_0 is not in seconds and I don't know how it works... I just know that setting to 1 it will not work on every second, and setting 100 you will get on every second.

Then I don't know how to do what you want.
You will need test again and again until you get what you need.

PHP Code:
[EVENTS E_REGEN]
ON=@SKILLCHANGE
     TAG
.OVERRIDE.REGEN_0 <MAX 1,<EVAL 20-(<HEALING>/5)>>
     
TAG.OVERRIDE.REGENVAL_0 <MAX 1,<EVAL <STR>/100>>
ON=@STATCHANGE
     TAG
.OVERRIDE.REGEN_0 <MAX 1,<EVAL 20-(<HEALING>/5)>>
     
TAG.OVERRIDE.REGENVAL_0 <MAX 1,<EVAL <STR>/100>>

[FUNCTION 
MAX]
IF <
ARGV[0]> >= <ARGV[1]>
 RETURN <
ARGV[0]>
ENDIF
RETURN <
ARGV[1]> 

It will work as you want... just check the regen_0 timer thing... do tests!!!!!!!!!!

nice! But I want that 1 to be the min of REGENVAL_0, and the MAX i want to be str/100

About REGEN_0 I want that it initiates at 20 seconds and the max must be 1 second, but i want that it changes as the healing changes ( 20 - healing/5 ).

Can you explain your code to me? (every single simbol, like "<" and "(" please?)


pleeeease?
(This post was last modified: 09-14-2013 08:08 AM by AmpereJoule.)
09-14-2013 05:58 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: 5 Guest(s)