Player Resource Consortium

 

Author Topic: Archivist INT bonus spells  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

July 01, 2016, 04:29:26 PM

I am, uh, afraid that there is nobody left to answer me, but i'll try anyway. Since there seems to be no Academic Priest feat, how do i switch Archivist's bonus spells from wis to int? What should i edit? I would appreciate it if someone helped me.


July 01, 2016, 07:12:23 PM
Reply #1

Sadly, I don't know. Every so often, someone knowledgeable in scripting does pop up, so check back periodically.


April 04, 2018, 06:25:23 PM
Reply #2
  • Adept
  • *
  • Posts: 4
  • Karma: +0/-0
  • New Member
    • View Profile

The place in question where it is defined is line 324 of include/inc_newspellbook.nss

Code is:

Code: [Select]
int GetSlotCount(int nLevel, int nSpellLevel, int nAbilityScore, int nClass, object oItemPosessor = OBJECT_INVALID)
{
  ...
        int nAbilityMod = nClass == CLASS_TYPE_ARCHIVIST ? GetAbilityModifier(ABILITY_WISDOM, oItemPosessor) : (nAbilityScore - 10) / 2;
}
You would just need to change ABILITY_WISDOM to ABILITY_INTELLIGENCE.

Sadly, because of how includes work in NWN scripting, editing this would require recompiling the whole prc (included .nss files are compiled into the .nsc file that included it and never referenced again). It's pretty easy to do, actually. You just run the make.bat file in the source code. The big hurdle for the not technical is getting the source in the first place.

It would be pretty simple to add Academic Priest as a feat though, just change that to...
Code: [Select]
int GetSlotCount(int nLevel, int nSpellLevel, int nAbilityScore, int nClass, object oItemPosessor = OBJECT_INVALID)
{
  ...
        int nAbility = GetHasFeat(FEAT_ACADEMIC_PRIEST) ? ABILITY_INTELLIGENCE : ABILITY_WISDOM;
        int nAbilityMod = nClass == CLASS_TYPE_ARCHIVIST ? GetAbilityModifier(nAbility, oItemPosessor) : (nAbilityScore - 10) / 2;
}
...and add FEAT_ACADEMIC_PRIEST to the feats.2da file and includes/prc_feat_const.nss


April 11, 2018, 12:10:56 PM
Reply #3

Oh wow, it has been some time :D
Thank you, i'll try that when i'll get back to archivist again