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
Tactics, Focus or similar script
Author Message
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #9
RE: Tactics, Focus or similar script
(09-26-2013 01:26 AM)XuN Wrote:  Well, at first, regen function was wrong coded as it shouldn't return anything and it must set the regen value

Code:
[function f_battlefocus_regen_gain]
TAG.OVERRIDE.REGEN_2=<eval <battlefocus>/200>

Ah, okay that makes sense....Smile I was wondering whether I needed to use the override tag or not, and how the return figured into it.

Thank you very much for the script and the explanation. So r is like RAND. The gain should work fine with the range you set, at least for my purposes.

I was indeed wondering about the ++. Quite a useful function. Thank you very much. This is exactly what I wanted the script to do in my initial attempt.

(09-26-2013 02:14 AM)Extreme Wrote:  Just an idea...
PHP Code:
[function f_combatsys_damagebonus_uor]
return <eval (<
tactics>/10)+50+(<str>/5)+(<battlefocus>/50)> 

Ah, thanks! Between the three of you helping me this script will end up being two lines long....Smile
(This post was last modified: 09-26-2013 02:52 AM by Archaaz.)
09-26-2013 02:49 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Tactics, Focus or similar script - Archaaz - 09-24-2013, 07:08 PM
RE: Tactics, Focus or similar script - XuN - 09-25-2013, 09:31 PM
RE: Tactics, Focus or similar script - XuN - 09-26-2013, 01:26 AM
RE: Tactics, Focus or similar script - Archaaz - 09-26-2013 02:49 AM
RE: Tactics, Focus or similar script - XuN - 09-26-2013, 03:00 AM

Forum Jump:


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