Author Topic: Can anything be done a the uselessness of Dirty Fighting feat?  (Read 2191 times)

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Can anything be done a the uselessness of Dirty Fighting feat?
« Reply #45 on: February 03, 2014, 07:00:15 pm »


               As of yet I have found out that GetLastAttackMode does not work with neither OnDamaged event nor OnHeartbeat module event (I tried an OnHeartbeat check to see if PC's last attack was in Dirty Fighting mode but it doesn't work anyway).
That's problematic.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Can anything be done a the uselessness of Dirty Fighting feat?
« Reply #46 on: February 03, 2014, 07:50:52 pm »


               

Grani wrote...

As of yet I have found out that GetLastAttackMode does not work with neither OnDamaged event nor OnHeartbeat module event (I tried an OnHeartbeat check to see if PC's last attack was in Dirty Fighting mode but it doesn't work anyway).
That's problematic.

I knew there is something fishy, Squatting Monk! I never used this function before, the GetActionMode returns a realtime combat mode. I was confused by this because I never actually used this in this event and because in a engine the action mode and combat mode are two completely different things which are accessed separatery. But in a NWScript both concepts are adressed by a single function.

this works Grani

int bDirty = GetActionMode(oDamager,ACTION_MODE_DIRTY_FIGHTING);

+ comfirming the GetLastAttackMode doesnt work outside of OnPhysical if you want to write about it into lexicon...
               
               

               


                     Modifié par ShaDoOoW, 03 février 2014 - 07:51 .
                     
                  


            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Can anything be done a the uselessness of Dirty Fighting feat?
« Reply #47 on: February 03, 2014, 08:25:47 pm »


               Now that you gents have figured out how to capture the combat modes, why not add the Improved Dirty Fighting Feat rather than modifying the original?
               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Can anything be done a the uselessness of Dirty Fighting feat?
« Reply #48 on: February 03, 2014, 08:31:42 pm »


               You guys are life savers. '<img'>
I finally got it to work and it looks like everything is perfect!

I did it with OnHeartbeat, though. I scrapped the idea of using pseudo-heartbeat, as Squatting Monk advised, because it could burden the module quite significantly. A check added to a regular OnHeartbeat, however, should not be very taxing.
While this solution means there is a delay of up to 6 seconds between activating Dirty Fighting and applying the OnHit properties, it's not frankly that bad.

This also means there are no issues with PVP, as opposed to the situation in which the check was added to the OnDamage script, I guess.

Pstemarie, I personally think that modifying the existing feat rather than making a whole new one to make the old one useful is a better idea. It means players won't have to invest in two feats to find use in them, but only one. Besides, modifications can be done without altering 2da, which is another reason I, for one, find it more attractive.
               
               

               


                     Modifié par Grani, 03 février 2014 - 08:41 .
                     
                  


            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
Can anything be done a the uselessness of Dirty Fighting feat?
« Reply #49 on: February 04, 2014, 04:44:38 am »


               

ShaDoOoW wrote...

I knew there is something fishy, Squatting Monk! I never used this function before, the GetActionMode returns a realtime combat mode. I was confused by this because I never actually used this in this event and because in a engine the action mode and combat mode are two completely different things which are accessed separatery. But in a NWScript both concepts are adressed by a single function.

Awesome! I thought I'd seen a function like that, but I only every searched the Lexicon for "combat mode". Lots of potential in this function.
               
               

               
            

Legacy__Guile

  • Hero Member
  • *****
  • Posts: 1308
  • Karma: +0/-0
Can anything be done a the uselessness of Dirty Fighting feat?
« Reply #50 on: February 07, 2014, 05:30:09 am »


               nwnx_cool can hook a lot of things, even "feat use", so when the player "toggled" the use of Dirty Fighting or any feat for that matter, you could apply effects / bonuses or whatever, even extra attacks...

Personally I believe when you take NWN to 11, you leave the scope of the core game, sure it's pretty easy to balance at level 20 or lower, but when you go beyond level 40, things tend to go crazy, and that's because you need super duper uber mobs to challenge a party of level 40+ Players....  (which in turn makes soloing virtually impossible for "most" characters)  Anyway, just my 2 cents (however worthless they are)... '<img'>
               
               

               


                     Modifié par _Guile, 07 février 2014 - 05:30 .