View Single Post
draco963
Member
 
Join Date: Jul 2015
Location: Ottawa
Posts: 58

Old May 29th, 2017, 10:46 PM
Good morning good folks,

I've been hammering my head on this brick wall for two days. Help me please?

I'm trying to create a custom weapon of legacy. I've got bits and pieces working, but I can't get the Spell Save DC reduction functional.

So, here's one of the Eval Script entries
Code:
~ -1 Skill Check Penalty at 10th level
  if (hero.tagcount[Hero.HitDice] >= 10) then
   foreach pick in hero from BaseSkill
    eachpick.field[Penalty].value -= 1
   nexteach
  endif

~ -1 Spell save DC at 6th level
~  if (hero.tagcount[Hero.HitDice] >= 6) then
~   foreach pick in hero from Spellcast
~    eachpick.field[cSplSaveDC].value -= 1
~   nexteach
~  endif

~ -1 Spell save DC at 6th level
  if (hero.tagcount[Hero.HitDice] >= 6) then
    hero.child[cHelpWiz].field[cSplSaveDC].value -= 1
  endif
Now, the Skill Check penalty is working. But the penalty to the Spell Save DC is not. You can see the two different approaches I've tried in the code block. If put this in Pre-Attributes, Post-Attributes, and Pre-Levels (always at 10000), and every way I try, the Skill Check penalty works, but the Spell Save DC doesn't.

Does anyone know what I'm doing wrong? I've been up and down the forums trying to find some ideas for this (that's how I found cSplSaveDC and the two different approaches to this) but I'm out of ideas...

Thanks in advance.
draco963 is offline   #1 Reply With Quote