View previous topic :: View next topic |
Author |
Message |
ArielT
Joined: 26 Jan 2010 Posts: 30
|
Posted: Mon Feb 15, 2010 12:17 Post subject: Modifying Number of Attacks |
|
|
Is there a method by which I might be able to modify upward or downward the core number of attacks for the primary and offhand in NWN1 via a NWNX2 plugin? For instance, something that could create a Greater Two Weapon Fighting feat by adding an extra attack at -5 to the offhand.
I've trolled the repository a bit, but haven't run into anything appropriate yet. Has anyone tried and found the task intractable? |
|
Back to top |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Mon Feb 15, 2010 13:32 Post subject: |
|
|
This is useless, he wants only off-hand attack, like Tempest PrC. I have not seen anything which could do this in any plugin, but maybe you could workaround it via OnPhysicalAttack event on creature, sure it won't work vs PC, but at least something.
OnPhysicalAttack
if onhand
- delete var "offhand"
if offhand && !var "offhand"
- set var "offhand"
- make "false" attack - will be very hard to do, but maybe PRC library can help
something like that, or you can look into PRC, their solution never worked for me, but its been a while I see into that... _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
ArielT
Joined: 26 Jan 2010 Posts: 30
|
Posted: Mon Feb 15, 2010 13:33 Post subject: |
|
|
Yes. This adds extra attacks starting at full attack value, it does not actually modify the attack series. If I have a character with a 6 BAB, I get a +6/+1 base attack set, with using the EffectModifyAttacks() it becomes +6/+1/+6. I'd like to be able to make it become either just +6 or +6/+1/-4. Also, EffectModifyAttacks() does not affect the offhand in any way shape or form.
Quote: | something like that, or you can look into PRC, their solution never worked for me, but its been a while I see into that... | That might be viable. I know if you look at a character's bic, under the CombatInfo node, there is a NumAttacks listing. My gut was that this meant there must be a variable that can be modified after equipping a weapon via memory hack (aka NWNX2) that would allow the number of attacks to be changed. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Mon Feb 15, 2010 13:41 Post subject: |
|
|
ArielT wrote: | That might be viable. I know if you look at a character's bic, under the CombatInfo node, there is a NumAttacks listing. My gut was that this meant there must be a variable that can be modified after equipping a weapon via memory hack (aka NWNX2) that would allow the number of attacks to be changed. | Well PRC has no plugins, they did everything via standartd scripting, so dont expect miracles. They have Tempest and Greater Two-Weapon Fighting but as I said, in my PW with PRC it never worked. However it said their scripting solution works. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Dethia
Joined: 01 Oct 2009 Posts: 23
|
Posted: Sat Feb 20, 2010 23:28 Post subject: |
|
|
ArielT wrote: |
Yes. This adds extra attacks starting at full attack value, it does not actually modify the attack series. If I have a character with a 6 BAB, I get a +6/+1 base attack set, with using the EffectModifyAttacks() it becomes +6/+1/+6. I'd like to be able to make it become either just +6 or +6/+1/-4. Also, EffectModifyAttacks() does not affect the offhand in any way shape or form.
Quote: | something like that, or you can look into PRC, their solution never worked for me, but its been a while I see into that... | That might be viable. I know if you look at a character's bic, under the CombatInfo node, there is a NumAttacks listing. My gut was that this meant there must be a variable that can be modified after equipping a weapon via memory hack (aka NWNX2) that would allow the number of attacks to be changed. |
I do this in nwn2 by applying SetBaseAttackBonus effect coupled with EffectAttackDecrease. Make the effects supernatural so they can not be stripped by resting or so on and make sure they are linked. Sorry don't know if this works in nwn1 well. Apply the effect when a player equips a weapon in the off hand for example and does not have two weapon fighting. You can strip the effect when they unequip the weapon. |
|
Back to top |
|
|
ArielT
Joined: 26 Jan 2010 Posts: 30
|
Posted: Tue Feb 23, 2010 10:05 Post subject: |
|
|
Dethia wrote: | I do this in nwn2 by applying SetBaseAttackBonus effect coupled with EffectAttackDecrease. Make the effects supernatural so they can not be stripped by resting or so on and make sure they are linked. Sorry don't know if this works in nwn1 well. Apply the effect when a player equips a weapon in the off hand for example and does not have two weapon fighting. You can strip the effect when they unequip the weapon. | NWN1 doesn't have a SetBaseAttackBonus effect. It does have a function called SetBaseAttackBonus, but it doesn't work on PCs... And that still wouldn't affect the offhand. |
|
Back to top |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Wed Feb 24, 2010 11:49 Post subject: |
|
|
Works on pcs, try it. _________________ Neversummer PW NWNx powered mayhem |
|
Back to top |
|
|
ArielT
Joined: 26 Jan 2010 Posts: 30
|
Posted: Wed Feb 24, 2010 14:31 Post subject: |
|
|
Lokey wrote: | Works on pcs, try it. | Did a bit of testing. Interesting! I'm surprised the lexicon is wrong about this. Nothing similar for offhand? |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Apr 23, 2010 19:45 Post subject: |
|
|
ShaDoOoW wrote: |
This is useless, he wants only off-hand attack, like Tempest PrC. I have not seen anything which could do this in any plugin, but maybe you could workaround it via OnPhysicalAttack event on creature, sure it won't work vs PC, but at least something.
OnPhysicalAttack
if onhand
- delete var "offhand"
if offhand && !var "offhand"
- set var "offhand"
- make "false" attack - will be very hard to do, but maybe PRC library can help
something like that, or you can look into PRC, their solution never worked for me, but its been a while I see into that... |
Did anyone get far with this? Now I going to make greater and perfect 2weap fighting feat like OP wanted. Does anyone did it already via my suggestion or some plugin and want to share his solution?
Could spare me couple of hours of scripting, really this is quite tricky . _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
ArielT
Joined: 26 Jan 2010 Posts: 30
|
Posted: Mon Apr 26, 2010 9:02 Post subject: |
|
|
ShaDoOoW wrote: | ShaDoOoW wrote: |
This is useless, he wants only off-hand attack, like Tempest PrC. I have not seen anything which could do this in any plugin, but maybe you could workaround it via OnPhysicalAttack event on creature, sure it won't work vs PC, but at least something.
OnPhysicalAttack
if onhand
- delete var "offhand"
if offhand && !var "offhand"
- set var "offhand"
- make "false" attack - will be very hard to do, but maybe PRC library can help
something like that, or you can look into PRC, their solution never worked for me, but its been a while I see into that... |
Did anyone get far with this? Now I going to make greater and perfect 2weap fighting feat like OP wanted. Does anyone did it already via my suggestion or some plugin and want to share his solution?
Could spare me couple of hours of scripting, really this is quite tricky . | No, but I would wuv you for it...
I think just threw up a little in my mouth. |
|
Back to top |
|
|
|