logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWNX Weapons
Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Fri Dec 23, 2011 6:00    Post subject: Reply with quote

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
View user's profile Send private message
werehound



Joined: 17 Aug 2010
Posts: 41

PostPosted: Sat Dec 24, 2011 7:04    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
Daijin



Joined: 09 Jul 2007
Posts: 23
Location: Dunjon/Warr Acres, Ok

PostPosted: Thu Dec 29, 2011 19:46    Post subject: Cant use two of these at same time: Reply with quote

//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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Fri Dec 30, 2011 7:27    Post subject: Reply with quote

its typo in documentation, the second is of course "ubab"
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Daijin



Joined: 09 Jul 2007
Posts: 23
Location: Dunjon/Warr Acres, Ok

PostPosted: Fri Dec 30, 2011 7:43    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Thu Jan 05, 2012 18:04    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Thu Jan 05, 2012 18:16    Post subject: Reply with quote

Now that's awesome, Terra! However, I can't get the link to work. It might be MegaUpload, not sure.
Back to top
View user's profile Send private message
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Thu Jan 05, 2012 19:20    Post subject: Reply with quote

Try this: http://www.mediafire.com/?aapxpw7fcy7zjmg
_________________
I dun have any signature, I'm happy anyway.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Thu Jan 05, 2012 20:43    Post subject: Reply with quote

That one works, thanks Smile
Back to top
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Thu Jan 05, 2012 21:13    Post subject: Reply with quote

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
View user's profile Send private message
werehound



Joined: 17 Aug 2010
Posts: 41

PostPosted: Fri Jan 06, 2012 0:58    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Fri Jan 06, 2012 3:47    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
werehound



Joined: 17 Aug 2010
Posts: 41

PostPosted: Fri Jan 06, 2012 7:43    Post subject: Reply with quote

Thanks for the link, just what I needed.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Fri Jan 06, 2012 14:26    Post subject: Reply with quote

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
View user's profile Send private message
maddogfargo



Joined: 03 Nov 2009
Posts: 49

PostPosted: Wed Jan 11, 2012 18:45    Post subject: Reply with quote

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. Confused
_________________
* illegible scribble *
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next
Page 4 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group