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: #5
RE: Tactics, Focus or similar script
If you are using SCP combat system you can do the weapon check inside f_combatsys_damagebonus_uor just by checking the following
Code:
[function f_combatsys_damagebonus_uor]
local.bonus.tactics = <eval (<tactics> / 10) + 50>
local.bonus.str = <eval <str> / 5>
if (<argo.IsWeapon>)  && !(<argo.type>==t_weapon_bow || <argo.type>==t_weapon_xbow)
    if <battlefocus> > 0 //Redundant as only Fighter SKillClass can learn
        local.bonus.battlefocus = <eval <battlefocus> / 50>
        SkillGain 50 //skillgain skill_battlefocus
    endif
endif

return <eval <local.bonus.tactics> + <local.bonus.str> +<local.bonus.battlefocus>>

So you can now make propper use of @Gain in this skill
Code:
ON=@Gain
if (<r100><<argn2>)//argn2 passes the chance of gaining, so we make custom rand num to bypass default calculation... otherwise gain will be called after we need it
    50 ++
    f_battlefocus_regen_gain
endif
return 1
So we now have the skill gain and a function that calls for regen update
Code:
[function f_battlefocus_regen_gain]
return <eval <battlefocus>/200>//so now you have 1 point of regen per 20.0 points of battlefocus

I think this will help you, if I didn't get what you want ... just tell me, my english is not specially good xD
09-25-2013 09:31 PM
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)