I’m trying to add an Arcane Trickster companion with 3 levels of Wizard, 3 Levels of Rogue, and 7 levels of Arcane Trickster. I’m able to do this with code like following:
object oCharacter = GetObjectByTag("x2_arcane_trickster");
if (GetIsObjectValid(oCharacter)) {
ResetCreatureLevelForXP(oCharacter, 0, 0);
int i;
SetLevelUpPackage(oCharacter, PACKAGE_WIZARDGENERALIST);
for (i=1; i < 3; i++)
LevelUpHenchman(oCharacter, CLASS_TYPE_WIZARD, TRUE, PACKAGE_WIZARDGENERALIST);
SetLevelUpPackage(oCharacter, PACKAGE_ROGUE);
for (i=3; i < 6; i++)
LevelUpHenchman(oCharacter, CLASS_TYPE_ROGUE, TRUE, PACKAGE_ROGUE);
SetLevelUpPackage(oCharacter, 133);
for (i=6; i < 13; i++)
LevelUpHenchman(oCharacter, CLASS_TYPE_ARCANETRICKSTER, TRUE, 133);
}
The resulting character has the correct classes assigned. However, the character does not have the appropriate number of spellcaster levels. It is only able to cast 1st and 2nd level spells.
Does anybody know how to address this? I tried setting the School field to zero on row 133 of packages.2da, but it didn’t help.