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 
 
Ability Score Module.

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
dragon-slayer



Joined: 19 Sep 2005
Posts: 7

PostPosted: Mon Sep 19, 2005 22:52    Post subject: Ability Score Module. Reply with quote

I know that it is possible to permantly modify ability scores using NWNX-Leto but the down side is that it has to boot the character to make the change. I am most concerned with the ability scores that effect spellcasting (INT, WIS, CHA) but it would be great to have a function for each. Is it possible for someone to write a module for NWNX that would handle this?
Back to top
View user's profile Send private message
dragon-slayer



Joined: 19 Sep 2005
Posts: 7

PostPosted: Wed Sep 21, 2005 18:55    Post subject: Reply with quote

Am I corect in assuming that the function would not be this simple.

Code:


void CNWNXFunction::SetWis(char* value)
{
    int iWisValue = atoi(value);
    *(int*)(pGameObject+0x1??) = iWisValue;
}





And the main part of the problem is because the value of "0x1??" is not the same for each character because even in memory it is stored in a GFF structure?
Back to top
View user's profile Send private message
dragon-slayer



Joined: 19 Sep 2005
Posts: 7

PostPosted: Wed Nov 09, 2005 17:29    Post subject: Reply with quote

Can any one help me out with any answerer?
Back to top
View user's profile Send private message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Wed Nov 09, 2005 21:56    Post subject: Reply with quote

Try this:

http://home.comcast.net/~xildjian/Modifybic.zip

This is a little plugin I did that lets you change anything in the character .bic file that does not involve rewriting the whole file. So adding wings, tail, or changing the attributes should work. This like leto script requires booting the character off the server to make the required changes.
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
dragon-slayer



Joined: 19 Sep 2005
Posts: 7

PostPosted: Tue Nov 15, 2005 16:17    Post subject: Reply with quote

Thanks for your aid Xildjian although this is not exactly what I was looking for as I already have the functionality working via leto script and was just hoping to improve upon it by being able to modify the character live.
Back to top
View user's profile Send private message
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Wed Nov 16, 2005 11:04    Post subject: Reply with quote

You dont have to boot the player for Letoscript to apply, you can use ActivatePortal to portal the playet to the server they are already on.
Back to top
View user's profile Send private message
dragon-slayer



Joined: 19 Sep 2005
Posts: 7

PostPosted: Fri Nov 18, 2005 16:37    Post subject: Reply with quote

Thanks Primogenitor I will definatly give that a try.
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Wed Nov 23, 2005 22:54    Post subject: Reply with quote

Primogenitor, would that allow you to bypass the +12 limitations to ability bonuses?

ie A character has +9 to his base strength, and then uses one of the barbarian rage abilities to push his strength to +13. Could I ActivatePortal to add that bonus and then remove it again? Or would that cause him to basically relog into the server, just automatically?
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Wed Nov 23, 2005 23:28    Post subject: Reply with quote

If you add 9 to a stat, his new base stat will be (whatever it was previously) + 9. Then you have the engine limit of +/-12 from that new stat.
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
Via Con Diablos



Joined: 23 Nov 2005
Posts: 55

PostPosted: Wed Nov 23, 2005 23:54    Post subject: Reply with quote

Sorry, maybe I wasn't clear on that.

What I mean, is that a player has items that will give him +9 or +12 to his stat.
Can I use this to smoothly add to that stat, and then subtract from it later to allow Barb Rage to still work with a maxed out STR?

IE
Joe the Barbarian has a ring of Str +12
He rages as he rushes into combat. Currently, he stays at +12.
Can this without interruption to the fight allow Joe to have +13 or higher STR?
Back to top
View user's profile Send private message
dragon-slayer



Joined: 19 Sep 2005
Posts: 7

PostPosted: Mon Nov 28, 2005 17:40    Post subject: Reply with quote

Well its far from perfectly smooth and not something you would likley want to do as part of a rage. After having tried the portal simulates a boot and relogon to the server (to the player it kinda looks like an area transition) a clever way to free up the bic for a few mili-seconds so it can be modified.

This is not to say this is not extremely powerful because it is and their can be many uses for it.
Back to top
View user's profile Send private message
Primogenitor



Joined: 08 Jan 2005
Posts: 88

PostPosted: Wed Nov 30, 2005 12:57    Post subject: Reply with quote

Yeah, its not the sort of thing youd want to do all the time.

As an alternative, for short term things (like the rage), you could apply an attack & damage bonus if you go over the +12 cap.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
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