View previous topic :: View next topic |
Author |
Message |
dragon-slayer
Joined: 19 Sep 2005 Posts: 7
|
Posted: Mon Sep 19, 2005 22:52 Post subject: Ability Score Module. |
|
|
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 |
|
|
dragon-slayer
Joined: 19 Sep 2005 Posts: 7
|
Posted: Wed Sep 21, 2005 18:55 Post subject: |
|
|
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 |
|
|
dragon-slayer
Joined: 19 Sep 2005 Posts: 7
|
Posted: Wed Nov 09, 2005 17:29 Post subject: |
|
|
Can any one help me out with any answerer? |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Wed Nov 09, 2005 21:56 Post subject: |
|
|
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 |
|
|
dragon-slayer
Joined: 19 Sep 2005 Posts: 7
|
Posted: Tue Nov 15, 2005 16:17 Post subject: |
|
|
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 |
|
|
Primogenitor
Joined: 08 Jan 2005 Posts: 88
|
Posted: Wed Nov 16, 2005 11:04 Post subject: |
|
|
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 |
|
|
dragon-slayer
Joined: 19 Sep 2005 Posts: 7
|
Posted: Fri Nov 18, 2005 16:37 Post subject: |
|
|
Thanks Primogenitor I will definatly give that a try. |
|
Back to top |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Wed Nov 23, 2005 22:54 Post subject: |
|
|
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 |
|
|
Lokey
Joined: 02 Jan 2005 Posts: 158
|
Posted: Wed Nov 23, 2005 23:28 Post subject: |
|
|
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 |
|
Back to top |
|
|
Via Con Diablos
Joined: 23 Nov 2005 Posts: 55
|
Posted: Wed Nov 23, 2005 23:54 Post subject: |
|
|
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 |
|
|
dragon-slayer
Joined: 19 Sep 2005 Posts: 7
|
Posted: Mon Nov 28, 2005 17:40 Post subject: |
|
|
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 |
|
|
Primogenitor
Joined: 08 Jan 2005 Posts: 88
|
Posted: Wed Nov 30, 2005 12:57 Post subject: |
|
|
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 |
|
|
|