Author Topic: setbaseattackbonus and effectmodifyattacks  (Read 476 times)

Legacy_Highv Priest

  • Full Member
  • ***
  • Posts: 170
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« on: December 31, 2012, 08:25:07 am »


               I noticed the range for setbaseattackbonus is different from effectmodifyattacks. It's 6 for the first and 5 for the latter. Does SetBaseAttackBonus work for PCs? It states in nwnlexicon it does now. I ask because I have a crazy challenge map on my server stylized similarly to **** Zombies from Call of Duty.

If I could stack setbaseattackbonus and effectmodifyattacks when a player picks up a "Death Machine" I think it would make the powerup much more desired then a meager +5 to APR(previously using effectmodifyattacks).

Can these stack?(the thought of someone shooting 16 arrows in 6 seconds gets me all giddy! That's nearly 3 arrows a second!).

Thank you for any information regarding!

~~~~Highv Priest
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #1 on: December 31, 2012, 09:02:25 am »


               it was me who written this into lexicon, and yes it works but any creature already have some attacks coming from BAB so for creature with 16bab, you can add only two extra attacks with SetBaseAttackBonus

maximum attacks per round is think 15, i updated also attack table on wiki

7base (monk UBAB others 6only), 5from modify attack, 1from haste, 2 from improved two weapon fighting

of course NWNX can modify this futher up...
               
               

               
            

Legacy_Highv Priest

  • Full Member
  • ***
  • Posts: 170
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #2 on: December 31, 2012, 12:27:20 pm »


               Haste counts as effectmodifyattacks so it won't stack. However interestingly flurry of blows and rapid shot do NOT count in any cap. So effectively the max is 5(monk)+1(flurry)+5(modify or haste+modify)+2(setbaseattackbonus)+2(dual weild) = 15.

Thank you very much shadooow! It isn't much but +7 APR from death machine is still quite an impressive increase.
               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #3 on: January 02, 2013, 09:54:09 am »


               I don't think haste counts as an EffectModifyAttacks.  The engine breaks total attacks into four categories:

1. Onhand
2. Offhand
3. Effect Attacks
4. Additional Attacks.

Haste is counted as an Additional Attack.  Flurry of Blows / Rapid Shot are also classified as Additional Attacks.  Can't think of any others tho.

The most attacks a combat round can store from one attacker is 50, so I'd guess that is the absolute maximum number of attacks any one creature could make cleave, circle kick, etc inclusive.

Has the maximum 5 per flurry been confirmed?  Looking at the code the flurries are calculated like:
flurry1 = total_attacks / 3;
flurry2 = total_attacks / 3;
flurry3 = total_attacks / 3;

if (total_attacks % 3 > 0)
   ++flurry1;

if (total_attacks % 3 > 1)
   ++flurry2;

with no cap on them.  EDIT: Two attacks is special cased for flurr1 = 1 and flurry2 = 1
               
               

               


                     Modifié par pope_leo, 02 janvier 2013 - 12:29 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #4 on: January 02, 2013, 10:00:39 am »


               im with pope_leo on this, though Im not sure and Im also not willing to retest this '<img'> its unfortunately long time when I tested this and I deleted that module and character used for testing, still in that time I wasnt able to produce more than 15 attacks in vanilla nwn

BTW now we know that nwn is able to produce more attack with use of engine modifications such as nwnx, havent verified number of attack in flurries as I havent used more than 15apr with nwnx yet, but there is no reason to assume 5 is max anyway
               
               

               


                     Modifié par ShaDoOoW, 02 janvier 2013 - 10:03 .
                     
                  


            

Legacy_Highv Priest

  • Full Member
  • ***
  • Posts: 170
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #5 on: January 02, 2013, 11:51:39 am »


               I actually did test this. I gave myself effectmodifyattacks(5) while I had haste. My normal attacks were 80/75/70/65/80(had haste) and I went from that to 80/75/70/65/80/75/70/65/80.(that's 5+4) I also counted how many flurries my character performed to judge adequately what my character is actually doing. Also it's not that nwn is giving you free "full ab attacks" it's that it's effectively rolling over your normal attack range. It's like you repeated your attacks multiple times. I tested this myself by using effectmodifyattacks(1) without haste and it still gave me the free full ab attack.
               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #6 on: January 02, 2013, 01:08:54 pm »


               Hmm, that's strange.  I just tried it and got 4/3/3 flurries for 10 attacks with haste, EffectModifyAttacks(5), 4 attacks.  With haste and 4 attacks I got 2/2/1.

Maybe it's just my setup, because I was also seeing numbers dip below the 4th attack.  It was 53/48/43/38 in this test case and it printed a 33 and 28.  On the last two attacks.

Edit:
What it seems like it does is it goes through onhand, offhand attacks, then extra attacks.
onhand: bab - (5 or 3 * current attack number)
offhand: bab - (5 * offhand attacks taken)
extra: bab - (5 * extra attacks taken)

So what I would guess you should see if I am reading it right is with 10 attacks (4 base, 5 effectmodifyattacks, 1 haste):

Onhand: 80/75/70/65 
Offhand: None
Extra: 80/75/70/65/60/55

I am looking at the linux server tho, but I tested on Windows.
               
               

               


                     Modifié par pope_leo, 02 janvier 2013 - 02:28 .
                     
                  


            

Legacy_Highv Priest

  • Full Member
  • ***
  • Posts: 170
  • Karma: +0/-0
setbaseattackbonus and effectmodifyattacks
« Reply #7 on: January 02, 2013, 04:14:21 pm »


               I have seen that occasionally happen, but I can never replicate it.