Jump to content

Bonus spells based on stat


Question

Recommended Posts

Can someone explain how this works exactly? I downloaded the scales of balance mod to try and figure it out, but im not sure which files are relevant.

 

I figured out that mxsplwis.2da controls the bonus priest spells based on wis...but that doesnt determine whether paladins/rangers get bonus spells based on wis. Where is that defined?

 

The mod also has a component that adds bonus spells based on intelligence, but its not clear which files do that...intelligence_sorcerers.txt just looks like gibberish for example. Any ideas?

Link to comment

It's a bit hard to explain in a single post. First: mxsplwis.2da gives bonus spells for clerics and druids only. For paladins and rangers, and mages/bards/sorcerers, you need to use the technique below (which only works on the EE 2.3+ engine, btw):

 

Look here for a basic template of how to do stat-based effects:

http://gibberlings3.net/forums/index.php?showtopic=28918&p=255333

 

Now bonus spells are a bit different; you can't just add them as bonus effects for a high stat. You have to actually increase the base number of slots in the spell slots table (mxsplpal.2da, mxsplran.2da, mxsplwiz.2da, etc.) and then remove slots for having a low stat.

 

Increasing slots in the base table is done in lines 95-108 here:

https://github.com/UnearthedArcana/Scales_of_Balance/blob/master/scales_of_balance/components/200_SBO_revised_stats.tpa

 

And then, in the same document, the INT bonuses are in lines 434-550. The reduced spell slots for low INT are the ADD_SPELL_EFFECTs with opcode 42. Note that the reductions only have to go down to INT=12, because on line 456 you can see an effect that applies the INT=12 effect (a reduction of 1 slot to every spell level) to every INT score below 13.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...