(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...
. 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