Quote:
Originally Posted by Mediator9292
Code:
[Phase=Final Phase; Priority=11000; Index=1]
foreach pick in hero where "(component.Ability & fieldval:abDC <> 0) | (component.BaseSpell & Helper.SpellLike & (sSave.Fort? | sSave.Ref? | sSave.Will?))"
if (eachpick.tagis[component.Ability] <> 0) then
eachpick.field[abDC].value += 1
elseif (eachpick.tagis[component.BaseSpell] <> 0) then
eachpick.field[sDC].value += 1
endif
nexteach
Should this still be a valid script after 7+ years? I'm trying to achieve a similar effect (+1 instead of +2 to all spell-like abilities and spell save DCs) as a feat (fArcAdept), but I get the following error message:
Syntax error in 'eval' script for Thing 'fArcAdept' (Eval Script '#1') on line 2
-> Invalid use of reserved word 'if' in script
|
I've run into this a lot working with my own datasets. You just need to add a
then on the end of the if and elseif lines. (I've added them in the lines above if just want to paste...