Aller au contenu

Photo

Constitution bug...


  • Veuillez vous connecter pour répondre
11 réponses à ce sujet

#1
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
  I have come across the two constitution bonus items bug.The two items causing the problem are: 
-Boots of hardiness:  + 3 con and + 3 dodge bonus
-Silver sword of gith: which gives a +1 bonus to con among other things.

What happens is that every time I unequip and equip(the sword or the boots) or reload a save, my hp increases by 20 hp( it increases beyond my maximum, kinda like like temporary hp). I could get 1000 hp using this bug if I wanted too. I have searched around and found no solution to this bug, and I have had it with all the bugs in general. So it seems to me the quickest way to solve this is to remove the +1 con to the silver sword of gith, which would give me a +3 con from the boots of hardiness and no extra HP bug every time I reload a save or re-equip the sword or boots.

So I was hoping a script god or something could swoop in here and show me how to remove the +1 con to the sword of gith.

Now, I have never used script before, so the instructions would have to be detailed, I have to know where I am supposed to type in the commands and such. Sorta like step by step instructions.

I am patched up to date.


*EDIT*
Over at nwn2 wikia I found this: http://nwn2.wikia.co...perty_functions

http://nwn2.wikia.co...oveItemProperty

Could I use the removeitemproperty function to remove the +1 con on the sword of gith? And if so where would I type it in?

If anyone has a better solution I would of course like to hear it.

I Posted this in the no spoilers forum, but then I thought I should have posted it here as well, so I am.

#2
kevL

kevL
  • Members
  • 4 056 messages
you're looking for the script 'i_silver_sword_aq' in the install->NwN2\\Campaigns\\Neverwinter Nights 2 Campaign folder. *Copy* that file to your Docs->NwN2->Override folder. Open the *copy* in a text editor, start at the top and search for "ipConstitution", then put two slashes at the beginnings of those lines. eg,


//itemproperty ipConstitution = ItemPropertyAbilityBonus(IP_CONST_ABILITY_CON, 1);

//IPSafeAddItemProperty(oItem, ipConstitution, 0.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);



There are 10 of them: that one, as well as for Barbarians, Clerics, Fighters, and Paladins.

Save it. Then open the Toolset and under File menu, open Conversation/script. open it, then press F7

make sure it compiles without error. Close the toolset.

Load the game. Drop the SS and pick it back up again. Con bonus should be gone ...

#3
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
Thanks for replying kevL, I have seen you post around the forum about scripts and such and hoped you would reply to my post.

Now, I have opened the campaigns folder and there are two silver sword scripts:

'i_silver_sword_aq.NCS

'i_silver_sword_aq.NSS

Which do I choose?

I have never even used the toolset before so I might need further guidance later on. But thanks for helping.

Modifié par Phantom13NWN2, 23 avril 2013 - 12:14 .


#4
Tchos

Tchos
  • Members
  • 5 042 messages
i_silver_sword_aq.NSS (uncompiled) is the one you can edit. When you compile it, it will create a new i_silver_sword_aq.NCS.

#5
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
Okay thanks Tchos.

So, I have opened the script in notebook or what it is called in english.

itemproperty ipConstitution = ItemPropertyAbilityBonus(IP_CONST_ABILITY_CON, 1);

I have to put to slashes in front of this right?

Kevl goes on to say that there are 10 of them, do I need to put 2 slashes in front of all of them, or just sorcerer? (since Im playing as sorcerer)

And...

IPSafeAddItemProperty(oItem, ipConstitution, 0.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);

I have to put 2 slashes in front of this as well?

(Just want to make sure Im not doing anything wrong, Ive never done this before, though I seem to recall doing something similar with DAO DLCs)

#6
kevL

kevL
  • Members
  • 4 056 messages

Phantom13NWN2 wrote...

itemproperty ipConstitution = ItemPropertyAbilityBonus(IP_CONST_ABILITY_CON, 1);

I have to put to slashes in front of this right?

yep.

... there are 10 of them, do I need to put 2 slashes in front of all of them, or just sorcerer? (since Im playing as sorcerer)

you won't find any in the Sorcerer section .. since you're playing Sorc, the only two that need to be // remarked or 'commented' (the double slash is usually used for comments or 'remarks', but works great for code also) are the top two, which are intended as a general +1 Con that all classes get.

IPSafeAddItemProperty(oItem, ipConstitution, 0.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);

I have to put 2 slashes in front of this as well?

yep. The two lines go in pairs ...

#7
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
YEEESSS! I got it to work, and as I suspected it fixed the bug! thanks, kevL and Tchos. Finally I can continue the game.

Just a couple of questions, if i wanted the + 1 CON back all I had to do was to remove the slashes and repeat the process? (Or just delete my silver sword script from the override directory?)

And...

This will not cause any bug with when I get the sword in MOTB will it?

Please dont spoil anything from MoTB.. I havent finished that campaign yet...

Thanks again.

Modifié par Phantom13NWN2, 23 avril 2013 - 01:04 .


#8
kevL

kevL
  • Members
  • 4 056 messages
cool :)

yes, yes


nope, different sword altogether.

#9
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
Okay thanks, just to be sure. There is no other way to fix this constitution bonus bug? I actually dont want to mess with the base game, but if there is no other way.. I'll take this solution.

#10
kevL

kevL
  • Members
  • 4 056 messages
It's been around a long time, Kaedrin took a hearty stab at it, but it still needs a bit more effort.

i can't think of anything going wrong with this solution, just put those files (.nss/.ncs) into a subfolder of your Override, like "silver_sword_noConBonus" so it sticks out like a sore thumb ;) And they can be disabled by renaming both files to something like 'i_silver_sword_aq_Disable' .*

#11
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
Yes I have read about the Kaedrin fixes but I really want to complete the campaigns with the base game before I think about installing custom content. With that said..

I think this is the best solution at the moment, the end result is what it should be with this solution.

a + 3 CON inscrease
and a + 3 dodge bonus increase

The + 1 CON on the silversword would not have stacked with the + 3 con anyway.

So I agree, it's a good solution.

#12
Phantom13NWN2

Phantom13NWN2
  • Members
  • 124 messages
 I got help here in fixing a bug yesterday so I figured I should try again.

In the battle where Callum gets killed by blade golems. In the combat log it says that I killed Callum anyone have a script fix (or other fix) for this?

Thanks in advance.