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-nmm6 (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-nmm6 (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-nmm6 (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
Instant next attack
Author Message
Tyxn
Apprentice
*

Posts: 12
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Oct 2017
Reputation: 0



Post: #1
Instant next attack
after first attack how can i do my second attack instant with i_dagger.
tag.override.hitspeed = 0 it doesnt work ? i use 56d last build
(This post was last modified: 10-13-2017 01:37 AM by Tyxn.)
10-13-2017 01:36 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Instant next attack
tag.override.hitspeed doesn't exist, you have to use argn1 in @HitTry for overriding the swing speed. Take note that the mininum speed reachable is 0.5 seconds.
10-13-2017 04:38 AM
Find all posts by this user Like Post Quote this message in a reply
Tyxn
Apprentice
*

Posts: 12
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Oct 2017
Reputation: 0



Post: #3
RE: Instant next attack
there is no way to make an instant second hit ?
10-13-2017 05:24 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Instant next attack
you can simulate a 2nd attack by using a thing like this in @hittrigger

Code:
ON=@Hit
if (<skillusequick <weapon.skill>,<actdiff>>) && (<weapon.baseid> == i_dagger)
    src.damage <argn1>,<argn2>,<uid>,<damphysical>,<damfire>,<damcold>,<damenergy>,<dampoison>
    anim blabla
endif
10-13-2017 05:30 AM
Find all posts by this user Like Post Quote this message in a reply
Tyxn
Apprentice
*

Posts: 12
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Oct 2017
Reputation: 0



Post: #5
RE: Instant next attack
Yes ! its what im looking for but attacker need a chance to miss in the second attack.
10-13-2017 05:41 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Instant next attack
that's what skillusequick does
10-13-2017 05:47 AM
Find all posts by this user Like Post Quote this message in a reply
Tyxn
Apprentice
*

Posts: 12
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Oct 2017
Reputation: 0



Post: #7
RE: Instant next attack
i do it like this
ACTDIFF = <eval RAND(-10,-9)>
if (<skillusequick <weapon.skill>,<actdiff>>) && (<weapon.baseid> == i_katana)
src.damage <argn1>,<argn2>,<uid>,<damphysical>,<damfire>,<damcold>,<damenergy>,<dampoison>
src.say vurdu
endif

thanks for help darksun84
(This post was last modified: 10-13-2017 06:00 AM by Tyxn.)
10-13-2017 05:50 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: Instant next attack
The calculation used by UseQuick is different from the one used for combat, it's actually the calculation used by all the other skills!
This a quick summary how the skill chance is calculated:
The ACTDIFF value (ARGN2 in @SkillUseQuick/@UseQuick) is subtracted from the adjusted skill value (skill + stat bonuses), then the chance of success follow this sort of pattern:
Code:
Every 10% step of difference, the increment/decrement chance is halved in the following way:
At -50% difference the chance is around 1.5% (a decrement of 1.5625%)
At -40% difference the chance is around 3.1% (a decrement of 3.125%)
At -30% difference the chance is around 6.2% (a decrement of 6.25%)
At -20% difference the chance is 12.5% (a decrement of 12.5%)
At -10% difference the chance is 25% (a decrement of 25%)
At 0 difference chance is: 50%
At +10% difference the chance is 75% (an increment of 25%)
At +20% difference the chance is 87.5% (an increment of 12.5%)
At +30% difference the chance is  around 93.7% (an increment of 6.25%)
At +40% difference the chance is around  96.8%(an increment of 3.125%)
At +50% difference the chance is around 98.3% (an increment of 1.5625%)
You can overwrite the behaviour by using @UseQuick (in the fencing skill) or @SkillUseQuick (in a player event).

So if you want that your second attack strikes around a 50% chance, just use
skillusequick <weapon.skill>,<<weapon.skill>>

See:
https://wiki.spherecommunity.net/index.p...llUseQuick
https://wiki.spherecommunity.net/index.p...=@UseQuick
(This post was last modified: 10-13-2017 06:04 AM by darksun84.)
10-13-2017 06:02 AM
Find all posts by this user Like Post Quote this message in a reply
Tyxn
Apprentice
*

Posts: 12
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Oct 2017
Reputation: 0



Post: #9
RE: Instant next attack
I got it ^^ thanks
10-13-2017 06:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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