Author Topic: [Bug] Adding a new level 1 spell to Jaheira level 7 gives her two spells slots  (Read 957 times)

Offline Anomaly

  • Planewalker
  • *****
  • Posts: 35
Hi,

I've found something odd while trying to patch jaheir7.cre to change Jaheira's memorized spells.

I can remove memorized spells ok, I can add memorized spells ok at level 3 and 4.

But when I try to add a level 1 memorized spell, Jaheira gets two additional spell slots (she looses them when she levels up).

My code :
Code: [Select]
BEGIN ~JAHEIRA BUG TEST~
COPY_EXISTING ~jaheir7.cre~ ~override/jaheir7.cre~
ADD_MEMORIZED_SPELL ~SPPR103~ #0 ~priest~

I've tried on a vanilla game, and on a bg2 fixpack-ed game, for the same result.

On WeiDU-Linux 227.
« Last Edit: February 27, 2011, 11:31:08 AM by Anomaly »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
That's because WeiDU tries to 'make space' for the new spell, but fails to take the bonus WIS spells into consideration. Won't fix (since I'd also have to scan effects, equipped items, kit abilities and whatnot to figure out the exact amount of extra spells) - as you said, leveling up fixes the problem.
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: