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: #6
RE: Tactics, Focus or similar script
(09-25-2013 09:31 PM)XuN Wrote:  I think this will help you, if I didn't get what you want ... just tell me, my english is not specially good xD

Well, my Sphere is virtually non-existent y mi español es sólo un poco mejor...Smile. Your English is actually quite good, mi amigo. Gracias.

I think this is indeed what I am trying to do, though your coding is a little (a lot) beyond my knowledge. It is much more elegant and efficient than my clumsy attempt. In all honesty, I cannot pretend to understand the more complex coding in your script (but want to). I do think that for the most part I understand how it functions and why.

Let me make sure I understand what this does:

1. Player hits and does damage with non-archery weapon
2. Trigger SkillGain on Skill 50
3. Skill Check is performed on Skill 50, if it passes, Skill 50 increases (or is the gain automatic when the hit succeeds with no skill check to Battle Focuse)?
4. If the Skill Check passes it also applies the regen formula and returns the new regen gain amount.
5. Damage bonus for Battle Focus is applied (with other bonuses).

Now for some things I do not understand, if you do mind teaching a little...

1. if (<r100><<argn2>) This performs the Skill Check against Battle Focus, yes? Or is there no Skill Check for Battle Focus and it automatically increases with every successful hit? I want it so that it performs a Battle Focus skill check each time before actually increasing the skill (like with Tactics), or else skill gain will be too fast.

2. What does 50 ++ mean and what does this function do?

3. The ON=@Gain part should be pasted in the actual Battle Focus script, yes?

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

4. I understand the formula below, but how can I apply this to a passive increase in stamina regen for the character?

Code:
[function f_battlefocus_regen_gain]
return <eval <battlefocus>/200>//so now you have 1 point of regen per 20.0 points of battlefocus
09-26-2013 12:27 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 - Archaaz - 09-26-2013 12:27 AM
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)