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
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #7
RE: Tactics, Focus or similar script
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>

Argn2 in @Gain is a % of gaining a point of skill and <r100> gives you a random numer from 0 to 100 (you can use it also like <r1,100>, <r5,15> or any number(s) you want), at low skill rates argn2 is 90+ so you'll have a VERY HIGH chance of skillgain (you may want to test it further and make a better calcs or wait if someone have a better way of doing it!) as if (<r100> would almost always be lower than this <argn2> until this skill goes up)

50 in this whole code is focus skill number, so skillgain 50 means skillgain focus and 50++ does the same as 50=<50>+1 (i'm using 50 as key for focus but you can use focus ++ wich would result in focus=<focus>+1). I don't know if you were asking about '50' or the '++' but I tell you that you can use ++,-- for add or sustract values for an existing key (tags,locals,stats,skills, almost everything that it calls itself in same way to get values and to set values)

And you got what this does perfectly. But i will clarify your point 3: As you said, skill GAIN check is performed on focus, if it passes it got increased AND ALSO your regens updated, otherwise won't gain nor call for regens update, and it will return 1 the default gain, so we don't have double gain AND in this case not-updated regens
09-26-2013 01:26 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 - XuN - 09-26-2013, 03:00 AM

Forum Jump:


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