Jump to content


Photo

Limiting a Shaman Kit's spell slots


  • Please log in to reply
6 replies to this topic

#1 Ulb

Ulb
  • Modder
  • 373 posts

Posted 26 March 2018 - 01:05 AM

Heya, I'm working on a Shaman kit and I'd like to limit it to level 1-3 spells.

What would be the best way to achieve this?

 

Right now I'm thinking of just adding a -1 spell slot via the CLAB file when ever the shaman would receive another high level spell slot but I'm not sure whether that's the best way to do it.

If any mod tempers with the spell slots that would probably cause issues and I would assume the character would still get the spell selection on level up even though it couldn't actually cast the spells due to not having any active slots?



#2 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 26 March 2018 - 03:24 AM

Looks like in EE 2.3+ you can just apply an effects with like -12 slots for levels 4-7, permanently at level 1. It doesn't go below 0 the way the old engine does.

(It's fantastic, I'm using it to give real dynamic INT-based bonus slots to wizards.)

Edited by subtledoctor, 26 March 2018 - 03:25 AM.


#3 -Ulb-

-Ulb-
  • Guest

Posted 26 March 2018 - 04:15 AM

Looks like in EE 2.3+ you can just apply an effects with like -12 slots for levels 4-7, permanently at level 1. It doesn't go below 0 the way the old engine does.

(It's fantastic, I'm using it to give real dynamic INT-based bonus slots to wizards.)

 

Great, that way I don't need to bother with actually checking slot progression and account for various mods/+slot items. Thank you!

Btw, do you know whether that will prevent the spell selection from popping up when the character gets a level?



#4 Ulb

Ulb
  • Modder
  • 373 posts

Posted 26 March 2018 - 04:28 AM

Hm, I gave it a quick try and it doesn't look like it is that easy.

I added a -10 spell slots for level4-7 spells to a shaman. The spell book then showed spells castable 0/65k before resting and resting would freeze the game. Looks like there is some kind of overflow that turns negative spell slots into max postivie ones?



#5 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 26 March 2018 - 06:18 AM

What engine are you using?

In BGT, yes, applying negative spell slots wraps around and gives you a gazillion spell slots instead of zero.

In the latest versions of the EE engine, this does not happen. At least, from my very limited testing. My mod gives bonus slots for high INT in reverse: it increments each value in the vanilla table, and applies a -1 modifier to different spell tiers if your INT is below a certain value.

It has been successful in my current game, which is BGEE v2.3.67 (iOS) EDIT - my mistake, I'm using v2.4. So maybe this requires v2.4+. Hopefully it will all be uniform when all 4 games get the upcoming 2.5 patch.

Also I'm only applying a -1 modifier. Maybe if you go below -x the old behavior rears it ugly head. Hard to say...


Edited by subtledoctor, 26 March 2018 - 08:26 PM.


#6 Ulb

Ulb
  • Modder
  • 373 posts

Posted 26 March 2018 - 08:31 AM

I'll give it another try with multiple -1 effects, thanks doc. :)



#7 Ulb

Ulb
  • Modder
  • 373 posts

Posted 27 March 2018 - 12:59 AM

Also I'm only applying a -1 modifier.

 

That does the trick, I tried it with -4 in one effect before (when I would gain +3 slots from level) and it bugged out.

Adding just a whole bunch of -1 slot instances works like a charm. (Well, you still get to select the spells on level up but I doubt there is a way to prevent this. If I remember correctly the Inquisitor is hardcoded to not get any spells added to its spell book...)

 

Thank you.