View previous topic :: View next topic |
Author |
Message |
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Dec 23, 2011 6:00 Post subject: |
|
|
variable "AB" on player character doesn't work;
details:
- mostly the AB is correctly recalculated in character sheet however when I attack anything, AB is still the same
- if I set the variable when equipping a weapon, then the AB doesn't get propertly recalculated until I equip another item to any slot _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
werehound
Joined: 17 Aug 2010 Posts: 41
|
Posted: Sat Dec 24, 2011 7:04 Post subject: |
|
|
ShaDoOoW wrote: |
- if I set the variable when equipping a weapon, then the AB doesn't get propertly recalculated until I equip another item to any slot |
Try this with a
Code: | DelayCommand(0.00, SetLocalInt()); |
|
|
Back to top |
|
|
Daijin
Joined: 09 Jul 2007 Posts: 23 Location: Dunjon/Warr Acres, Ok
|
Posted: Thu Dec 29, 2011 19:46 Post subject: Cant use two of these at same time: |
|
|
//The weapon will look for feat 23 as its overwhelming crit feat
SetLocalInt( oWeapon, "oc", 23 )
//The weapon will respect unarmed base attack bonus
//This will work reguardless of class composition
SetLocalInt( oWeapon, "oc", TRUE );
Or am I missing something on how to set that up? _________________ Daijin Dreamweaver, Leader of the Dream Warriors for 32 Earth years.
Faith, Loyalty, Honor, Truth and Friendship always.
I live to serve, O' Lord Jesus, Thy Will Be Done! |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Dec 30, 2011 7:27 Post subject: |
|
|
its typo in documentation, the second is of course "ubab" _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Daijin
Joined: 09 Jul 2007 Posts: 23 Location: Dunjon/Warr Acres, Ok
|
Posted: Fri Dec 30, 2011 7:43 Post subject: |
|
|
ShaDoOoW wrote: | its typo in documentation, the second is of course "ubab" |
Thank you! _________________ Daijin Dreamweaver, Leader of the Dream Warriors for 32 Earth years.
Faith, Loyalty, Honor, Truth and Friendship always.
I live to serve, O' Lord Jesus, Thy Will Be Done! |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Thu Jan 05, 2012 18:04 Post subject: |
|
|
Tinked about with it. I wasnt able to add a damage variable because I didnt find a suitable place to hook it in.
I did however make a funny discovery which allows people to change the levelcap and level past 40. Todo that you first set a localint "levelup" to the level the PC can levelup to. You also need to use the SetServerCap otherwise you won't be able to login with PCs higher then the cap.
www.megaupload.com/?d=NMW77KQU _________________ I dun have any signature, I'm happy anyway.
Last edited by Terra_777 on Thu Jan 05, 2012 19:11; edited 1 time in total |
|
Back to top |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Thu Jan 05, 2012 18:16 Post subject: |
|
|
Now that's awesome, Terra! However, I can't get the link to work. It might be MegaUpload, not sure. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
|
Back to top |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Thu Jan 05, 2012 20:43 Post subject: |
|
|
That one works, thanks |
|
Back to top |
|
|
Zunath
Joined: 06 Jul 2006 Posts: 183
|
Posted: Thu Jan 05, 2012 21:13 Post subject: |
|
|
Very awesome!
We use a custom leveling system on my server but it would be nice to show the level range we use (1-50) on the server info. It definitely works, but I have to manually increase the server max level for it to show on Gamespy. Any way to fix that?
EDIT: I've tried setting it in NWNPlayer.ini as well but that didn't do it. |
|
Back to top |
|
|
werehound
Joined: 17 Aug 2010 Posts: 41
|
Posted: Fri Jan 06, 2012 0:58 Post subject: |
|
|
ShaDoOoW wrote: | variable "AB" on player character doesn't work;
details:
- mostly the AB is correctly recalculated in character sheet however when I attack anything, AB is still the same
|
Well craaaaap. This is still the case. Terra, any word on this?
**EDIT**
Oh, and since you're adding more than jsut nwnx_weapons functions, any possibility of a
Code: | void WriteToLog(string sLogName, string sText); |
function? For specifying multiple logs?
**EDIT**
Nevermind. It works fine against creatures, but has no effect against placeables, my test subject. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Fri Jan 06, 2012 3:47 Post subject: |
|
|
AB I think only works vs creatures. I hooked the functions that calculate AB for the character-sheet and the function that calculates AB vs Creature.
Printing to files is an easy enough function to add but its already present in other nwnx plugins:
nwnx_systemdata2: http://nwvault.ign.com/View.php?view=other.detail&id=1428 _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
werehound
Joined: 17 Aug 2010 Posts: 41
|
Posted: Fri Jan 06, 2012 7:43 Post subject: |
|
|
Thanks for the link, just what I needed. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Fri Jan 06, 2012 14:26 Post subject: |
|
|
Terra_777 wrote: | AB I think only works vs creatures. I hooked the functions that calculate AB for the character-sheet and the function that calculates AB vs Creature. |
oh, i tested it on doors, its sad this way my older solution seems more reliable to me (attack increase at <20 and attack decrease at 21> with BAB set to 50 at 21) _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
maddogfargo
Joined: 03 Nov 2009 Posts: 49
|
Posted: Wed Jan 11, 2012 18:45 Post subject: |
|
|
I'm guassing NWNx_Fixes DLL won't help you figure out the AB/BAB issue because it handles the boost to these stats, not the actual values in character sheet / on level up. _________________ * illegible scribble * |
|
Back to top |
|
|
|