I wanna know what kind of attribuits the pol uses to define the speed that the Combat Script(parryAdv.ecl) will run
Weapon speed.....?
Attribute Dexterity.....?
And I also wanna know what kind of formula the pol uses to calculate the Combats script delay
CombatScript(SystemHookScript.../parryAdv.ecl)
Moderator: POL Developer
- MontuZ
- Forum Regular
- Posts: 338
- Joined: Fri Feb 10, 2006 8:08 am
- Location: Myrtle Beach, South Carolina
Re: CombatScript(SystemHookScript.../parryAdv.ecl)
Some very long confusing algorithm that frightens and scares me. Makes me want to kick the person who came up with it, I'm sort of venting because every time I look at it I want to die, lol.
It can be found somewhere in the forums by searching though.
http://forums.polserver.com/viewtopic.p ... 923&p=9916
It can be found somewhere in the forums by searching though.
http://forums.polserver.com/viewtopic.p ... 923&p=9916
http://forums.polserver.com/viewtopic.p ... 496&p=2642Myrathi explained the 'time to next swing' to me a few years back, and I quote:
EffectiveDex = (BaseDex + TempDexMod + InstrinsicDex) / 10
spd_div = (EffectiveDex + 100) * weaponspeed
clock_to_next_swing = (15,000,000 / spd_div) msecs
Test-case:
--> Char with 50 dex and a speed 35 weapon
BaseDex = 500
TempDexMod = 0
IntrinsicDex = 0
EffectiveDex = 500 / 10 = 50
spd_div = (50 + 100) * 35 = 150 * 35 = 5250
clock_to_next_swing = (15000000 / 5250) = 2857 ms = 2.857 seconds
I think the latter is right, not sure though, haven't tested any of them.Ok, so, let me see if I got it right...
I have to put in the weapon itemdesc entry either Delay or Speed
1) If I put Speed
interattack delay := (15000 / ((dexterity+100) * Speed)) seconds
2) If I put Delay
interattack delay := (Delay + CInt(character.delay_mod)) milliseconds
Right?
Re: CombatScript(SystemHookScript.../parryAdv.ecl)
perfect!, thank you MontuZ !!!